# Babel parser: 8.0 out of 10

A strong pick. 1st of 9 in [JavaScript parsers and codemods](https://elestia.ai/opensource/parsers/index.md).

@babel/parser is the parser inside Babel. With @babel/traverse, @babel/types and @babel/generator, it is still the most complete pure-JavaScript toolkit for reading and rewriting JS, TS, JSX and Flow, including early proposals. It is a strong pick today, but Oxc's parser is much faster and growing fast. Babel's donations have also dropped sharply.

**Best for:** Authors of codemods, build plugins and dev tools who want the widest syntax support and a mature JavaScript-native AST toolkit.

## Scores

- **Overall: 8.0** (likely 6.9 to 8.9)
  - Claude Opus 5.5 (7.5): For codemods and AST tools written in JavaScript, it is still the most complete and best-known choice, with a full transform toolkit around it. Oxc's parser is far faster and gaining ground quickly. That matters most for performance-sensitive tooling. Babel's falling funding adds risk over two years.
  - GPT-6.2 Sol (8.4): Babel is a strong pick for a new syntax-aware tool that needs JavaScript and TypeScript coverage or Babel-compatible trees. Recast is a better starting point for formatting-preserving edits, and ts-morph is better suited to changes driven by TypeScript symbols and types. Active releases and Prettier’s adoption support the recommendation, while conditional performance gains from Oxc and reduced funding make the long-term ranking less certain.
- **Needed by many: 4.4** (likely 3.3 to 5.6)
  - Claude Opus 5.5 (4.0): Few developers write parsers or codemods directly. The category mostly serves authors of tools, plugins and migrations. Within it, Babel's parser covers almost every syntax variant, so it fits as many of those users as any peer does.
  - GPT-6.2 Sol (4.8): Source parsing serves formatters, linters, build tools and migration scripts across the JavaScript ecosystem. Most application developers use those tools without choosing a parser themselves. Babel’s syntax coverage makes it useful across several kinds of tooling, but surveys measure use of the surrounding tools more directly than demand for parser APIs.
- **Helps a lot: 8.4** (likely 7.3 to 9.3)
  - Claude Opus 5.5 (8.0): Its syntax support is the broadest available, with mature plugins for TypeScript, JSX, Flow and proposals. Together with traverse, types and generator, it forms a complete and well-documented toolkit that AI agents write correctly. Babel 8 ships its own TypeScript types. Speed is its clear limit: native parsers like Oxc are roughly 2 to 3 times faster in benchmarks.
  - GPT-6.2 Sol (8.7): Babel 8.1.3 combines broad syntax support with typed nodes, clear documentation and structured diagnostics. The small parse API is easy for coding agents to use, and version-specific node shapes are the main pitfall. A reported TypeScript regression was fixed, and the latest patch improves error recovery. An independent benchmark on Babel 7 found that Oxc could be much faster with raw AST transfer, leaving the speed gap on Babel 8 uncertain.
- **Holds up over time: 7.4** (likely 5.7 to 8.4)
  - Claude Opus 5.5 (7.0): Development is very active: 618 commits and 39 releases in the last year, and Babel 8 shipped in June 2026 with a careful migration path. The risk is money. Donations fell to about $12k a year, Sovereign Tech Agency funding is ending, and three core maintainers carry most of the work. Some tools are moving to native parsers.
  - GPT-6.2 Sol (7.7): The parser published 22 versions in the past year, and November releases added new proposal syntax and fixed parser bugs. Babel has three core maintainers and received engineering and financial support, but recurring donations fell and the team said its public funding was due to end soon. Babel 8 changed AST shapes and raised the Node.js minimum, and a user reported downgrading while waiting for a parser fix. Vite’s move to Oxc for React Fast Refresh adds uncertainty about future adoption.
- **Used widely: 8.1** (likely 6.9 to 9.1)
  - Claude Opus 5.5 (8.0): It has about 1.47 billion downloads in 4 weeks and the largest dependents count in the category, 3.78 million repos. Most of that comes from Babel, Prettier, Vue and other tools that install it, not from direct choices. Its download ratio of 3.84 is just below the 4.1 median, while Oxc's parser grew about 80x, so Babel is slowly losing share.
  - GPT-6.2 Sol (8.2): The collector found 3.78 million dependent repositories and 4,546 dependent npm packages. The repository count leads the peer set and is over three times Acorn’s count. Four-week downloads rose from 382 million to 1.47 billion, but the 3.84× ratio trails the 4.1× catalog median and Oxc’s growth from a much smaller base. Automated and transitive installs blur direct adoption, and Babel’s stars and social mentions cover the whole monorepo.
- **Vouched for: 8.1** (likely 7.1 to 9.1)
  - Claude Opus 5.5 (8.0): Major projects build on it in production: Prettier, Vue's SFC compiler, Recast, jscodeshift and countless Babel plugins. Independent benchmarks rank it as correct but slower than native parsers. It has no specific survey data, and some frameworks, such as Angular, are moving away from it for speed.
  - GPT-6.2 Sol (8.2): Prettier uses Babel for several parsing modes and pins 8.1.3 on its main branch. Meta’s jscodeshift defaults to Babel and still declares a 7.x dependency. That gives Babel 8 direct backing from one major downstream tool, while survey results and the independent benchmark speak to Babel more broadly or to an earlier major.
- **Safe: 8.1** (likely 7.0 to 9.1)
  - Claude Opus 5.5 (8.0): The parser has no recorded advisories and pulls in one dependency. Babel fixes security issues quickly, as with the 2025 regex fix. The Scorecard is 6.9, with weak branch protection, pinned dependencies, fuzzing and SAST. The licence is MIT.
  - GPT-6.2 Sol (8.1): The MIT-licensed parser has zero advisories in the supplied OSV record and one declared dependency, @babel/types, which it uses for declarations. The tagged GitHub Actions workflow builds, tests and publishes with npm provenance. The repo-wide Scorecard gives code review and token permissions high marks but flags branch protection, dependency pinning, fuzzing and static analysis. An earlier provenance mismatch and limited visibility into who can authorize a release keep the range wide.

## Good

- It has the widest syntax coverage: TypeScript, JSX, Flow and TC39 proposals behind plugins, often before other parsers support them.
- It works with @babel/traverse, @babel/types and @babel/generator, and Recast and jscodeshift build on it, so the full codemod workflow is covered.
- Prettier, Vue's compiler, jscodeshift and countless plugins depend on it, so AI agents and documentation cover it very well.
- It has one dependency, no recorded advisories, and gets frequent releases from an active core team.

## Bad

- It is several times slower than native parsers such as Oxc. Some tools, like Angular CLI, are moving off Babel for speed.
- Its default AST is Babel-specific, not ESTree. You need the estree plugin to work with ESTree-based tools.
- Babel's donations fell from about $150k a year to about $12k, and its Sovereign Tech Agency grant is scheduled to end.
- Babel 8 is ESM-only and requires Node 22.18 or later, which forces migration work in older setups.

## The numbers

- Downloads, 4 weeks: 1.5B
- In a year: ×3.8
- GitHub stars: 44k
- Commits, 12 months: 618
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/babel/babel
- npm: https://www.npmjs.com/package/@babel/parser

The parser of Babel. The repository holds all of Babel. Many packages install it, so most downloads are not a direct choice.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
