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.
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.
- babeljs.io/blog/2026/06/16/8.0.0: Active major release, funding concerns
- github.com/oxc-project/bench-javascript-parser: Oxc faster
- dependents.repos: Largest dependents in category
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.
- babel.dev/docs/babel-parser: Broad syntax coverage and documented parser API
- github.com/benjamn/recast: Formatting-preserving AST edits and printing
- ts-morph.com/navigation/type-checker: Access to TypeScript’s type checker
- github.com/prettier/prettier/blob/main/package.json: Prettier main uses the current parser patch
- shoppercove.com/blog/oxc-parser-vs-babel-parser: Oxc gains depend on how the AST is transferred
- babel.dev/blog/2026/06/16/8.0.0: Stable Babel 8 release and declining recurring funding
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.
- category scope: AST work is mostly done by tool and codemod authors
- babeljs.io/blog/2026/06/16/8.0.0: Babel targets the whole JS ecosystem
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.
- babel.dev/docs/babel-parser: Syntax, parser options and AST coverage
- 2025.stateofjs.com/en-US/other-tools: Measures use of Babel, ESLint and Prettier
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.
- github.com/oxc-project/bench-javascript-parser: Babel slower than Oxc, comparable to Acorn (vendor benchmark)
- dev.to/herrington_darkholme/benchmark-typescript-parsers-demystify-rust-tooling-performance-2go8: Independent parser comparison: native parsers are faster
- babeljs.io/blog/2026/06/16/8.0.0: Babel 8 ships built-in TS types
- npm hasTypes: Types included
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.
- babel.dev/docs/babel-parser: Parse API, ESTree mode and diagnostic codes
- babel.dev/docs/v8-migration-api: Babel 8 changes to AST node shapes
- github.com/babel/babel/issues/18264: User-reported TypeScript regression closed with a fix
- github.com/babel/babel/releases/tag/v8.1.3: Latest parser and error recovery fixes
- shoppercove.com/blog/oxc-parser-vs-babel-parser: Independent Babel 7 timings vary with Oxc transfer mode
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.
- github commitsLastYear / releasesLastYear: 618 commits, 39 releases
- babeljs.io/blog/2026/06/16/8.0.0: Babel 8 released; funding decline and STA grant ending
- dev.to/lacolaco/adoption-of-oxc-parser-in-angular-v221-498g: Angular CLI moving part of its pipeline from Babel to oxc-parser
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.
- npm versionsLastYear: 22 parser package versions in the past year
- babel.dev/blog/2026/11/02/8.1.0: November release adds several TC39 proposals
- babel.dev/blog/2026/06/16/8.0.0: Core team, funding decline and Node.js changes
- github.com/babel/babel/issues/18264: User reported downgrading during a regression
- v8.vite.dev/plugins: Official React plugin uses Oxc for Fast Refresh
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.
- Prettier, @vue/compiler-sfc, jscodeshift use @babel/parser: Widely built upon
- 2025.stateofjs.com/en-US/libraries/build-tools: Surveys focus on bundlers; no parser-specific satisfaction data
- dev.to/lacolaco/adoption-of-oxc-parser-in-angular-v221-498g: Angular partly replacing Babel
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.
- prettier.io/docs/options.html#parser: Prettier ships Babel parsing modes and documents their tradeoffs
- github.com/prettier/prettier/blob/main/package.json: Prettier main directly pins Babel parser 8.1.3
- github.com/meta/jscodeshift: Meta’s codemod toolkit defaults to Babel parsing
- github.com/meta/jscodeshift/blob/main/package.json: jscodeshift declares a 7.x parser dependency
- 2025.stateofjs.com/en-US/other-tools: Survey tracks Babel usage across the toolchain
- shoppercove.com/blog/oxc-parser-vs-babel-parser: Independent performance measurements cover Babel 7
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.
- advisories and npm license: Zero parser advisories and a permissive MIT license
- github.com/babel/babel/blob/v8.1.3/packages/babel-parser/package.json: One declared dependency, used for types
- github.com/babel/babel/blob/v8.1.3/.github/workflows/release.yml: GitHub Actions runs build, test and provenance publishing
- github.com/babel/babel/discussions/18321: Earlier attestations reportedly pointed to pre-release commits
- scorecard: 6.9 overall with weak branch protection, pinning, fuzzing and SAST checks
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
- 8.0Babel parser
- 7.8Oxc parser
- 7.5ast-grep
- 7.1Acorn
- 7.1Recast
- 7.0ts-morph
- 6.4jscodeshift
- 6.3Meriyah
- 2.4Esprima