{"id":16958960,"url":"https://github.com/shiyan7/sudoku-toolbox","last_synced_at":"2026-05-17T18:31:58.347Z","repository":{"id":196493576,"uuid":"693069048","full_name":"Shiyan7/sudoku-toolbox","owner":"Shiyan7","description":"Utilities for creating solving and other functions of Sudoku","archived":false,"fork":false,"pushed_at":"2023-09-23T19:39:28.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T20:57:16.885Z","etag":null,"topics":["generator","npm-package","solving","sudoku","utils"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/sudoku-toolbox","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/Shiyan7.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}},"created_at":"2023-09-18T09:31:20.000Z","updated_at":"2023-09-25T10:11:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"49199b17-85d5-4a66-a34e-b43afc69c673","html_url":"https://github.com/Shiyan7/sudoku-toolbox","commit_stats":null,"previous_names":["shiyan7/sudoku-toolbox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shiyan7/sudoku-toolbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiyan7%2Fsudoku-toolbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiyan7%2Fsudoku-toolbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiyan7%2Fsudoku-toolbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiyan7%2Fsudoku-toolbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shiyan7","download_url":"https://codeload.github.com/Shiyan7/sudoku-toolbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiyan7%2Fsudoku-toolbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33149544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"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":["generator","npm-package","solving","sudoku","utils"],"created_at":"2024-10-13T22:43:59.465Z","updated_at":"2026-05-17T18:31:58.312Z","avatar_url":"https://github.com/Shiyan7.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sudoku toolbox\n\n## Install\n\n```\nyarn add sudoku-toolbox\n```\n\n## Usage\n\n```js\nimport { generateSudoku } from \"sudoku-toolbox\";\n\nconst sudoku = generateSudoku();\n\nconst { puzzle, solution, areas, difficulty } = sudoku;\n```\n\n## Details\n\nThe function `generateSudoku` takes an optional parameter `difficulty` which must be between `easy`, `hard`, `medium` and `expert`.\n```js\nimport { generateSudoku } from \"sudoku-toolbox\";\n\nconst sudoku = generateSudoku(\"easy\");\n```\n\nBy default, the numbers of cells to remove for each difficulty are:\n```js\n{\n    \"easy\": 30,\n    \"medium\": 40,\n    \"hard\": 50,\n    \"expert\": 60,\n}\n```\n\nFrom experience, above 67 or 68 numbers to remove, the program begins to struggle and is a bit slow and it is possible that it can hang forever above 70.\n\nIn an upcoming version, it will just raise an error after a timeout.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiyan7%2Fsudoku-toolbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiyan7%2Fsudoku-toolbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiyan7%2Fsudoku-toolbox/lists"}