Samemark
github.com/anzal1/samemark- Category
- Developer Tools
- Rank
- No. 3192Tools index
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Data Processing
- GitHub
- 1 stars
- Date
About
Samemark is a Markdown parser that produces the same mdast output as remark-parse and works as a drop-in replacement in unified, with a faster parsing speed. It also includes an incremental parser for streaming LLM output, so chat interfaces do not need to reparse the whole message on each update.
At a glance
Samemark parses Markdown into the tree used by remark, with a faster path for common syntax. It is worth evaluating if profiling shows Markdown parsing or streaming updates are slowing your interface.
Good fit
JavaScript developers with a remark-based pipeline who can compare output and timing on representative documents.
Consider something else when
Skip it if Markdown parsing is a small part of your runtime or if most input needs extensions that use the reference parser.
Start here
Paste a synthetic sample of your syntax into the public playground and compare the trees. Then profile representative documents in your application, including any extensions and the rendering step.
Cost and requirements
The MIT-licensed package supports Node 18 or later and compatible JavaScript runtimes. The reference parser is a recommended dependency for fallback.
Limits to know
The comparison runs in the browser. The faster path handles supported syntax and delegates other cases to the reference parser. One matching example does not establish full compatibility, and faster parsing does not guarantee the same gain in rendering.
Sources checked 2026-11-05. Source-based assessment.
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.