{"id":16006637,"url":"https://github.com/nikku/wordle-solver","last_synced_at":"2026-04-13T02:02:05.962Z","repository":{"id":57131134,"uuid":"461288206","full_name":"nikku/wordle-solver","owner":"nikku","description":"A  solver for Worlde puzzles","archived":false,"fork":false,"pushed_at":"2023-01-04T08:19:17.000Z","size":625,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-04T07:37:29.764Z","etag":null,"topics":["wordle","wordle-solver"],"latest_commit_sha":null,"homepage":"https://nikku.github.io/wordle-solver","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikku.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-19T19:08:12.000Z","updated_at":"2022-04-22T12:08:04.000Z","dependencies_parsed_at":"2023-02-02T05:02:05.082Z","dependency_job_id":null,"html_url":"https://github.com/nikku/wordle-solver","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/nikku/wordle-solver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fwordle-solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fwordle-solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fwordle-solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fwordle-solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikku","download_url":"https://codeload.github.com/nikku/wordle-solver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fwordle-solver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31736723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"online","status_checked_at":"2026-04-13T02:00:06.623Z","response_time":93,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordle","wordle-solver"],"created_at":"2024-10-08T11:42:59.143Z","updated_at":"2026-04-13T02:02:05.931Z","avatar_url":"https://github.com/nikku.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wordle Solver\n\n[![CI](https://github.com/nikku/wordle-solver/actions/workflows/CI.yml/badge.svg)](https://github.com/nikku/wordle-solver/actions/workflows/CI.yml)\n\nGet a little help solving your [Wordle](https://www.nytimes.com/games/wordle/index.html) puzzles. \n\n\n## Usage\n\nTry the [demo](https://nikku.github.io/wordle-solver).\n\nAlternatively, use module exports:\n\n```javascript\nimport {\n  suggest\n} from '@nikku/wordle-solver';\n\nconst words = [ ... ];\n\nconst history = [\n  [ 'hands', Array.from('??--+') ]\n];\n\nconst {\n  word,\n  progress\n} = suggest(history, words);\n\n// then\nconsole.log('Suggested pick: %s', word);\n```\n\n\n## How it Works\n\nThe solver is implemented in [`lib/solver.js`](./lib/solver.js).\n\n### Algorithm\n\nEvery pick it chooses the next word in order to reduce the solution space as much as possible.\n\n* Accounts for historic picks (match, not matched, contained)\n* Scores letter occurance per column and word\n* Derives a word score\n* Adds a penalty for letter duplicates\n* Uses matched slots to guess / exclude likely letters\n\n### Performance\n\nSolves __100%__ of all puzzles in an average of __3.6 steps__.\n\n```\n$ npm run bench\n...\nW=1.000 S=3.559 R=1500\n```\n\nSolves __99%__ of all puzzles in an average of __4.1 steps__ when accepting the full dictionary as a solution:\n\n```\n$ FULL_DATA_SET=1 npm run bench\n...\nW=0.990 S=4.115 R=1500\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikku%2Fwordle-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikku%2Fwordle-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikku%2Fwordle-solver/lists"}