Elestia Open Source Ratings
6.4

bun fmt

Reasonable, with limits. 10th of 13 linters and formatters.

bun fmt is the Prettier-compatible formatter built into Bun since v1.4.4 (October 2026). It is very fast and reads your existing Prettier or oxfmt config. It is a good pick for teams that already run Bun. It is only about a month old, has known output gaps and plugin gaps, and needs the Bun runtime, so Prettier or Oxfmt is still the safer default for most projects.

Best for: Teams that already use Bun and want a much faster drop-in for Prettier without plugin-heavy configs.

WebsiteGitHubnpm

Scores

Overall6.4

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.0, likely 4.5 to 7.5

Its speed and Prettier compatibility are impressive, and for Bun users it is a near-free switch. It is about a month old, though, with open parity bugs and no plugins. It also requires the Bun runtime, while Prettier remains the trusted default and Oxfmt offers similar speed as a standalone tool. The score could rise quickly if it proves stable over the coming months.

GPT-6.2 Sol: 6.8, likely 5.6 to 8.0

Bun fmt is a reasonable first choice when a new project already installs Bun and wants fast formatting with standard settings. Prettier remains the better general default for plugins and editor support, and Oxfmt is a strong option for teams that want a fast formatter without adding Bun. The range reflects the formatter’s short stable history and limited evidence about how it behaves across upgrades.

Needed by many6.6

How many developers need a tool for this job?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Most JS and TS projects need a formatter. bun fmt serves best the projects that already use Bun as runtime or package manager. Others can install Bun as a dev tool, but that is a heavier dependency than a single-purpose formatter.

GPT-6.2 Sol: 7.2, likely 6.1 to 8.3

Formatting is a common need across JavaScript and TypeScript projects, and bun fmt covers most files in a typical web repository. It can format projects that deploy on Node.js, though contributors and CI still need Bun installed. Its appeal outside teams that already use Bun is less certain.

Helps a lot7.2

How well does it do the job for those who need it?

Claude Opus 5.5: 7.0, likely 5.5 to 8.0

It passes 99.1% of Prettier's tests, is far faster than Prettier and often faster than oxfmt, and covers many languages and built-in plugins. One adopter found 0 differences across 2,541 files. Bun's own test across real repositories, though, found output identical to Prettier in only 77% of projects. There is no plugin system yet, and several output-difference bugs are open. The range is wide because the tool is so new.

GPT-6.2 Sol: 7.4, likely 6.2 to 8.6

Bun 1.4.5 includes a well-documented formatter with a read-only check mode that is easy to invoke from CI or a coding agent. An independent test on two TypeScript repositories found faster checks and some output differences against the pinned Oxfmt version. Bun reported a 99.1% match across the Prettier fixtures it ran, with wider differences on whole repositories. Plugin gaps and a confirmed CSS rewrite bug leave uncertainty around less common inputs.

Holds up over time7.0

Will it still be a good choice in two years?

Claude Opus 5.5: 6.5, likely 5.0 to 8.0

Bun is very active, with 4,719 commits and 18 releases in the last year. Anthropic backs it, and the formatter is getting fixes fast. Against that, the formatter has no track record yet. Bun has thousands of open issues and pull requests, and its AI-assisted rewrite to Rust brought reported regressions. Formatter output may still shift as Bun chases Prettier parity.

GPT-6.2 Sol: 7.4, likely 6.1 to 8.6

Anthropic funds Bun, and the parent project shipped 18 releases in the past year. A formatter integration issue led to a documented script override within a day. The formatter first shipped in October 2026, so there is little stable release history to judge whether upgrades preserve formatting across projects.

Used widely3.2

How many use it, and is that growing?

Claude Opus 5.5: 3.0, likely 1.5 to 4.5

The downloads are for all of Bun, not the formatter. Bun itself is growing fast: about 10.8x year over year, against a median of 4.1. bun fmt has existed for about a month, and only a few repositories show adoption so far. It is far behind Prettier and Oxfmt today, although Bun's user base gives it a large potential audience.

  • npm downloadsLast4Weeks: 24M versus 2.2M a year ago, for all of Bun
  • hackerNews: One launch story with 1 point
  • github.com/philoserf/crbgc/issues/150: Early adopters replacing Prettier with bun fmt

GPT-6.2 Sol: 3.3, likely 1.6 to 5.3

