https://github.com/nmrugg/stockfish.js Skip to content Sign up * Why GitHub? + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} nmrugg / stockfish.js Public * Notifications * Fork 85 * Star 567 * The Stockfish chess engine in Javascript GPL-3.0 License 567 stars 85 forks Star Notifications * Code * Issues 30 * Pull requests 3 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 85 branches 239 tags Code Latest commit @nmrugg nmrugg Merge pull request #61 from BioGeek/patch-1 ... 7653236 Feb 24, 2022 Merge pull request #61 from BioGeek/patch-1 Fix typo 7653236 Git stats * 4,000 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time example Updated to NNUE Stockfish 14.1 Nov 13, 2021 src Updated to NNUE Stockfish 14.1 Nov 13, 2021 .gitattributes Updating to Stockfish 8 Oct 19, 2017 .gitignore Updated to NNUE Stockfish 14 Nov 12, 2021 .npmignore Updating to Stockfish 11 Nov 10, 2020 AUTHORS Updated to NNUE Stockfish 14 Nov 12, 2021 Copying.txt Updating to Stockfish 8 Oct 19, 2017 README.upstream.md Updated to NNUE Stockfish 14 Nov 12, 2021 Readme.md Fix typo Feb 24, 2022 build.js Updated to NNUE Stockfish 14.1 Nov 13, 2021 clean.sh More debugging stuff. Mar 9, 2015 create_branch_at.js Some notes. Mar 16, 2015 engine-interface.txt Updating to Stockfish 8 Oct 19, 2017 license.txt Updating to Stockfish 8 Oct 19, 2017 package.json Updated to NNUE Stockfish 14.1 Nov 13, 2021 postscript.js Update to multi-threaded Stockfish 12 Jul 21, 2021 preamble.js Update to multi-threaded Stockfish 12 Jul 21, 2021 preface.js Update to multi-threaded Stockfish 12 Jul 21, 2021 rolling_merge.js Display proper command. Mar 9, 2015 startup_tester.js Very simple start up tester. May 26, 2015 stockfishjs Update to multi-threaded Stockfish 12 Jul 21, 2021 View code Stockfish.js API Compiling Example Thanks License Readme.md Stockfish.js Stockfish.js is a WASM implementation of Stockfish chess engine. Stockfish.js is currently updated to Stockfish 14.1. NOTE: Stockfish.js 14.1 reqiures some of the latest features and does not work in every browser. This is a multi-threaded engine, and will only run in newer browsers and node.js versions. For an older JS and WASM version, see the Stockfish.js 11 branch. API You can run Stockfish.js directly from the command line with Node.js 14.4+. You may need to add some command line flags to get it to run: node --experimental-wasm-threads --experimental-wasm-simd stockfish.js Stockfish.js can be found in the npm repository and installed like this: npm install stockfish. If you want to use it from the command line, you may want to simply install it globally: npm install -g stockfish. Then you can simply run stockfishjs. In Node.js, you can either run it directly from the command line (i.e., node src/stockfish.js) or require() it as a module (i.e., var stockfish = require("stockfish");). Compiling You need to have the emscripten compiler installed and in your path (tested with 2.0.26). Then you can compile Stockfish.js with the build script: ./build.js. See ./build.js --help for details. Example There are examples in the example folder. You will need to run the example/server.js server to view the client-side examples. There are also example using Node.js. Thanks * The Stockfish team * exoticorn * ddugovic * niklasf stockfish.js & stockfish.wasm * hi-ogawa (faster WASM NNUE evaluation) License GPLv3 (see license.txt) About The Stockfish chess engine in Javascript Resources Readme License GPL-3.0 License Stars 567 stars Watchers 19 watching Forks 85 forks Releases 239 tags Packages 0 No packages published Used by 263 * @hamza3256 * @FrequentlyMissedDeadlines * @paulpatault * @mfsiega * @alexdorn * @SimplyNate * @ornicar * @cgoldammer + 255 Contributors 57 * @mcostalba * @nmrugg * @zamar * @lucasart * @glinscott * @R-Peleg * @joergoster * @ceebo * @uriblass * @jromang * @jundery + 46 contributors Languages * C++ 79.6% * JavaScript 11.9% * Makefile 3.8% * HTML 2.7% * C 1.6% * Python 0.3% * Other 0.1% * (c) 2022 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.