Oxc: High-Performance JavaScript Tools Written in Rust

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Oxc: High-Performance JavaScript Tools Written in Rust

Summary

Oxc is a high-performance collection of JavaScript and TypeScript tools built in Rust, designed to be a unified and ultra-fast toolchain. It powers projects like Rolldown, Vite's future bundler, and offers modular components for linting, formatting, parsing, transforming, and minifying code, emphasizing performance and correctness.

Repository Information

Analyzed by OSRepos on October 28, 2025

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

Oxc is a high-performance collection of JavaScript and TypeScript tools written in Rust, designed to be a unified and ultra-fast toolchain. As part of VoidZero's vision, Oxc powers critical projects like Rolldown, Vite's future bundler, enabling the next generation of development tools that work seamlessly together.

The project emphasizes several core design principles:

  • Performance: Achieved through rigorous engineering.
  • Correctness: Ensured by conformance testing to standards.
  • Developer Experience: Provided through clear APIs, comprehensive documentation, and sensible configuration.
  • Modular Composability: Allowing individual components to be used independently or composed into complete toolchains.

Oxc offers a suite of tools including a linter, formatter, parser, transformer, minifier, and resolver, all built for speed and reliability.

Installation

Oxc provides various tools available as npm packages for Node.js environments and individual crates for Rust projects.

Linter (oxlint)

npx oxlint@latest

Formatter (oxfmt)

npx oxfmt@latest

Parser (oxc-parser)

Install the fastest JavaScript/TypeScript parser for Node.js:

npm install oxc-parser

Transformer (oxc-transform)

For TypeScript, React, and modern JavaScript transformation:

npm install oxc-transform

Minifier (oxc-minify)

Integrate the high-performance JavaScript minifier:

npm install oxc-minify

Rust Crates

For building your own JavaScript tools in Rust, individual crates are available:

[dependencies]
oxc = "0.x"

Examples

Here are quick examples demonstrating the usage of Oxc's core tools.

Linter Example

Linting a project is as simple as running:

npx oxlint@latest

Oxlint can process thousands of files in under a second, as demonstrated in the vscode repository.

Parser Example (Node.js)

Parse JavaScript code and get the Abstract Syntax Tree (AST):

import { parseSync } from 'oxc-parser';
const result = parseSync('const x = 1;');
console.log(result);

Transformer Example (Node.js)

Transform TypeScript or React code:

import { transform } from 'oxc-transform';
const code = 'const Component = () => <div />;';
const result = transform('source.tsx', code, { typescript: true, react: true });
console.log(result.code);

Minifier Example (Node.js)

Minify JavaScript code with optional mangling:

import { minify } from 'oxc-minify';
const code = 'function longFunctionName() { console.log("hello"); }';
const result = minify(code, { mangle: true });
console.log(result.code); // Expected: function a(){console.log("hello")}

Why Use Oxc?

Oxc stands out due to its commitment to performance, correctness, and developer experience. Written in Rust, it leverages the language's speed and safety features to deliver unparalleled execution times for common JavaScript development tasks. Its modular design allows developers to pick and choose the tools they need, integrating them seamlessly into existing workflows or building entirely new toolchains.

Major projects and companies are already adopting Oxc, including:

  • Rolldown (Vite's future bundler) for parsing, transformation, and minification.
  • Nuxt for parsing.
  • Preact, Shopify, ByteDance, and Shopee for linting with oxlint.
  • Nova, swc-node, and knip for module resolution using oxc_resolver.

By choosing Oxc, you're investing in a future-proof, high-performance toolchain that is actively developed and supported by a growing community and industry leaders.

Links

Related repositories

Similar repositories that may be relevant next.

OpenLogi: A Native, Local-First Logitech Options+ Alternative in Rust

OpenLogi: A Native, Local-First Logitech Options+ Alternative in Rust

June 1, 2026

OpenLogi is a native, local-first alternative to Logitech Options+, built with Rust. It allows users to remap mouse buttons, control DPI, and manage SmartShift functionality over HID++ without requiring an account or collecting telemetry. This project prioritizes privacy and local control for Logitech mouse users.

RustLogitechMouse Remapping
RustTraining: Comprehensive Learning Paths for Rust Programmers

RustTraining: Comprehensive Learning Paths for Rust Programmers

May 29, 2026

Microsoft's RustTraining repository offers a comprehensive collection of learning materials designed for Rust programmers of all levels. It provides seven structured training courses, covering topics from foundational concepts for various programming backgrounds to deep dives into async Rust, advanced patterns, and engineering practices. This resource aims to consolidate scattered knowledge into a cohesive and pedagogically sound learning experience.

RustProgrammingTraining
OpenHuman: Your Private, Powerful AI Super Intelligence

OpenHuman: Your Private, Powerful AI Super Intelligence

May 27, 2026

OpenHuman is an open-source, agent-based personal AI assistant built with Rust, designed for privacy, simplicity, and power. It integrates seamlessly into your daily workflow, offering local knowledge management, extensive third-party integrations, and advanced memory capabilities. This project aims to provide a personal AI that truly understands and remembers your context from day one.

RustAIPersonal AI
Tokio: An Asynchronous Runtime for Reliable Rust Applications

Tokio: An Asynchronous Runtime for Reliable Rust Applications

April 27, 2026

Tokio is a powerful asynchronous runtime for the Rust programming language, enabling developers to build fast, reliable, and scalable applications. It provides essential components like I/O, networking, scheduling, and timers, making it ideal for high-performance concurrent systems.

Rustasynchronousnetworking

Source repository

Open the original repository on GitHub.

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️