DEV Community

Alex Spinov
Alex Spinov

Posted on

Oxc Has a Free JavaScript Toolchain Written in Rust — Parser, Linter, Formatter, and Minifier 50x Faster

The JavaScript Tooling Speed Problem

ESLint: 10 seconds for a large project. Prettier: 5 seconds. Terser: 3 seconds for minification. Total: your CI pipeline spends 20 seconds just on linting and formatting.

Oxc (Oxidation Compiler) does all of this in Rust. 50x faster parser. 50x faster linter. One toolchain.

What Oxc Gives You

oxlint — Faster Than ESLint

npx oxlint
Enter fullscreen mode Exit fullscreen mode

400+ lint rules. No plugins to install. No config required.

ESLint oxlint
1,000 files 10s 0.2s
Startup 1s 10ms
Memory 200MB 20MB

oxc-parser — Fastest JS/TS Parser

import { parseSync } from 'oxc-parser';

const result = parseSync('const x: number = 42;', {
  sourceFilename: 'test.ts',
});
// Returns ESTree-compatible AST
Enter fullscreen mode Exit fullscreen mode

3x faster than SWC. 5x faster than Babel. 50x faster than TypeScript's parser.

oxc-transform — TypeScript/JSX Transform

import { transform } from 'oxc-transform';

const result = transform('test.tsx', '<div>Hello</div>');
// Strips types, transforms JSX — faster than SWC
Enter fullscreen mode Exit fullscreen mode

oxc-minifier

Faster than Terser with comparable output size. Drop-in replacement for production builds.

oxc-resolver

Node.js module resolution algorithm in Rust. Used by Rspack and other bundlers.

Comparison

Tool Parser Linter Formatter Minifier
Traditional Babel ESLint Prettier Terser
Rust-based oxc oxlint oxc-fmt oxc-minifier
Speed gain 50x 50x 30x 5x

Quick Start

# Lint your project right now
npx oxlint

# Use as library
npm install oxc-parser oxc-transform
Enter fullscreen mode Exit fullscreen mode

Why This Matters

JavaScript's tooling bottleneck is JavaScript itself. Oxc proves that rewriting core tools in Rust can make the entire development loop feel instant.


Building fast JavaScript tools? Check out my web scraping actors on Apify Store — high-performance data extraction. For custom solutions, email spinov001@gmail.com.

Top comments (0)