acornjs/acorn
A small, fast, JavaScript-based JavaScript parser observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 94
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
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: n/a
- age_days: 5091
- days_rel: n/a
- days_push: 36
- n_releases_24m: 0
Adoption not part of the score
11440 stars · 1043 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Acorn is a small, fast JavaScript parser written entirely in JavaScript that produces an ECMAScript syntax tree (AST). It ships as three packages: the main parser, an error-tolerant loose parser, and a syntax tree walker, and supports plugins for parsing JavaScript dialects like JSX.
Use cases
- parse JavaScript source code into an AST
- build a linter or code analysis tool for JavaScript
- write a transpiler or code transformer
- parse incomplete or broken JavaScript with error tolerance
- traverse and inspect JavaScript syntax trees
- add support for JSX or other JS dialects via plugins
When to choose
- you need a lightweight, dependency-free JavaScript parser in JS itself
- you are building tooling like linters, minifiers, bundlers, or formatters
- you need a plugin system to parse JavaScript dialects
- you need error-tolerant parsing of broken code via acorn-loose
When to avoid
- you need to parse languages other than JavaScript/ECMAScript
- you need the absolute fastest native parser and can accept a compiled dependency
- you need a full compiler framework with code generation built in
Facets
library · maturity stable
parser developer-tools parsers programming-languages developer-tools web-development browser ecmascript ast syntax-tree javascript-parser error-tolerant-parsing nodejs javascript
2 sources
- readme: https://github.com/acornjs/acorn · fetched 2026-08-28 · d7ad308ad2e0
- registry_npm: https://registry.npmjs.org/acorn · fetched 2026-08-29 · f9d3e5ea808c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| acornjs/acorn | main | 75 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem