165 releases (breaking)

Uses new Rust 2024

new 0.110.0 Jan 19, 2026
0.108.0 Jan 12, 2026
0.106.0 Dec 29, 2025
0.99.0 Nov 24, 2025
0.1.0 Jul 27, 2023

#1518 in Programming languages

Download history 6347/week @ 2025-09-29 6738/week @ 2025-10-06 10732/week @ 2025-10-13 13973/week @ 2025-10-20 10523/week @ 2025-10-27 9265/week @ 2025-11-03 10187/week @ 2025-11-10 9157/week @ 2025-11-17 6418/week @ 2025-11-24 8368/week @ 2025-12-01 8412/week @ 2025-12-08 9860/week @ 2025-12-15 4634/week @ 2025-12-22 5390/week @ 2025-12-29 11305/week @ 2026-01-05 13009/week @ 2026-01-12

35,048 downloads per month
Used in 117 crates (9 directly)

MIT license

6.5MB
132K SLoC

Oxc Minifier

Next-generation JavaScript/TypeScript minifier achieving best-in-class compression.

Inspiration

  • Closure Compiler: Advanced size optimizations
  • Terser/UglifyJS: Comprehensive battle-tested transforms
  • esbuild: Efficient algorithms and architecture
  • SWC: Modern Rust performance

Key Features

  • Maximum compression through exhaustive optimizations
  • 100% correctness with comprehensive testing
  • Fixed-point iteration for optimal size
  • Arena allocation for performance

Current Performance

See tasks/minsize for compression benchmarks.

  • Matching/beating esbuild on many libraries
  • Full test262, Babel, TypeScript conformance

Usage

use oxc_minifier::{Minifier, MinifierOptions};

let options = MinifierOptions::default();
let minifier = Minifier::new(options);
let result = minifier.minify(&mut program);

Testing Infrastructure

  • just minsize - Track compression benchmarks
  • cargo coverage - Conformance tests (test262, Babel, TypeScript)
  • tasks/e2e - Real-world E2E testing

Development

  • just test - Run all tests
  • cargo run -p oxc_minifier --example minifier - Try the minifier

Key Dependencies

Documentation

Dependencies

~9.5MB
~166K SLoC