FindSoftware

wasm-pack

Command-line tool that builds Rust crates into WebAssembly packages for JavaScript, with npm publishing support.

wasm-pack is a command-line tool that compiles a Rust crate to WebAssembly and packages the output for JavaScript. The build command writes a pkg folder with the compiled .wasm binary, a JavaScript wrapper, type declarations and a package.json. That folder can be published to the npm registry or used alongside JavaScript packages in an existing bundler workflow.

The build command takes a target that sets how the JavaScript is emitted and loaded: bundler, Node.js, a native browser ES module, a browser global without modules, or Deno. A separate test command runs browser tests, per the project’s README.

Worth knowing

Building needs a Rust toolchain. Publishing to npm needs npm installed and configured, and the prerequisites page says the project intends to remove the need for a Node runtime in that step.

Identity

Status
Active
Maintainer
drager5
First release
20188

Rendering and deploy

Runs as
Dev only4
Install with
cargo install9

Releases

Current major version
Pre-1.07
Last release
2026-05-157

Adoption

GitHub stars
7,2932
npm downloads a week
111,16111
Contributors
15610

Why these figures do not compare

Sources

  1. 2026-10-28: links
    wasm-bindgen.github.io/wasm-pack/
  2. 2026-10-28: links, Written in, License, GitHub stars
    api.github.com/repos/wasm-bindgen/wasm-pack
  3. 2026-10-28: links
    wasm-bindgen.github.io/wasm-pack/book/
  4. 2026-10-28: Categories, Runs as, Runtime
    wasm-bindgen.github.io/wasm-pack/book/prerequisites/index.html
  5. 2026-10-28: Maintainer
    github.com/wasm-bindgen/wasm-pack/blob/HEAD/README.md
  6. 2026-10-28: License
    raw.githubusercontent.com/wasm-bindgen/wasm-pack/v0.15.0/Cargo.toml
  7. 2026-10-28: Current major version, Last release
    api.github.com/repos/wasm-bindgen/wasm-pack/releases/latest
  8. 2026-10-28: First release
    crates.io/api/v1/crates/wasm-pack/versions
  9. 2026-10-28: Install with
    wasm-bindgen.github.io/wasm-pack/installer
  10. 2026-10-28: Contributors
    api.github.com/repos/wasm-bindgen/wasm-pack/contributors
  11. 2026-10-28: npm downloads a week
    api.npmjs.org/downloads/range/2026-09-28:2026-10-04/wasm-pack

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON