# bytecodealliance/wit-bindgen

A language binding generator for WebAssembly interface types

Repository: https://github.com/bytecodealliance/wit-bindgen
Canonical: https://ross.abutalabs.com/products/wit-bindgen
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: webassembly, interface-types, wasi, rust, module-linking, wasmtime
Last push: 2026-08-25T15:58:54+00:00

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

## Adoption (not part of the score)
Stars 1446, forks 286 (observed 2026-08-28T04:04:45.284617+00:00)

## What it is
A suite of bindings generators that produce guest-language bindings from WIT (WebAssembly Interface Types) files for the WebAssembly Component Model. It supports Rust, C, C++, C#, and Go programs compiled to WebAssembly.

## Use cases
- generate rust bindings for wit interface definitions
- compile a rust library to a webassembly component
- build a wasi component with typed imports and exports
- create c or go bindings for the component model
- define a plugin api for a wasm host using wit
- turn a core wasm module into a component

## When to choose
- you are authoring guest programs compiled to webassembly and want type-safe bindings from wit files
- you are building components for wasmtime or other component-model hosts
- you want to share interface definitions across rust, c, c++, c#, or go wasm guests

## When to avoid
- you need host-side bindings to execute components - use wasmtime or a host-specific tool instead
- your guest language is not rust, c, c++, c#, or go and has no third-party generator
- you are targeting core wasm modules without the component model

## Facets
- artifact type: library
- maturity: active
- function: wasm, serialization, sdk
- domain: developer-tools, compilers, cross-platform
- platform: rust, cpp, c, go, wasm, cli
- tags: wit, component-model, wasi, bindings-generator, guest-programs, idl, bytecode-alliance, code-generation, webassembly

## Member repositories
- bytecodealliance/wit-bindgen (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:45.284617+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-30T04:36:09.639389+00:00, confidence not recorded.
  - readme: https://github.com/bytecodealliance/wit-bindgen (fetched 2026-08-28T04:04:45.284617+00:00, sha da09499e44de)
  - registry_crates: https://crates.io/api/v1/crates/wit-bindgen (fetched 2026-08-29T11:45:54.891181+00:00, sha 6754ba78a6b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
