The JavaScript Oxidation Compiler: high-performance JavaScript and TypeScript tools in Rust
open sourceMITself-hostablefree
Oxc (the JavaScript Oxidation Compiler) is a collection of fast JavaScript and TypeScript tools written in Rust. Oxlint is an ESLint-compatible linter, which the project says is 50 to 100 times faster than ESLint, with 800+ rules, type-aware linting powered by tsgo and support for ESLint JavaScript plugins. Oxfmt (beta) is a Prettier-compatible formatter with Tailwind class sorting. For people building tools there's a parser for JS, JSX, TS and TSX that passes all Test262 stage 4 tests, a transformer for TypeScript, JSX, syntax lowering, isolated declarations and React Fast Refresh, a Node.js-compatible module resolver and a minifier (alpha). Oxc powers Rolldown, Vite's bundler, and Nuxt uses it for parsing. It's MIT licensed and developed by VoidZero and contributors.
Problems it solves
- ESLint is too slow on our large codebase
- a much faster linter for JavaScript and TypeScript that keeps ESLint rules
- a faster Prettier-compatible code formatter
- lint TypeScript with type-aware rules without waiting minutes
- a fast JavaScript and TypeScript parser in Rust for building tools
- transpile TypeScript and JSX faster than Babel or SWC
- Node.js-compatible module resolution for a bundler, faster than enhanced-resolve
- speed up linting in CI
Features
- Oxlint: ESLint-compatible linter with 800+ rules
- type-aware linting powered by tsgo
- ESLint JavaScript plugin support
- Oxfmt: Prettier-compatible formatter (beta) with Tailwind class sorting
- parser for .js(x) and .ts(x) passing all Test262 stage 4 tests
- transformer: TypeScript, JSX, syntax lowering to ES2015, isolated declarations DTS emit, React Fast Refresh
- Node.js-compatible CJS and ESM resolver aligned with enhanced-resolve
- minifier (alpha): dead code elimination and name mangling
- online playground
- llms.txt documentation
Limitations
- The formatter is in beta and the minifier in alpha1
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Oxc does.
- ESLint Find and fix problems in your JavaScript code.
- Biome One fast toolchain that formats and lints JavaScript, TypeScript, JSON, CSS, HTML, GraphQL, YAML and Markdown.
- SWC Rust-based platform for the Web: a super-fast TypeScript and JavaScript compiler
- Prettier An opinionated code formatter that reprints your code in one consistent style
- Babel Babel is a JavaScript compiler. Use next generation JavaScript, today.
- Herb A modern templating language for the HTML+ERB you already have.