# web-infra-dev/oxc

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/web-infra-dev-oxc).**

21,721 stars · 1,089 forks · Rust · MIT

## Links

- GitHub: https://github.com/web-infra-dev/oxc
- Homepage: https://oxc.rs
- awesome-repositories: https://awesome-repositories.com/repository/web-infra-dev-oxc.md

## Description

oxc is a high-performance JavaScript toolchain developed in Rust for parsing, transforming, and analyzing JavaScript and TypeScript source code. It provides a set of core utilities including a parser that converts code into an abstract syntax tree, a linter for identifying problematic patterns, a formatter for standardizing visual style, and a minifier for reducing production file sizes.

The project focuses on high-performance execution through a system design that utilizes single-pass parsing, zero-copy string slicing, and parallel worker processing to handle large codebases. It further optimizes efficiency using a biphasic syntax transformation model and lazy-loading module resolution.

The toolchain covers broad code analysis and transformation capabilities, including module path resolution and the ability to modify source code for different environments.

## Tags

### Testing & Quality Assurance

- [JavaScript and TypeScript Toolchains](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/code-quality-tools/formatting-and-linting-pipelines/javascript-and-typescript-toolchains.md) — Provides a high-performance integrated toolchain for parsing, linting, and minifying JavaScript and TypeScript codebases.
- [JavaScript and TypeScript Formatting](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/code-quality-tools/formatting-and-linting-pipelines/javascript-and-typescript-toolchains/javascript-and-typescript-formatting.md) — Provides dedicated styling and layout enforcement for JavaScript and TypeScript source code.

### Part of an Awesome List

- [JavaScript Minifiers](https://awesome-repositories.com/f/awesome-lists/devtools/javascript-minifiers.md) — Ships a tool to reduce JavaScript file size for production through whitespace and identifier optimization.
- [Code Analysis Platforms](https://awesome-repositories.com/f/awesome-lists/devtools/code-analysis-platforms.md) — High-performance toolchain for JavaScript and TypeScript analysis.
- [Developer Tools](https://awesome-repositories.com/f/awesome-lists/devtools/developer-tools.md) — High-performance suite of tools written in Rust.

### Development Tools & Productivity

- [Code Formatting Tools](https://awesome-repositories.com/f/development-tools-productivity/code-quality-analysis/static-analysis-engines/static-analysis-tools/code-formatting-tools.md) — Ships a formatter to standardize visual style and ensure consistent formatting across JavaScript and TypeScript codebases. ([source](https://github.com/web-infra-dev/oxc#readme))
- [JavaScript Formatters](https://awesome-repositories.com/f/development-tools-productivity/javascript-formatters.md) — Implements a utility that standardizes the visual style and indentation of JavaScript and TypeScript source code.
- [Static Code Linting](https://awesome-repositories.com/f/development-tools-productivity/static-code-linting.md) — Includes a static analysis tool for identifying problematic patterns and enforcing coding standards. ([source](https://github.com/web-infra-dev/oxc#readme))

### Programming Languages & Runtimes

- [Single-Pass Parsing](https://awesome-repositories.com/f/programming-languages-runtimes/bytecode-compilation/single-pass-compilation/single-pass-parsing.md) — Uses a single-pass parsing strategy to build abstract syntax trees with minimal memory overhead.
- [JavaScript Linters](https://awesome-repositories.com/f/programming-languages-runtimes/javascript-linters.md) — Provides a static analysis tool that identifies problematic patterns and enforces coding standards.
- [Rust-Based Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/rust-based-compilers.md) — Cores are implemented in Rust to ensure high-performance execution for parsing and transformation tasks.
- [JavaScript Source Parsers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/source-code-templates/source-code-transformation-engines/javascript-source-parsers.md) — Implements a fast compiler frontend that converts JavaScript and TypeScript code into an abstract syntax tree.
- [Source Code Lexical Analyzers](https://awesome-repositories.com/f/programming-languages-runtimes/string-parsing/lexical-string-parsing-analyzers/source-code-lexical-analyzers.md) — Converts raw JavaScript and TypeScript source code into abstract syntax trees for analysis and modification. ([source](https://github.com/web-infra-dev/oxc#readme))
- [Module Path Resolution](https://awesome-repositories.com/f/programming-languages-runtimes/module-path-resolution.md) — Provides an on-demand resolution mechanism for file paths and dependencies to avoid full project pre-scanning.
- [Source Code Transformation Engines](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/source-code-templates/source-code-transformation-engines.md) — Provides capabilities to modify source code and modern syntax into versions compatible with different target environments. ([source](https://github.com/web-infra-dev/oxc#readme))
- [Zero-Copy String Views](https://awesome-repositories.com/f/programming-languages-runtimes/zero-copy-string-views.md) — Utilizes zero-copy string slicing to reference original source text via offsets and lengths instead of new allocations.

### Software Engineering & Architecture

- [TypeScript and JavaScript Linting](https://awesome-repositories.com/f/software-engineering-architecture/coding-standards-enforcement/javascript-style-linting/typescript-and-javascript-linting.md) — Analyzes JavaScript and TypeScript source code to identify problematic patterns and enforce maintainability standards.
- [JavaScript Minification](https://awesome-repositories.com/f/software-engineering-architecture/performance-reliability/code-optimization/javascript-minification.md) — Reduces the size of JavaScript files for production by removing unnecessary characters and shortening identifiers.
- [Direct File-to-Module Resolution](https://awesome-repositories.com/f/software-engineering-architecture/software-architecture/architectural-patterns/plugin-module-systems/modular-plugin-architectures/plugin-based-architectures/plugin-based-architectures/module-resolution-delegators/direct-file-to-module-resolution.md) — Maps import statements directly to their physical locations on disk to resolve JavaScript dependencies.
- [Syntax Tree Transformers](https://awesome-repositories.com/f/software-engineering-architecture/trees/syntax-tree-construction/syntax-tree-transformers.md) — Implements a biphasic system that separates syntax tree analysis from code generation to optimize transformation speed.

### Data & Databases

- [Toolchain Parallelization](https://awesome-repositories.com/f/data-databases/parallel-processing/toolchain-parallelization.md) — Distributes linting and formatting tasks across multiple CPU cores to process large codebases concurrently.
