ohmjs/ohm
A library and language for building parsers, interpreters, compilers, etc. observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 88
- Release rhythm 58
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 53
- age_days: 4122
- days_rel: 200
- days_push: 75
- n_releases_24m: 4
Adoption not part of the score
5543 stars · 226 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Ohm is a parsing toolkit consisting of a JavaScript library and a domain-specific language based on parsing expression grammars (PEGs). It is used to build parsers, interpreters, and compilers for custom file formats and programming languages.
Use cases
- parse a custom file format in JavaScript
- build a DSL with a parser and interpreter
- create a programming language compiler
- define grammars with left-recursive rules
- prototype language syntax with an online grammar editor
- separate grammar definitions from semantic actions
When to choose
- you need a parser for a custom language or file format in JavaScript/TypeScript
- you want modular separation of grammars and semantic actions
- you need natural support for left-recursive and left-associative rules
- you want to iteratively develop grammars with visual feedback
When to avoid
- you need a parser in a language other than JavaScript
- you only need simple regex-based text matching
- you need maximum parsing performance for huge inputs
Facets
library · maturity active
parser compiler interpreter programming-language parsers programming-languages developer-tools compilers browser peg grammars parsing-toolkit dsl semantic-actions left-recursion javascript nodejs typescript
1 source
- readme: https://github.com/ohmjs/ohm · fetched 2026-08-28 · 18d0d9bb7eab
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ohmjs/ohm | main | 80 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem