MCPcopy
hub / github.com/babel/babel

github.com/babel/babel @v8.0.3 sqlite

repository ↗ · DeepWiki ↗ · release v8.0.3 ↗
28,886 symbols 55,715 edges 17,526 files 255 documented · 1%
README

babel

The compiler for writing next generation JavaScript.

<a href="https://npmx.dev/package/@babel/core"><img alt="npm Downloads" src="https://img.shields.io/npm/dm/@babel/core.svg?maxAge=43200&label=npm%20downloads&logo=babel&logoSize=auto"></a>

GitHub CI Status Coverage Status pkg.pr.new

Slack Status

Supporting Babel

Backers on Open Collective Sponsors on Open Collective Business Strategy Status

Babel (pronounced "babble") is a community-driven project used by many companies and projects, and is maintained by a group of volunteers. If you'd like to help support the future of the project, please consider:

  • Giving developer time on the project. (Message us on Twitter or Slack for guidance!)
  • Giving funds by becoming a sponsor on Open Collective or GitHub (which goes to our Open Collective account)!

Sponsors

Our top sponsors are shown below! [Become a sponsor]

Intro

Babel is a tool that helps you write code in the latest version of JavaScript. When your supported environments don't support certain features natively, Babel will help you compile those features down to a supported version.

In

// ES2020 nullish coalescing
function greet(input) {
  return input ?? "Hello world";
}

Out

function greet(input) {
  return input != null ? input : "Hello world";
}

Try it out at our REPL.

FAQ

Who maintains Babel?

Mostly a handful of volunteers, funded by you! Please check out our team page!

Is there a Babel song?

I'm so glad you asked: Hallelujah —— In Praise of Babel by @angus-c, audio version by @swyx. Tweet us your recordings!

Looking for support?

For questions and support please join or open a GitHub Discussion, join our Slack Community (you can sign up here for an invite), ask a question on Stack Overflow, or ping us on Bluesky.

Where are the docs?

Check out our website: babeljs.io, and report issues/features at babel/website.

Want to report a bug or request a feature?

Please read through our CONTRIBUTING.md and fill out the issue template at babel/issues!

Want to contribute to Babel?

Check out:

Some resources:

How is the repo structured?

The Babel repo is managed as a monorepo that is composed of many npm packages.

License

MIT

Extension points exported contracts — how you extend this code

IFoo (Interface)
(no doc) [13 implementers]
packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/10/input.js
StringValidator (Interface)
(no doc) [4 implementers]
packages/babel-plugin-transform-typescript/test/fixtures/namespace/canonical/input.ts
HubInterface (Interface)
(no doc) [2 implementers]
packages/babel-traverse/src/hub.ts
IClient (Interface)
(no doc) [2 implementers]
packages/babel-register/src/types.ts
Receiver (Interface)
(no doc) [1 implementers]
packages/babel-helper-create-class-features-plugin/src/fields.ts
Options (Interface)
(no doc)
packages/babel-plugin-syntax-partial-application/src/index.ts
Options (Interface)
(no doc)
packages/babel-plugin-transform-arrow-functions/src/index.ts
Options (Interface)
(no doc)
packages/babel-plugin-transform-named-capturing-groups-regex/src/index.ts

Core symbols most depended-on inside this repo

expect
called by 9987
packages/babel-parser/src/parser/util.ts
push
called by 1986
packages/babel-plugin-transform-destructuring/src/util.ts
fn
called by 1625
packages/babel-plugin-transform-classes/test/fixtures/spec/computed-keys-yield-await/input.js
#m
called by 1575
packages/babel-plugin-transform-typescript/test/fixtures/class/methods/input.ts
call
called by 1184
packages/babel-helper-member-expression-to-functions/src/index.ts
next
called by 944
Makefile.js
get
called by 923
packages/babel-helper-member-expression-to-functions/src/index.ts
expect
called by 720
packages/babel-core/test/fixtures/plugins/inference-recursion/exec.js

Shape

Function 10,703
Class 10,085
Method 7,168
Interface 725
Enum 205

Languages

TypeScript100%

Modules by API surface

Makefile.js716 symbols
packages/babel-traverse/src/path/generated/validators.d.ts305 symbols
packages/babel-types/src/asserts/generated/index.ts304 symbols
packages/babel-traverse/src/path/generated/asserts.d.ts304 symbols
packages/babel-types/src/validators/generated/index.ts303 symbols
packages/babel-types/src/ast-types/generated/index.ts269 symbols
packages/babel-types/src/builders/generated/lowercase.ts252 symbols
packages/babel-parser/src/plugins/typescript/index.ts204 symbols
packages/babel-parser/src/plugins/flow/index.ts154 symbols
packages/babel-parser/src/parser/statement.ts122 symbols
packages/babel-parser/src/parser/expression.ts111 symbols
packages/babel-generator/src/generators/typescript.ts75 symbols

Dependencies from manifests, versioned

$repo-utilslink:./scripts/repo- · 1×
@actions/github9.1.1 · 1×
@babel-baseline/cli
@babel-baseline/core
@babel-baseline/generator
@babel-baseline/helper-compilation-targets
@babel-baseline/helper-validator-identifier
@babel-baseline/parser
@babel-baseline/traverse
@babel-baseline/types
@babel/cli8.0.1 · 1×
@babel/code-frameworkspace:^ · 1×

For agents

$ claude mcp add babel \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact