npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

stockfish

v18.0.5

Published

The Stockfish chess engine in Web Assembly (WASM)

Readme

Stockfish.js

Stockfish.js is a WASM implementation by Nathan Rugg of the Stockfish chess engine, for Chess.com's in-browser engine.

Stockfish.js is currently updated to Stockfish 18.

This edition of Stockfish.js comes in five flavors:

  • The large multi-threaded engine:
    • This is strongest version of the engine, but it is large (>100MB) and will only run in browsers with the proper CORS headers applied. This engine is recommended if possible.
    • Files: stockfish-18.js & stockfish-18.wasm
  • The large single-threaded engine:
    • This is also large but will run in browsers without CORS headers; however it cannot use multiple threads via the UCI command setoption name Threads. This engine is recommended if CORS support is not possible.
    • Files: stockfish-18-single.js & stockfish-18-single.wasm
  • The lite mult-threaded engine:
    • This is the same as the first multi-threaded but much smaller (≈7MB) and quite a bit weaker. This engine is recommended for mobile browsers when CORS is available.
    • Files: stockfish-18-lite.js & stockfish-18-lite.wasm
  • The lite single-threaded engine:
  • The ASM-JS engine:
    • Compiled to JavaScript, not WASM. Compatible with every browser that runs JavaScript. Very slow and weak. Larger than the lite WASM engines (≈10MB). This engine should only be used as a last resort.
    • File: stockfish-18-asm.js

The WASM Stockfish engine will run on all modern browsers (e.g., Chrome/Edge/Firefox/Opera/Safari) on supported system (Windows 10+/macOS 11+/iOS 16+/Linux/Android), as well as supported versions of Node.js. For slightly older browsers, see the Stockfish.js 16 branch. The ASM-JS engine will run in essentially any browser/runtime that supports JavaScript. For an engine that supports chess variants (like 3-check and Crazyhouse), see the Stockfish.js 11 branch.

API

In the browser, it is recommended to use the engine via Web Workers. See examples/loadEngine.js for a sample implementation.

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 emscripten 3.1.7 installed and in your path. Then you can compile Stockfish.js with the build script: ./build.js. See ./build.js --help for details. To build all flavors, run ./build.js --all.

Examples

To learn how to use the engine in your own projects, see the examples folder.

Thanks

  • The Stockfish team
  • exoticorn
  • ddugovic
  • niklasf stockfish.js, stockfish.wasm, and stockfish-web
  • hi-ogawa
  • linrock
  • Chess.com for sponsering development of Stockfish.js

See AUTHORS for more credits.

License

(c) 2026, Chess.com, LLC GPLv3 (see Copying.txt)