Back to browse
GitHub Repository

Zero-dep streaming markdown for the browser — Rust→WASM, 100% CommonMark 0.31 + GFM. Built to not melt the main thread on concurrent LLM streams.

2 starsRust

Brookmd – streaming Markdown renderer in Rust (web, RN, Swift and more)

by siinghd·Jul 21, 2026·1 point·0 comments

AI Analysis

●●●BangerWizardryBig BrainSolve My Problem

Speculative closure parsing keeps LLM streams off the main thread while React melts.

Strengths
  • Incremental parser re-parses only the active tail, keeping wire deltas O(n) even for giant blocks.
  • Opt-in structured data channel exposes tables and lists as typed objects, skipping HTML re-parsing entirely.
  • Single Rust core compiles to WASM, React Native, Swift, and Kotlin with byte-identical JSON output.
Weaknesses
  • Native mobile bindings are marked experimental, limiting immediate adoption for cross-platform teams.
  • Zero dependencies is great, but debugging WASM binaries in production can be opaque without sourcemaps.
Target Audience

Frontend developers building AI chat interfaces or real-time documentation tools

Similar To

react-markdown · marked · commonmark.js

Similar Projects