Skip to content

feat: add WASI-free WebAssembly bindings - #248

Open
natew wants to merge 2 commits into
bruits:mainfrom
natew:feat/web-wasm-binding
Open

feat: add WASI-free WebAssembly bindings#248
natew wants to merge 2 commits into
bruits:mainfrom
natew:feat/web-wasm-binding

Conversation

@natew

@natew natew commented Aug 16, 2026

Copy link
Copy Markdown

Adds a browser and Cloudflare Worker compatible WebAssembly package with Markdown-to-HTML and MDX-to-HAST APIs.

The runtime-only build omits JavaScript code generation. The full build retains mdxToJs for build-time use. Both builds use the existing Satteri HAST wire format and materializer.

Validated in Node and Cloudflare Workerd, including the runtime-only package exports and generated wasm artifacts.

"test": "npm run build && node --test test/runtime.test.mjs"
},
"dependencies": {
"satteri": "workspace:*"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this dependency make the WASM package quite large? I assume this also makes it impossible to bundle still

@codspeed-hq

codspeed-hq Bot commented Aug 17, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 36 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing natew:feat/web-wasm-binding (963d1d3) with main (7e28d6c)

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants