Oxfmt is a code formatter that rewrites source files into a consistent layout. It covers JavaScript, TypeScript, JSX, JSON, YAML, TOML, HTML, CSS, Markdown and several templating formats. It is aimed at teams with large codebases and CI pipelines that need formatting runs to finish quickly.
It is built on the Oxc compiler stack and is meant to slot into existing Prettier-based setups, with a command line interface that behaves much like Prettier by default. Import sorting, Tailwind CSS class sorting and package.json field sorting are included without extra plugins. The source code is published under the MIT license, and the project runs on Windows.
Alternatives to oxfmt
Products that do a similar job in Developer Tools.
WebStorm
JavaScript and TypeScript IDE for web development on macOS
xterm.js
Terminal emulator component for web pages written in TypeScript
Theia
Open-source framework for building browser and desktop IDEs
Front-End-Checklist
Web development checklist for humans and AI agents
zx
JavaScript wrapper for writing shell scripts
IT Tools
Browser-based utilities for everyday developer tasks
Reactide
Desktop IDE for building React web applications
Nx
Build system and task runner for JavaScript monorepos