# wasm-bindgen/wasm-bindgen

Facilitating high-level interactions between Wasm modules and JavaScript

Repository: https://github.com/wasm-bindgen/wasm-bindgen
Canonical: https://ross.abutalabs.com/products/wasm-bindgen
Homepage: https://wasm-bindgen.github.io/wasm-bindgen/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: wasm, javascript, rust, binding-generator, rust-wasm
Last push: 2026-08-26T17:48:58+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 3180, "days_push": 7, "days_rel": 26, "gap_med": 8, "n_releases_24m": 32}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9126, forks 1235 (observed 2026-08-28T04:10:28.508410+00:00)

## What it is
wasm-bindgen is a Rust library and CLI tool that generates high-level bindings between WebAssembly modules and JavaScript, allowing rich types like strings, objects, and classes to cross the JS/wasm boundary. It is a core part of the Rust and WebAssembly ecosystem, often used together with wasm-pack.

## Use cases
- call Rust functions from JavaScript in the browser
- import JavaScript APIs like DOM or console into Rust
- generate TypeScript bindings for Rust wasm code
- pass strings and objects between wasm and JavaScript
- build web apps with Rust compiled to WebAssembly
- publish Rust wasm packages to npm

## When to choose
- you are writing Rust that compiles to WebAssembly and needs JS interop
- you want rich type exchange (strings, closures, classes) between wasm and JS
- you want automatic TypeScript definitions for your Rust exports

## When to avoid
- you compile to wasm from C/C++ or other non-Rust languages
- your wasm module has no JavaScript interaction
- you target server-side wasm runtimes without a JS host

## Facets
- artifact type: library
- maturity: stable
- function: wasm, sdk, serialization, developer-tools
- domain: web-development, frontend, programming-languages, developer-tools
- platform: wasm, browser, rust
- tags: binding-generator, rust-wasm, javascript-interop, typescript-bindings, ecmascript-modules, javascript, web-server

## Member repositories
- wasm-bindgen/wasm-bindgen (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.508410+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:23:25.589290+00:00, confidence not recorded.
  - readme: https://github.com/wasm-bindgen/wasm-bindgen (fetched 2026-08-28T04:10:28.508410+00:00, sha c9434ce69070)
  - homepage: https://wasm-bindgen.github.io/wasm-bindgen/ (fetched 2026-08-29T08:23:35.541020+00:00, sha 7fdff9c1ca82)
  - registry_crates: https://crates.io/api/v1/crates/wasm-bindgen (fetched 2026-08-29T08:23:35.543420+00:00, sha cf083411b73a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
