# wasm-pack

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


Source: https://findsoftware.frbit.cloud/wasm-pack/
Last reviewed: 2026-10-28
Listed since: 2026-10-28

## Record

### Links

- home: https://wasm-bindgen.github.io/wasm-pack/
- repository: https://github.com/wasm-bindgen/wasm-pack
- docs: https://wasm-bindgen.github.io/wasm-pack/book/
- discord: https://discordapp.com/channels/442252698964721669/443151097398296587

### Identity

- status: active
- maintainer: drager
- maintainerType: unknown
- parent: unknown
- firstRelease: 2018
- hqCountry: unknown

### Kind

- category: build-tool
- hosting: not applicable
- language: rust
- runtime: binary
- runtimeMin: not applicable
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: local
- renderingModes: not applicable
- installMethod: cargo install

### License

- licenseModel: open-source
- license: MIT OR Apache-2.0, Apache-2.0

### Releases

- currentMajor: 0
- latestReleaseDate: 2026-05-15

### Adoption

- githubStargazers: 7293
- packagistDownloads: not applicable
- npmWeeklyDownloads: 111161
- contributors: 156
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://wasm-bindgen.github.io/wasm-pack/ (read 2026-10-28)
- urls: https://api.github.com/repos/wasm-bindgen/wasm-pack (read 2026-10-28)
- urls: https://wasm-bindgen.github.io/wasm-pack/book/ (read 2026-10-28)
- category: https://wasm-bindgen.github.io/wasm-pack/book/prerequisites/index.html (read 2026-10-28)
- runsAs: https://wasm-bindgen.github.io/wasm-pack/book/prerequisites/index.html (read 2026-10-28)
- language: https://api.github.com/repos/wasm-bindgen/wasm-pack (read 2026-10-28)
- runtime: https://wasm-bindgen.github.io/wasm-pack/book/prerequisites/index.html (read 2026-10-28)
- maintainer: https://github.com/wasm-bindgen/wasm-pack/blob/HEAD/README.md (read 2026-10-28)
- license: https://raw.githubusercontent.com/wasm-bindgen/wasm-pack/v0.15.0/Cargo.toml (read 2026-10-28)
- license: https://api.github.com/repos/wasm-bindgen/wasm-pack (read 2026-10-28)
- currentMajor: https://api.github.com/repos/wasm-bindgen/wasm-pack/releases/latest (read 2026-10-28)
- latestReleaseDate: https://api.github.com/repos/wasm-bindgen/wasm-pack/releases/latest (read 2026-10-28)
- firstRelease: https://crates.io/api/v1/crates/wasm-pack/versions (read 2026-10-28)
- installMethod: https://wasm-bindgen.github.io/wasm-pack/installer (read 2026-10-28)
- installMethod: https://wasm-bindgen.github.io/wasm-pack/installer (read 2026-10-28)
- installMethod: https://wasm-bindgen.github.io/wasm-pack/installer (read 2026-10-28)
- installMethod: https://wasm-bindgen.github.io/wasm-pack/installer (read 2026-10-28)
- githubStargazers: https://api.github.com/repos/wasm-bindgen/wasm-pack (read 2026-10-28)
- contributors: https://api.github.com/repos/wasm-bindgen/wasm-pack/contributors (read 2026-10-28)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-09-28:2026-10-04/wasm-pack (read 2026-10-28)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
