WebAssembly

Tombi's WebAssembly support is published as two npm packages. They are separated so an application only downloads the runtime it needs:

PackageContents
tombi-wasm-libFormatter and linter
tombi-wasm-lspLanguage Server

Install only the package required by your application:

pnpm add tombi-wasm-lib
pnpm add tombi-wasm-lsp

These packages are intended for browsers. For formatting and linting in server-side Node.js, use the native tombi-lib package instead of tombi-wasm-lib.

The two packages are built from the shared tombi-wasm Rust crate. The lib and lsp features produce independent WASM artifacts.

Try the WASM Playground