# wasm-bindgen/wasm-pack

📦✨ your favorite rust -> wasm workflow tool!

Repository: https://github.com/wasm-bindgen/wasm-pack
Canonical: https://ross.abutalabs.com/products/wasm-pack
Homepage: https://wasm-bindgen.github.io/wasm-pack/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: wasm, rust-wasm, registry, cli, rust, npm, package
Last push: 2026-08-12T18:56:24+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 52, longevity 100
- inputs: {"age_days": 3124, "days_push": 21, "days_rel": 110, "gap_med": 280.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7282, forks 489 (observed 2026-08-28T04:09:58.016448+00:00)

## What it is
wasm-pack is a command-line workflow tool for building Rust code into WebAssembly packages that interoperate with JavaScript. It scaffolds projects, builds npm-ready wasm packages, runs browser tests, and publishes to the npm registry.

## Use cases
- compile rust to webassembly for use in javascript
- publish a rust wasm package to npm
- scaffold a new rust wasm project from a template
- run browser tests for rust-generated wasm
- use rust code in a webpack or node.js project

## When to choose
- you write Rust and want to target the browser or Node.js via WebAssembly
- you want an npm-publishable package generated from a Rust crate
- you want a single tool covering scaffolding, building, testing, and publishing for Rust/Wasm

## When to avoid
- your project is pure JavaScript/TypeScript with no Rust component
- you need to compile other languages (C/C++/Go) to WebAssembly
- you want a general-purpose Rust build tool unrelated to wasm

## Facets
- artifact type: cli-tool
- maturity: active
- function: build-tool, cli, wasm, package-manager, testing
- domain: developer-tools, web-development, compilers, frontend
- platform: rust, cli, cross-platform, wasm, browser
- tags: rust-to-wasm, npm-publishing, webassembly, javascript-interop, project-scaffolding, nodejs

## Member repositories
- wasm-bindgen/wasm-pack (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:58.016448+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:38:53.007522+00:00, confidence not recorded.
  - readme: https://github.com/wasm-bindgen/wasm-pack (fetched 2026-08-28T04:09:58.016448+00:00, sha 4d35b55424ac)
  - homepage: https://wasm-bindgen.github.io/wasm-pack/ (fetched 2026-08-29T08:34:09.977519+00:00, sha 32b712981270)
  - registry_crates: https://crates.io/api/v1/crates/wasm-pack (fetched 2026-08-29T08:34:09.979892+00:00, sha 0d3efb007032)
- Data as of 2026-08-30T08:39:29.467469+00:00.
