← All repos

wasm-minimal-protocol

A minimal protocol to write Typst plugins, a CLI tool to stub WASI imports, and example Typst plugins written in Rust/C/Zig/Go/Haskell/MoonBit.

cliplugintypstwasmweb-assembly
Browse cluster: Claude AI Agent Frameworks & MCP Tools
197commits
19contributors
2languages

Tech stack & purpose

Wasm-minimal-protocol provides a minimal protocol for writing Typst plugins in WebAssembly, along with wasi-stub, a CLI tool that removes WASI dependencies from WebAssembly binaries by replacing their functions with no-op stubs. The project is built in Rust and includes example plugins demonstrating how to write Typst plugins in Rust, C, Zig, Go, Haskell, and MoonBit. It addresses the problem domain of plugin development for Typst, a markup-based typesetting system, enabling developers to create extensions in multiple programming languages by compiling to WebAssembly and then using wasi-stub to make those binaries compatible with Typst's plugin system.

Languages

Rust
98.1%
Shell
1.9%

Contributors