A super-fast TypeScript/JavaScript compiler and parser written in Rust, usable from Rust and from JavaScript.
- Stars
- 23,168
- Forks
- 1,393
- Open issues
- 1,052
- Last commit
- 2 hours ago
What is it?
Oxc, short for Oxidation Compiler, is a set of JavaScript and TypeScript tools written in Rust. It covers the common stages of a JavaScript toolchain: parsing source code, linting and formatting it, transforming TypeScript and JSX into modern JavaScript, minifying output for production, and resolving module paths.
The project is part of VoidZero's effort to build a unified toolchain for JavaScript. Rolldown, the bundler used by Vite, uses Oxc for parsing, transformation and minification, and Nuxt uses it for parsing. Oxlint, the linter, and Oxfmt, the formatter, can be run directly with npx.
Each tool is also available as a building block, so projects can use only the parser, transformer, minifier or resolver they need.
Key features
- 01Parses JavaScript and TypeScript source code.
- 02Lints code with Oxlint and formats it with Oxfmt.
- 03Transforms TypeScript, JSX and modern JavaScript.
- 04Minifies JavaScript for production builds.
- 05Resolves modules for JavaScript and TypeScript.
Use cases
- Linting a JavaScript or TypeScript codebase quickly in CI.
- Formatting a project's code with a Rust-based formatter.
- Building a custom bundler or build tool on top of a fast parser and transformer.
- Resolving modules in a custom TypeScript tooling pipeline.
Quick start
- 1
Lint a codebase with Oxlint
npx oxlint@latest - 2
Format a codebase with Oxfmt
npx oxfmt@latest
Things to know
- The README does not describe a build-from-source or library install path, so the quick start covers only the lint and format tools.
Topics
FAQ
- What is oxc?
- A collection of high-performance JavaScript and TypeScript tools written in Rust, including a parser, linter, formatter, transformer, minifier and resolver. Oxc, short for Oxidation Compiler, is a set of JavaScript and TypeScript tools written in Rust. It covers the common stages of a JavaScript toolchain: parsing source code, linting and formatting it, transforming TypeScript and JSX into modern JavaScript, minifying output for production, and resolving module paths.
- Is oxc free to use? What license does it have?
- oxc is open source under the MIT license. Check the license terms before using it in commercial products.
- Is oxc still maintained?
- Actively maintained. The last commit to oxc was on Oct 22, 2026.
- What can I use oxc for?
- Linting a JavaScript or TypeScript codebase quickly in CI. Formatting a project's code with a Rust-based formatter. Building a custom bundler or build tool on top of a fast parser and transformer. Resolving modules in a custom TypeScript tooling pipeline.
- How do I install oxc?
- Lint a codebase with Oxlint: npx oxlint@latest Format a codebase with Oxfmt: npx oxfmt@latest
- Where can I get oxc?
- The source code and installation instructions are on GitHub: https://github.com/oxc-project/oxc
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
An extremely fast JavaScript, TypeScript, JSX and CSS bundler with a CLI, JS and Go API.
A typed superset of JavaScript that adds optional static types and compiles to readable, standards-based JavaScript.
A JavaScript compiler that transforms next-generation JS syntax into code that runs in your target environments.
A zero-configuration build tool for the web that bundles HTML, CSS, JavaScript and assets without a config file.
A fast, low-level markdown parser and compiler for JavaScript that runs in browsers, Node.js, and the command line.