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.
Instalación lista para agent
Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.
npx -y tokrepo@latest install dc46ca98-37be-11f1-9bc6-00163e2b0d79 --target codexEjecutar después de confirmar el plan con dry-run.
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.
Preguntas frecuentes
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.
Referencias (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
Relacionados en TokRepo
Discusión
Activos relacionados
Turbopack — Rust-Powered Incremental Bundler for JavaScript and TypeScript
Turbopack is a Rust-based incremental bundler for JavaScript and TypeScript projects, designed as the successor to Webpack. It is integrated into Next.js for development builds.
Backbone.js — Lightweight MVC Framework for JavaScript Applications
A minimal JavaScript framework that provides models with key-value binding, collections, views with declarative event handling, and RESTful JSON sync — giving structure to web applications.
Handsontable — JavaScript Data Grid with Spreadsheet UX
A feature-rich JavaScript data grid component that brings spreadsheet-like editing, sorting, filtering, and formulas to web applications.
FullCalendar — Full-Sized JavaScript Event Calendar
An open-source JavaScript calendar component with drag-and-drop scheduling, multiple views, and framework integrations for React, Vue, and Angular.