{"id":40624684,"url":"https://github.com/shahradelahi/node-stockfish","last_synced_at":"2026-01-21T07:20:20.674Z","repository":{"id":330993272,"uuid":"1122778636","full_name":"shahradelahi/node-stockfish","owner":"shahradelahi","description":"♟️ Stockfish 17.1 WASM chess engine for Node.js with UCI and analysis.","archived":false,"fork":false,"pushed_at":"2025-12-29T15:47:07.000Z","size":63056,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T19:42:00.284Z","etag":null,"topics":["analysis","chess","engine","fen","nodejs","stockfish","typescript","uci","wasm"],"latest_commit_sha":null,"homepage":"https://npmjs.com/@se-oss/stockfish","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/shahradelahi.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-25T13:43:13.000Z","updated_at":"2025-12-29T15:47:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shahradelahi/node-stockfish","commit_stats":null,"previous_names":["shahradelahi/node-stockfish"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/shahradelahi/node-stockfish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahradelahi%2Fnode-stockfish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahradelahi%2Fnode-stockfish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahradelahi%2Fnode-stockfish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahradelahi%2Fnode-stockfish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shahradelahi","download_url":"https://codeload.github.com/shahradelahi/node-stockfish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahradelahi%2Fnode-stockfish/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28629884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["analysis","chess","engine","fen","nodejs","stockfish","typescript","uci","wasm"],"created_at":"2026-01-21T07:20:20.136Z","updated_at":"2026-01-21T07:20:20.660Z","avatar_url":"https://github.com/shahradelahi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://stockfishchess.org\"\u003e\n    \u003cimg src=\"https://stockfishchess.org/images/logo/icon_128x128.png\" alt=\"Stockfish\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n  \u003csup\u003eStockfish for Node.JS\u003c/sup\u003e\n  \u003cbr\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://github.com/shahradelahi/node-stockfish/actions/workflows/ci.yml\"\u003e\n      \u003cimg src=\"https://github.com/shahradelahi/node-stockfish/actions/workflows/ci.yml/badge.svg?branch=main\u0026event=push\" alt=\"CI\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/@se-oss/stockfish\"\u003e\n      \u003cimg src=\"https://img.shields.io/npm/v/@se-oss/stockfish.svg\" alt=\"NPM Version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"/LICENSE\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/License-GPL3.0-blue.svg?style=flat\" alt=\"GPL-3.0 License\"\u003e\n    \u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@se-oss/stockfish\" alt=\"npm bundle size\"\u003e\n    \u003ca href=\"https://packagephobia.com/result?p=@se-oss/stockfish\"\u003e\n      \u003cimg src=\"https://packagephobia.com/badge?p=@se-oss/stockfish\" alt=\"Install Size\"\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/h1\u003e\n\n_@se-oss/stockfish_ is a high-performance, TypeScript-first Node.js wrapper for the Stockfish 17.1 WASM chess engine. It provides a convenient API for integrating powerful chess analysis capabilities into your applications, offering functionalities such as position analysis, best move calculation, and direct UCI command interaction.\n\n---\n\n- [Installation](#-installation)\n- [Usage](#-usage)\n- [Documentation](#-documentation)\n- [Contributing](#-contributing)\n- [License](#license)\n\n## 📦 Installation\n\n```bash\nnpm i @se-oss/stockfish\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eInstall using your favorite package manager\u003c/summary\u003e\n\n**pnpm**\n\n```bash\npnpm install @se-oss/stockfish\n```\n\n**yarn**\n\n```bash\nyarn add @se-oss/stockfish\n```\n\n\u003c/details\u003e\n\n## 📖 Usage\n\n### Basic Analysis\n\n```typescript\nimport { Stockfish } from '@se-oss/stockfish';\n\nconst engine = new Stockfish();\nawait engine.waitReady();\n\nconst analysis = await engine.analyze(\n  'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1',\n  15\n);\n\nconsole.log('Best move:', analysis.bestmove); // e2e4\nconsole.log('Score:', analysis.lines[0].score); // { type: 'cp', value: 39 }\n```\n\n### Advanced UCI Commands\n\n```typescript\nconst engine = new Stockfish();\n\nengine.on('info', (info) =\u003e {\n  console.log(`Depth ${info.depth}: ${info.pv}`);\n});\n\nawait engine.send('uci');\nawait engine.send('isready');\nawait engine.send('position startpos moves e2e4');\nawait engine.send('go depth 20');\n```\n\n### Using the Stockfish Pool\n\n```typescript\nimport { StockfishPool } from '@se-oss/stockfish';\n\nconst pool = new StockfishPool(4); // Create a pool with 4 engine instances\nawait pool.initialize();\n\n// Acquire an engine, use it, and release it back to the pool\nconst engine = await pool.acquire();\nconsole.log('Engine acquired');\nconst analysis = await engine.analyze(\n  'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1',\n  10\n);\nconsole.log('Best move from pool engine:', analysis.bestmove);\npool.release(engine);\nconsole.log('Engine released');\n\n// Terminate the pool when done\npool.terminate();\n```\n\n## 📚 Documentation\n\nFor detailed API documentation on all methods, please see [the API docs](https://www.jsdocs.io/package/@se-oss/stockfish).\n\n## 🤝 Contributing\n\nWant to contribute? Awesome! To show your support is to star the project, or to raise issues on [GitHub](https://github.com/shahradelahi/node-stockfish).\n\n## License\n\n[GPL-3.0](/LICENSE) © [Shahrad Elahi](https://github.com/shahradelahi) and [contributors](https://github.com/shahradelahi/node-stockfish/graphs/contributors).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahradelahi%2Fnode-stockfish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahradelahi%2Fnode-stockfish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahradelahi%2Fnode-stockfish/lists"}