Bun’s four-week npm downloads grew 10.8 times year over year, above the 4.1-times baseline. Those installs, the GitHub stars, dependent counts, and Bluesky posts cover the whole toolkit, so they give little indication of how many teams chose the formatter. Prettier has roughly 1.7 million indexed dependent repositories, while the direct evidence for bun fmt still consists of scattered early adopters. A formatter-specific growth rate is unmeasured.

  • npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: The whole Bun package rose from 2.23 million to 24.07 million downloads.
  • project.note, github.stars, dependents, bluesky: The repository signals cover Bun as a whole, and the leading posts concern the runtime.
  • peers.Prettier.dependentRepos: Prettier has about 1.7 million indexed dependent repositories.
  • github.com/stella/tooling: An external project documents using bun fmt in CI and Git hooks.
Vouched for3.6

Who stands behind it being good?

Claude Opus 5.5: 3.0, likely 2.0 to 5.0

Most quality claims come from Bun's own benchmarks. One independent dev.to replication and one documented adoption (docs.plus, 0 differences) support them. There is no survey data, no known large production user of the formatter, and no framework that builds on it yet.

GPT-6.2 Sol: 4.2, likely 2.7 to 5.8

Bunqueue records a switch from Oxfmt for its main repository and TypeScript SDK, and an independent two-repository benchmark supports the speed advantage in that setup. Ultracite’s proposed integration shows interest from tooling maintainers. Evidence of sustained use across larger teams and survey satisfaction is still sparse.

Safe7.0

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.5

The npm package has no dependencies and an MIT licence. A formatter only rewrites source files, and --debug-check verifies that the code's meaning did not change. The cost is that you depend on a whole runtime binary. That binary had two advisories in 24 months, one of them high severity, and both were fixed. There is no OpenSSF Scorecard data.

  • advisories: 2 advisories (1 high, 1 moderate) in 24 months
  • npm dependencies: 0 dependencies; MIT licence
  • scorecard: No Scorecard data

GPT-6.2 Sol: 7.0, likely 5.7 to 8.3

The MIT-licensed npm package lists zero regular dependencies and installs a platform binary that bundles native libraries. The high-severity command-injection advisory was withdrawn, and the older runtime prototype-pollution issue was patched in 1.1.30. Recent runtime advisories were patched in 1.4.4 and 1.4.5. The release workflow signs GitHub assets and disables npm provenance, while the number of authorized publishers and an OpenSSF Scorecard result remain unverified.

Good

  • It reads .prettierrc, .editorconfig, .prettierignore and oxfmt configs, and passes 99.1% of Prettier 3's own formatting tests.
  • It is about 280x faster than Prettier on Prettier's own repository, and an independent writer reproduced that result.
  • Tailwind class sorting, package.json key sorting, Svelte support and import sorting are built in, plus --staged, --changed and --doctor modes.
  • It covers JS, TS, CSS, HTML, Vue, Svelte, JSON, YAML, TOML, Markdown, GraphQL and more in one binary with no npm dependencies.

Bad

  • It is about a month old, and open issues show real output differences from Prettier, such as union types, hex colors and Markdown whitespace.
  • It does not load Prettier plugins: unsupported plugins block the run or fall back to an installed Prettier, as with Astro and Pug.
  • It ships only inside the Bun runtime, so Node-only and non-JS teams have to install Bun to use it.
  • It targets one Prettier release (3.9.9), so projects pinned to another Prettier version can see large diffs.

The numbers

npm downloads, 4 weeks
24M ×11 in a year
GitHub stars
97k
Commits, 12 months
4.7k
npm version
1.4.5 Nov 2026
Versions, 12 months
18
Advisories, 24 months
2 of 2 ever
OpenSSF Scorecard
None
Licence
MIT

The formatter built into Bun. The repository, its stars and activity, and the downloads are of all of Bun, not of the formatter.

Read on 21 November 2026 from GitHub (oven-sh/bun), npm (bun), OSV and the OpenSSF Scorecard.

Linters and formatters

  1. 8.4Prettier
  2. 8.3ESLint
  3. 8.3Oxlint
  4. 8.2Stylelint
  5. 8.2typescript-eslint
  6. 8.0Biome
  7. 7.6Knip
  8. 7.5Oxfmt
  9. 6.5dprint
  10. 6.4bun fmt
  11. 5.7XO
  12. 5.4bun lint
  13. 3.2JavaScript Standard Style
Compare all 13 on six scores