Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

oxfmt

Fast JavaScript formatter from the Oxc compiler project.

Linting and formattingNPM

GitHubWebsite

1. License

License from npm.

github.com/oxc-project/oxc

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What oxfmt does

Oxfmt is the Oxc project's Rust formatter. Its maintainers say it passes 100% of Prettier's JavaScript and TypeScript conformance tests, and it builds in Tailwind class sorting, import sorting and package.json field sorting.

oxfmt popularity

80 / 100
Gid Score, #108 overall
33.1M
downloads a week, npm
23.6K
GitHub stars
168
agent projects use it
oxfmt: downloads per weeknpm, oxfmt 33,092,096
oxfmt: GitHub starsoxc-project/oxc 23,581

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How oxfmt is used

  • oxfmt is a dependency in 168 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.5% of the 4,867 JavaScript/TypeScript ones), #5 of 83 in linting and formatting.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 287; those are left out of every share on this page.
  • The most used alternative in our scan is Prettier (1,320 projects).
  • Projects that use it most often also use oxlint (92.9%), oxlint-tsgolint (44.6%), Vitest (56.5%).
  • It is more common in projects set up for OpenClaw (10.5%) than for Devin Desktop (1.8%).

By coding agent

142 projects, 4.3%
68 projects, 2.2%
58 projects, 2.4%
35 projects, 10.5%
29 projects, 6.2%
26 projects, 7.6%
26 projects, 5.5%
5 projects, 1.8%

Often used with

In 92.9% of its projects
In 44.6% of its projects
In 56.5% of its projects
In 90.5% of its projects
In 51.8% of its projects
In 38.7% of its projects
In 23.8% of its projects
In 23.8% of its projects

oxfmt in practice

Strengths

Passes Prettier's JS/TS conformance tests

The maintainers say Oxfmt passes 100% of Prettier's JavaScript and TypeScript conformance tests. They write that you can migrate "with confidence that your code will be formatted identically." They report the few remaining inconsistencies to the Prettier team.

Covers far more than JS and TS

The beta lists JSON variants, YAML, TOML, HTML, Vue, Angular, CSS, SCSS, Less, Markdown, MDX, GraphQL, Ember and Handlebars. It also formats CSS-in-JS and Angular templates embedded in template literals.

Tailwind class sorting is built in

The beta post says the functionality of <code>prettier-plugin-tailwindcss</code> is built in, for both JS/TS and other files. Import sorting is built in too, with options such as <code>ignoreCase</code>, <code>sortSideEffects</code> and <code>newlinesBetween</code>.

Config migration from Prettier or Biome

<code>oxfmt --migrate prettier</code> and <code>oxfmt --migrate biome</code> convert an existing config. The blog chains install, migrate and reformat into one command.

Watch out for

Still beta

The project announced Oxfmt as beta, and the website still labels it that way. The roadmap to a stable release lists stability and performance work.

Prettier plugins were on the roadmap

As of the beta announcement, Prettier plugin support was listed as roadmap work toward stable, along with better xxx-in-js formatting. Check its current status if you rely on a Prettier plugin.

Some plugin behavior is lost

Ching writes that Oxfmt replaces Prettier's native rules but that some plugins need trade-offs. In Ching's case, that meant dropping Pangu spacing formatting for Markdown for now.

Migrate from Prettier in one command

pnpm add -D oxfmt && pnpm oxfmt --migrate prettier && pnpm oxfmt

More about oxfmt

Funding
  • Open Collective: https://opencollective.com/oxc
  • GitHub Sponsors: https://github.com/sponsors/oxc-project
  • 5 GitHub sponsors

See all

Packages around it
  • oxlint: Oxc's linter, same project
  • oxlint-tsgolint: Type-aware lint add-on for Oxlint
  • vitest: Test runner
  • typescript: Type checker and compiler
  • zod: Schema validation
  • dotenv: Env file loader
More in Linting and formatting

Alternatives

oxfmt This page

MITGid 8033.1M/wk

Prettier

Opinionated code formatter for JavaScript, TypeScript, and related languages.

MITGid 90197M/wk

Biome

Fast web toolchain providing linting, formatting and code quality all in one.

MIT OR Apache-2.0Gid 8230.3M/wk

Compare oxfmt with another tool

Get started

Install it.

npm install oxfmt

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## oxfmt
- Install as a dev dependency (`pnpm add -D oxfmt`). Add `"fmt": "oxfmt"` and `"fmt:check": "oxfmt --check"` scripts.
- In CI, run `oxfmt --check`, not the write mode.
- In lint-staged, use `oxfmt --no-error-on-unmatched-pattern`.
- When replacing Prettier or Biome, run `oxfmt --migrate prettier` or `oxfmt --migrate biome` first. Then reformat with `oxfmt` and uninstall the old packages.
- Do not add `prettier-plugin-tailwindcss`: Tailwind class sorting is built in.
- For a typed config, use `oxfmt.config.ts` with `defineConfig` from `oxfmt`. `oxfmt .` discovers it automatically, so no config path flag is needed.
- After migrating, update CONTRIBUTING.md, AGENTS.md or CLAUDE.md if they still mention prettier.