DEV Community

Alex Spinov
Alex Spinov

Posted on

Oxc Has a Free API: The JavaScript Toolchain Written in Rust That's 100x Faster

ESLint, Babel, Prettier — they're all written in JavaScript. Oxc rewrites them in Rust and makes them 100x faster.

What Is Oxc?

Oxc (Oxidation Compiler) is a collection of JavaScript/TypeScript tools written in Rust:

  • Parser — 3x faster than SWC, 20x faster than Babel
  • Linter — 50-100x faster than ESLint
  • Resolver — 28x faster than enhanced-resolve
  • Transformer — Babel-compatible transforms in Rust
  • Minifier — coming soon (terser replacement)

The Linter

npx oxlint@latest
# Lints your entire project in milliseconds
Enter fullscreen mode Exit fullscreen mode

On a 10,000-file project:

  • ESLint: 45 seconds
  • Oxlint: 0.4 seconds

That's not a typo. Sub-second linting on massive codebases.

# 400+ built-in rules
npx oxlint --deny-warnings

# With config
npx oxlint -c oxlintrc.json
Enter fullscreen mode Exit fullscreen mode

What Rules?

Oxlint includes rules from:

  • eslint (core rules)
  • typescript-eslint
  • eslint-plugin-react
  • eslint-plugin-react-hooks
  • eslint-plugin-jsx-a11y
  • eslint-plugin-import
  • eslint-plugin-unicorn
  • eslint-plugin-jest
  • eslint-plugin-nextjs

All built in. No plugins to install.

Use With ESLint

You don't have to replace ESLint entirely. Use Oxlint for fast rules, ESLint for complex ones:

# Oxlint handles the fast stuff, ESLint handles what Oxlint can't
npx oxlint && npx eslint .
Enter fullscreen mode Exit fullscreen mode

Turn off in ESLint what Oxlint already covers → ESLint runs 3-5x faster on the remaining rules.

Why Oxc Matters

  • 100x faster — feedback loop measured in milliseconds, not seconds
  • Drop-in — same rules, same behavior as ESLint equivalents
  • Memory efficient — uses 10x less RAM than JavaScript-based tools
  • Foundation — Oxc's parser powers Rolldown (Vite's future bundler)

Building JavaScript toolchains? Check out my developer tools or email spinov001@gmail.com.

Top comments (0)