{"id":42515503,"url":"https://github.com/kevinychen/nikoli-puzzle-solver","last_synced_at":"2026-01-28T14:35:52.321Z","repository":{"id":45058329,"uuid":"441250338","full_name":"kevinychen/nikoli-puzzle-solver","owner":"kevinychen","description":"Solver for over 100 types of Nikoli-style logic puzzles","archived":false,"fork":false,"pushed_at":"2024-01-11T06:16:32.000Z","size":4261,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-04-09T23:02:40.049Z","etag":null,"topics":["logic-puzzle-solver","nurikabe-solver","puzzle-hunt","puzzle-solver","sudoku-solver","wasm","z3"],"latest_commit_sha":null,"homepage":"https://util.in:8102/","language":"TypeScript","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/kevinychen.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-12-23T17:23:30.000Z","updated_at":"2024-03-03T10:36:30.000Z","dependencies_parsed_at":"2023-10-22T20:26:05.866Z","dependency_job_id":"7446eb50-3221-4b1e-abe1-501b81f66003","html_url":"https://github.com/kevinychen/nikoli-puzzle-solver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevinychen/nikoli-puzzle-solver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinychen%2Fnikoli-puzzle-solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinychen%2Fnikoli-puzzle-solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinychen%2Fnikoli-puzzle-solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinychen%2Fnikoli-puzzle-solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinychen","download_url":"https://codeload.github.com/kevinychen/nikoli-puzzle-solver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinychen%2Fnikoli-puzzle-solver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["logic-puzzle-solver","nurikabe-solver","puzzle-hunt","puzzle-solver","sudoku-solver","wasm","z3"],"created_at":"2026-01-28T14:35:52.088Z","updated_at":"2026-01-28T14:35:52.292Z","avatar_url":"https://github.com/kevinychen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nikoli Puzzle Solver\n\nSolver for over 100 types of Nikoli-style logic puzzles, including Sudoku, Slitherlink, Masyu, Nonograms, Skyscrapers, Light Up, Kakuro, and many more, conveniently deployed as a web app for easy use. Try it at https://util.in:8102.\n\nThe app hooks up to the [Penpa UI](https://github.com/swaroopg92/penpa-edit) to make it easy to input and view puzzles.\n\n![Solving](solving.gif)\n\n## Features\n\n- Supports [over 100 puzzle types](src/solvers)\n- Supports unique solution checking\n- Supports irregularly shaped grids and grids with holes (when appropriate for the puzzle type)\n- Supports different tilings, such as hexagonal and triangular grids (when appropriate for the puzzle type)\n- Easy for someone with programming experience to modify solvers for puzzle variants, or add new solvers\n\n## Instructions\n\n- Go to https://util.in:8102.\n- Input a puzzle, or choose a sample puzzle from the list on the bottom left. (You can also click Load to load any Penpa URL from the web.)\n- In the dropdown menu on the bottom right, select the desired puzzle type/rules to solve with.\n- Click \"Solve\". The grid will be automatically filled if a solution is found.\n\n## Development\n\n### One-time setup\n\nTo host the server yourself, you need Node.js. This was tested with Node.js v20.6.1.\n\nRun the following:\n\n    git clone https://github.com/kevinychen/nikoli-puzzle-solver.git\n    cd nikoli-puzzle-solver\n    npm install\n    git submodule update --init\n\n### Running the server\n\nTo generate production assets and start the server, run:\n\n    npx webpack --mode production\n    node server.js\n\nThen go to http://localhost:8080.\n\nTo run a development server, which will automatically refresh when the source code changes:\n\n    npx webpack serve --mode development\n\n### Running tests\n\nStart the development server with `npx webpack serve --mode development`, then go to http://localhost:8080/test.html.\n\n### Adding a solver\n\n- Create a new file in the [solvers](src/solvers) directory.\n- Using the existing solvers as examples, define a solve function that takes a Z3 `Context` (to construct constraints) and a `Puzzle` (that contains the contents from the Penpa UI) as input.\n- At the bottom of the file, add it to the solver registry with `solverRegistry.push({...})`.\n    - You can construct the sample puzzle in Penpa, and click \"Share\" -\u003e \"Editing URL\" to get the encoded puzzle.\n- To fill in the sample answer, solve the sample puzzle in the UI and copy the puzzle answer string from the developer console logs.\n- Run the tests to verify the new solver implementation and sample puzzle are correct.\n\n### Credits\n\nThis project was based on and inspired by the brilliant puzzle solver library [Grilops](https://github.com/obijywk/grilops).\nThanks to puzz.link and similar sites for puzzle rules and sample puzzles.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinychen%2Fnikoli-puzzle-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinychen%2Fnikoli-puzzle-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinychen%2Fnikoli-puzzle-solver/lists"}