
wasm-pack
Command-line tool that builds Rust crates into WebAssembly packages for JavaScript, with npm publishing support.
wasm-bindgen.github.io/wasm-pack/repositorydocs
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
Rendering and deploy
Releases
Adoption
Sources
- 2026-10-28: links
wasm-bindgen.github.io/wasm-pack/ - 2026-10-28: links, Written in, License, GitHub stars
api.github.com/repos/wasm-bindgen/wasm-pack - 2026-10-28: links
wasm-bindgen.github.io/wasm-pack/book/ - 2026-10-28: Categories, Runs as, Runtime
wasm-bindgen.github.io/wasm-pack/book/prerequisites/index.html - 2026-10-28: Maintainer
github.com/wasm-bindgen/wasm-pack/blob/HEAD/README.md - 2026-10-28: License
raw.githubusercontent.com/wasm-bindgen/wasm-pack/v0.15.0/Cargo.toml - 2026-10-28: Current major version, Last release
api.github.com/repos/wasm-bindgen/wasm-pack/releases/latest - 2026-10-28: First release
crates.io/api/v1/crates/wasm-pack/versions - 2026-10-28: Install with
wasm-bindgen.github.io/wasm-pack/installer - 2026-10-28: Contributors
api.github.com/repos/wasm-bindgen/wasm-pack/contributors - 2026-10-28: npm downloads a week
api.npmjs.org/downloads/range/2026-09-28:2026-10-04/wasm-pack