Repolode
oxc-project

oxc-project/oxc

A collection of high-performance JavaScript and TypeScript tools written in Rust, including a parser, linter, formatter, transformer, minifier and resolver.

Open-source alternative to:ESLintPrettierBabel

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. 1

    Lint a codebase with Oxlint

    npx oxlint@latest
  2. 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