# Babel

> Babel is a JavaScript compiler. Use next generation JavaScript, today.

Source: https://talira.ai/catalog/babel-qwk4bqkg
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / compilers / javascript](https://talira.ai/categories/developer-tools/compilers/javascript), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^3]
- API: yes[^2]
- Plugins: yes[^2]
- Backed by: [Babel](https://talira.ai/orgs/babel.md)
- Funding: funded by donations[^5][^6]
- Sponsors: Sovereign Tech Agency, Sovereign Tech Fund, Vite Ecosystem Fund, Igalia, Coinbase, American Express

Babel is a JavaScript compiler that turns code written with the newest syntax into JavaScript that older browsers and runtimes can run, with source maps for debugging the output. It is built out of plugins, grouped into presets: `@babel/preset-env` picks the transforms for the environments you target, and other presets convert JSX and strip [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md) or Flow type annotations. Missing built-ins come from a polyfill library such as [core-js](https://talira.ai/catalog/core-js-k1vh0jgg.md), and the same plugin API powers codemods and other source transformations. A small group of volunteers maintains it, funded through Open Collective.

## Links

- Website: https://babeljs.io/
- GitHub: https://github.com/babel/babel
- Docs: https://babeljs.io/docs/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/babel>[^1]

## Problems it solves

- write modern JavaScript and still ship code that runs in older browsers
- compile JSX in a React project without a full framework toolchain
- strip TypeScript types during the build without slowing it down with type checking
- use a proposed JavaScript feature before browsers support it
- only transform the syntax my target browsers don't understand, based on a browserslist
- write a codemod that rewrites thousands of files across a large JavaScript codebase
- add my own compile-time transform to the JavaScript build, like stripping debug calls
- debug transpiled JavaScript in the browser and see my original source lines
- our bundle ships arrow functions and optional chaining that an old Safari can't parse
- parse JavaScript into an AST and print it back after changing it
- set up the transpile step that webpack or Jest runs on each file
- insert polyfills only for the features a browser is missing

## Features

- syntax transforms from newer JavaScript to ES5
- @babel/preset-env targets chosen environments
- JSX transform with @babel/preset-react
- strips TypeScript and Flow type annotations
- polyfills through core-js
- plugins and presets you can write yourself
- source maps
- codemods and other source transformations
- assumptions that trade spec compliance for smaller or faster output
- command line compiler (@babel/cli)

## Limitations

- Doesn't type-check TypeScript or Flow: it strips the type annotations, so you still run tsc or Flow to check types[^2]

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.59 out of 1.
Signals: backing 0.70, extensibility 0.60.

- has a company behind it
- funding: funded by donations
- sponsored by Sovereign Tech Agency, Sovereign Tech Fund, Vite Ecosystem Fund, Igalia
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [esbuild](https://talira.ai/catalog/esbuild-198nyf0k.md): An extremely fast bundler for the web
- [SWC](https://talira.ai/catalog/swc-bb581j3x.md): Rust-based platform for the Web: a super-fast TypeScript and JavaScript compiler
- [Oxc](https://talira.ai/catalog/oxc-x57vf6nn.md): The JavaScript Oxidation Compiler: high-performance JavaScript and TypeScript tools in Rust

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://babeljs.io/docs/ (checked 20 Nov 2026)
[^3]: https://github.com/babel/babel/blob/main/LICENSE (checked 20 Nov 2026)
[^4]: https://babeljs.io/ (checked 20 Nov 2026)
[^5]: https://opencollective.com/babel (checked 20 Nov 2026)
[^6]: https://github.com/babel/babel (checked 20 Nov 2026)
