Oxc — The JavaScript Oxidation Compiler Written in Rust
Oxc is a Rust-based collection of JavaScript tools — parser, linter, resolver, transformer, and minifier — designed to be the fastest in each category. It underpins next-generation web tools like Rolldown and provides drop-in replacements for ESLint, Babel, and terser.
What it is
Oxc (JavaScript Oxidation Compiler) is a Rust-based collection of JavaScript and TypeScript tools. It includes a parser, linter (oxlint), resolver, transformer, and minifier, each designed to be the fastest in its category. Oxc powers next-generation tools like Rolldown (the Vite bundler) and provides drop-in replacements for ESLint, Babel, and terser.
Oxc targets JavaScript and TypeScript developers who want faster tooling without changing their workflow. It also targets tool authors who need a fast, correct AST parser as a foundation.
How it saves time or tokens
ESLint, Babel, and terser are JavaScript-based tools that parse and transform ASTs in a single-threaded runtime. Oxc reimplements these in Rust with parallel execution, achieving 10-100x speedups. Running oxlint on a large codebase takes seconds instead of minutes. This directly reduces CI time and developer feedback loops.
How to use
- Install the linter:
npm install -g oxlint. - Run on your codebase:
oxlint srcfor ESLint-compatible linting. - Use Oxc as part of Rolldown or integrate the parser via the oxc npm packages for custom tooling.
Example
# Install and run the linter
npm install -g oxlint
oxlint src
# Lint with specific rule categories
oxlint --deny-warnings src
# Use as a project dev dependency
npm install -D oxlint
npx oxlint src
// package.json script integration
{
"scripts": {
"lint": "oxlint src",
"lint:fix": "oxlint --fix src"
}
}
Related on TokRepo
- Coding Tools -- JavaScript/TypeScript developer tools
- Automation Tools -- Build and linting tools
Common pitfalls
- Expecting full ESLint plugin compatibility. oxlint implements the most popular ESLint rules natively but does not support custom ESLint plugins written in JavaScript.
- Running oxlint alongside ESLint without disabling overlapping rules. This produces duplicate warnings and slows down the lint step.
- Assuming Oxc's transformer covers all Babel plugins. Oxc focuses on the most common transformations (JSX, TypeScript, decorators) but niche Babel plugins may not have equivalents yet.
Frequently Asked Questions
Rolldown uses Oxc as its parsing and transformation engine. When Rolldown parses JavaScript or TypeScript files, it uses Oxc's parser. When it minifies output, it uses Oxc's minifier. Oxc is the foundation layer; Rolldown is the bundler built on top.
oxlint can replace ESLint for projects that use built-in ESLint rules and popular plugins (import, react, typescript-eslint). It does not support custom JavaScript-based ESLint plugins. Many teams run oxlint for speed and keep ESLint for custom rules.
Benchmarks show oxlint running 50-100x faster than ESLint on the same codebase. A project that takes ESLint 30 seconds to lint completes in under a second with oxlint. The speed comes from Rust's compiled performance and parallel file processing.
Yes. Oxc provides npm packages (oxc-parser, oxc-transform) that expose the Rust-powered parser via NAPI bindings. You get a standards-compliant AST in JavaScript/TypeScript with parsing speeds that exceed all JS-based parsers.
Oxc is maintained by the Void(0) team (formerly oxc-project). It is open source under the MIT license. The project has active development with regular releases and growing adoption through Rolldown and the broader Vite ecosystem.
Citations (3)
- Oxc GitHub— Oxc is a Rust-based JavaScript toolchain with parser, linter, and minifier
- Oxc Documentation— oxlint achieves 50-100x speedup over ESLint
- Rolldown GitHub— Powers Rolldown bundler as the parsing and transformation engine
Related on TokRepo
Discussion
Related Assets
HumHub — Open-Source Enterprise Social Network
A flexible, open-source social networking platform built on Yii2 for creating private communities, intranets, and collaboration spaces within organizations.
Dolibarr — Open-Source ERP & CRM for Business Management
A modular open-source ERP and CRM application written in PHP for managing contacts, invoices, orders, inventory, accounting, and more from a single web interface.
PrestaShop — Open-Source PHP E-Commerce Platform
A widely adopted open-source e-commerce platform written in PHP with a rich module marketplace, multi-language support, and a strong European user base.