Oxidation Compiler

#OpenSource

Product information

The Oxidation Compiler (Oxc) is a high-performance suite of JavaScript and TypeScript tools, entirely crafted in Rust. It encompasses a variety of essential utilities such as a parser, linter, formatter, transformer, minifier, and resolver. The tools are designed to maximize speed and efficiency, leveraging Rust's capabilities to outperform traditional JavaScript tools.

The Oxc parser is noted for its exceptional speed, outperforming competitors like swc and Biome by significant margins. It uses a memory-efficient allocation strategy and avoids unnecessary heap allocations, contributing to its rapid performance. The parser also introduces a more precise Abstract Syntax Tree (AST) structure, reducing ambiguity compared to the commonly used estree specification.

The Oxc linter is another standout component, offering a ready-to-use solution with 93 default rules. It is designed for speed, being 50 to 100 times faster than ESLint, and operates efficiently in multi-threaded environments. This tool is lightweight, with a binary size of approximately 5MB, and can be run without Node.js in CI environments.

The resolver, oxc_resolver, addresses the performance challenges of module resolution, a critical aspect of JavaScript tooling. It is production-ready and used in projects like Rolldown.

Oxc also includes a transformer for converting higher ECMAScript versions to lower ones, and an isolated declarations tool for TypeScript, which is significantly faster than the TypeScript compiler.

The minifier in development aims to balance compression quality and speed, potentially outperforming existing solutions like google-closure-compiler and terser.

Lastly, Oxc is working on a new JavaScript formatter to provide a more flexible alternative to Prettier, catering to the demand for less opinionated formatting options.

Overall, Oxc represents a robust, high-performance toolkit for JavaScript and TypeScript development, with a strong emphasis on speed, efficiency, and precision.

Pricing

Pricing information is not available