Bridge provides a shared WebAssembly ABI, formatter development kits, and a JavaScript host runtime for code formatters.
It supports whole-file, range, and synchronous embedded-language formatting. Formatter configuration stays opaque to the ABI: each formatter defines its own encoding and decoding. Package versions are independent of the Bridge ABI v1 wire version.
| Package | Purpose |
|---|---|
| wasm-fmt-fdk | Rust formatter development kit, including procedural macros |
| Go FDK | Go formatter development kit for TinyGo Wasm guests |
| @wasm-fmt/runtime | JavaScript host runtime and formatter composition |
| @wasm-fmt/bindgen | JavaScript bindings generator for compiled formatters |
See each package's README for installation, usage, and supported toolchains. The ABI specification defines the wire format and instance ownership contract.
mise run check
mise run test
mise run package:checkSee RELEASING.md for version management and publishing, and CHANGELOG.md for release history.
Licensed under MIT or Apache-2.0, at your option.