Skip to content

Oxc

Fast JavaScript and TypeScript tools (parser, linter, formatter, minifier) written in Rust.

Stars
23.3k
Forks
1.4k
Licence
MIT
Language
Rust
Last update
4 days ago
Type
Dev tool

What it is

Oxc is a collection of tools for working with JavaScript and TypeScript code, written in Rust. It includes a linter (Oxlint), a formatter (Oxfmt), and building blocks such as a parser, transformer, minifier, and module resolver. The README says it is designed for speed and is used by build tools such as Rolldown, the bundler behind Vite.

  • Lint a JavaScript or TypeScript codebase with Oxlint using npx oxlint@latest
  • Format a codebase with Oxfmt using npx oxfmt@latest
  • Parse JavaScript and TypeScript for use in your own tooling
  • Minify JavaScript for production builds using the Minifier component

Great for

  • Developers who want to lint a JavaScript or TypeScript project quickly
  • Teams building their own JavaScript build tooling who need a parser or resolver
  • Projects already using or considering Vite or Rolldown

Not ideal for

  • People who need a fully documented, stable plugin ecosystem, since the README does not describe one
  • Non-developers, since the tools run on code and require a command line
  • Teams that need features the README does not mention, because the README is short on feature details
Step-by-step guide: how to use OxcInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Install with a package manager

    Lint a codebase with Oxlint

    npx oxlint@latest

    Format a codebase with Oxfmt

    npx oxfmt@latest
  2. 2

    Run it

    • Open a terminal in your JavaScript or TypeScript project folder
    • Run npx oxlint@latest to lint the code
    • Run npx oxfmt@latest to format the code
    • Check the Oxc documentation at oxc.rs for configuration options
  3. 3

    Get the most out of it

    • Read the linter usage guide at oxc.rs/docs/guide/usage/linter to tune rules
    • Use the online Playground at playground.oxc.rs to test parsing and transforms before adding them to a project
    • Check the Troubleshooting and Benchmarks pages on oxc.rs when you hit problems or want performance context
    • Use the Resolver component if you need module resolution in your own tooling

Downloads

Strengths

  • Written in Rust, and the README positions it around high performance
  • Covers several steps of the JavaScript toolchain (lint, format, parse, transform, minify, resolve) under one project
  • Released under the permissive MIT license

Trade-offs

  • The README is truncated and gives few details on features, configuration, or compatibility
  • Built on top of a fast-moving toolchain, so APIs and behavior may change between releases
  • Benchmarks and performance claims are linked to external docs rather than shown in the README

How it compares

ProjectStarsTypeLevelUpdatedBest for
oxc (this)23.3kDev toolbeginner4 days agoDevelopers who want to lint a JavaScript or TypeScript project quickly
eslint27.6kDev toolintermediate4 days agoJavaScript developers who want automatic checks on their code
prettier52.4kDev toolbeginner4 days agoTeams that want one shared code style without writing their own rules
esbuild40.1kDev toolintermediate3 months agoDevelopers who want fast builds for JavaScript, TypeScript, or CSS projects
webpack66kDev toolintermediate4 days agoFrontend developers building single-page or multi-page web apps
babel44.1kDev toolintermediate4 days agoWeb developers who want to use recent JavaScript syntax while still supporting older browsers

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.