Oxfmt
lastmod 2026-02-27created 2026-02-271 edits
A Rust-based code formatter more than 30x faster than Prettier and 3x faster than Biome
About
- Passes 100% of Prettier's JS/TS tests, guaranteeing identical formatting output
- Already adopted by several open-source projects, including OpenClaw, VueJS, Huggingface, and npmx
- Supported file formats: JavaScript, JSX, TypeScript, TSX, JSON, JSONC, JSON5, YAML, TOML, HTML, Angular, Vue, CSS, SCSS, Less, Markdown, MDX, GraphQL, Ember, Handlebars
- Built-in automatic Tailwind CSS class sorting in both JS/TS and non-JS/TS files, with no separate plugin needed
- Extended features such as import sorting and embedded language formatting, plus a Node.js API
- Supports VS Code, Cursor, Zed, IntelliJ IDEA, Neovim, and editors with LSP support in general
- Roadmap: Prettier plugin support, improved xxx-in-js formatting, better stability, further performance optimization