Elestia Open Source Ratings
8.0

Babel parser

A strong pick. 1st of 9 JavaScript parsers and codemods.

@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.

WebsiteGitHubnpm

Scores

Overall8.0

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 7.5, likely 6.5 to 8.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, likely 7.2 to 9.2

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 many4.4

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.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, likely 3.5 to 6.1

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 lot8.4

How well does it do the job for those who need it?

Claude Opus 5.5: 8.0, likely 7.0 to 9.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, likely 7.5 to 9.6

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 time7.4

Will it still be a good choice in two years?

Claude Opus 5.5: 7.0, likely 5.0 to 8.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, likely 6.3 to 8.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 widely8.1

How many use it, and is that growing?

Claude Opus 5.5: 8.0, likely 7.0 to 9.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.

  • npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 1.47B vs 382M, ratio 3.84 below median 4.1
  • dependents.repos: 3.78M repos, highest among peers
  • peers Oxc parser downloads: Oxc grew from 5M to 403M

GPT-6.2 Sol: 8.2, likely 6.7 to 9.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.

  • dependents: 3,782,849 indexed repositories and 4,546 packages
  • npm downloadsLast4Weeks and npm downloadsSame4WeeksYearAgo: Downloads grew 3.84× year over year
  • medianDownloadsRatio and peers: Growth below catalog median and behind Oxc
  • project note, github stars and bluesky posts: Monorepo attention and transitive installs inflate apparent reach
Vouched for8.1

Who stands behind it being good?

Claude Opus 5.5: 8.0, likely 7.0 to 9.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, likely 7.1 to 9.1

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.

Safe8.1

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.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.

  • advisories.total: 0 advisories
  • npm dependencies: 1 dependency
  • scorecard.score: 6.9; weak Fuzzing, SAST, Pinned-Dependencies
  • bluesky top posts: Prompt security release in March 2025

GPT-6.2 Sol: 8.1, likely 6.9 to 9.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

npm downloads, 4 weeks
1.5B ×3.8 in a year
GitHub stars
44k
Commits, 12 months
618
npm version
8.1.3 Nov 2026
Versions, 12 months
22
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
6.9 out of 10, Nov 2026
Licence
MIT

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

Read on 21 November 2026 from GitHub (babel/babel), npm (@babel/parser), OSV and the OpenSSF Scorecard.

JavaScript parsers and codemods

  1. 8.0Babel parser
  2. 7.8Oxc parser
  3. 7.5ast-grep
  4. 7.1Acorn
  5. 7.1Recast
  6. 7.0ts-morph
  7. 6.4jscodeshift
  8. 6.3Meriyah
  9. 2.4Esprima
Compare all 9 on six scores