whereismyai
Samemark
Samemark is a markdown parser that returns the same mdast tree as remark-parse at a much faster speed.
Samemark is a high-performance markdown parser designed for JavaScript environments. It produces the exact same mdast tree as remark-parse with GitHub Flavored Markdown and falls back to the standard parser for unsupported extensions. The library includes an incremental streaming parser for chat applications and supports Node, browsers, Deno, Bun, and edge runtimes. It natively implements GFM, frontmatter, and math extensions without requiring micromark at parse time. Developers use it inside unified pipelines and React chat interfaces to reduce main-thread rendering and parsing time.
Samemark at a glance
- Best for: Software engineer
- Runs on: Web, Node, Deno, Bun, API
- Pricing: Free
- Released: October 2026
- Category: AI coding tool
- Website: github.com/halleylabs/samemark
Key features
- Parses markdown into standard mdast trees
- Falls back to standard parsers for custom extensions
- Provides incremental streaming for chat messages
- Includes a React chat integration example with memoised blocks
- Supports native GFM, frontmatter, and math
- Runs self-check validation on processor startup
Use it for
- Speeding up unified markdown processing pipelines
- Streaming chat message responses in React UIs
- Building static sites with Astro faster
- Parsing markdown without micromark at parse time
Alternatives to Samemark
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- Mdt — Avoids unnecessary rereading, token use, and distraction for agents.
- Enzyme — It indexes markdown notes locally so AI coding agents can cite them.
- Sgrep — Runs locally without accounts or hosted indexes using small CPU models.
- Markdownee — Extracts main web content cleanly using Trafilatura Core and Crawlee.
- daidocs — It keeps code graphs as plain text for lower token costs and better accuracy.
- jscpd — A native Rust binary that runs fast without a Node.js runtime and integrates with AI agents.
- ccusage — Tracks token usage and costs locally across multiple coding agent CLIs.
- OpenCode — Works with 75+ model providers, local models, and existing subscriptions
- Genkit — Provides unified APIs and local developer tools for AI application workflows.
- DotMD — Reviews documents like code with line-specific agent fixes.
- GLiNER — Enables zero-shot entity extraction without labeled training data on consumer CPUs.
All Samemark alternatives