oxc README

The project's README from github.com/oxc-project/oxc. As one markdown file: README.md.



Oxc logo


MIT licensed Build Status Code Coverage CodSpeed Badge

Discord chat Playground Website

⚓ Oxc

/oʊ ɛks siː/

The Oxidation Compiler is a collection of high-performance tools for JavaScript and TypeScript written in Rust.

Oxc is part of VoidZero's vision for a unified, high-performance toolchain for JavaScript. It powers Rolldown (Vite's bundler) and enables the next generation of ultra-fast development tools that work seamlessly together.

For more information, check out our website at oxc.rs.

* Oxidation is the chemical process that creates rust

🙋 Who's using Oxc?

Rolldown and Nuxt use Oxc for parsing. Rolldown also uses Oxc for transformation and minification. Nova, swc-node, and knip use oxc_resolver for module resolution. Preact, Shopify, ByteDance, and Shopee use oxlint for linting.

See more projects using Oxc →

🔧 Lint or Format a Codebase

🧰 Build Tooling on Top of Oxc

✍️ Contribute

Check out some of the good first issues or ask us on Discord.

See CONTRIBUTING.md for guidance, or read the complete contributing guide on our website →

If you are unable to contribute by code, you can still participate by:

📚 Other Resources

Sponsored By

Our sponsors

📖 License

Oxc is free and open-source software licensed under the MIT License.

Thank you to namespace.so for powering our CI/CD pipelines with fast, free macOS and Linux runners.

Oxc ports or copies code from other open source projects, their licenses are listed in Third-party library licenses.

oxc (oxc-project/oxc)

Searching Database…

23.1K ·GitHub
这是什么?Oxc(Oxidation Compiler)是一套用 Rust 编写的高性能 JavaScript 和 TypeScript 工具集合,包含解析器、代码检查工具(linter)、格式化工具、转换器、压缩器和模块解析器。
它是一个单独的工具,还是一整套工具箱?是一整套工具箱。日常使用主要靠 Oxlint 做代码检查、Oxfmt 做代码格式化,另外还有一些更底层的组件——解析器、转换器、压缩器和解析器——许多其他构建工具都是在它们之上开发的。
我怎么在自己的项目里运行它?不需要安装:用 npx oxlint@latest 检查代码,用 npx oxfmt@latest 格式化代码,两者都直接通过 npm 运行。
我需要装 Rust 工具链才能用吗?不需要。这些工具以预编译好的 npm 包发布,你这边既不用装 Rust 工具链,也不用做任何本地编译。
现在有哪些公司在用它?Preact、Shopify、字节跳动和 Shopee 都在用 oxlint 做代码检查;Rolldown 和 Nuxt 用它来解析代码,knip 则使用它的模块解析器。
Oxc 和 Vite 有什么关系?它是 Rolldown(也就是 Vite 的打包器)背后的引擎,也是 VoidZero 设想中统一的 JavaScript 高性能工具链的一部分。
它为什么叫 Oxc?它是 Oxidation Compiler(氧化编译器)的缩写——氧化正是生成铁锈的化学过程,这是对 Rust(铁锈)语言的一个双关。
比起现有的 JS 工具,它到底快多少?README 只说性能很高,但没有公布任何具体数字;项目资源里链接了一个基准测试页面,可以去那里查看。
不安装任何东西能先试用一下吗?可以——README 里链接了一个在线 playground,项目官网和文档在 oxc.rs。
What are similar projects?closure-compiler, biome, swc, rspack, tools, esbuild, babel, parcel
Size
204.3 MB
Stars
23.1K
Age
3y
Commits · 90 Days