# bun fmt: 6.4 out of 10

Reasonable, with limits. 10th of 13 in [Linters and formatters](https://elestia.ai/opensource/linters-formatters/index.md).

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.

## Scores

- **Overall: 6.4** (likely 5.1 to 7.8)
  - Claude Opus 5.5 (6.0): 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): 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 many: 6.6** (likely 5.6 to 7.7)
  - Claude Opus 5.5 (6.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): 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 lot: 7.2** (likely 5.9 to 8.3)
  - Claude Opus 5.5 (7.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): 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 time: 7.0** (likely 5.6 to 8.3)
  - Claude Opus 5.5 (6.5): 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): 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 widely: 3.2** (likely 1.6 to 4.9)
  - Claude Opus 5.5 (3.0): 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.
  - GPT-6.2 Sol (3.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.
- **Vouched for: 3.6** (likely 2.4 to 5.4)
  - Claude Opus 5.5 (3.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): 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.
- **Safe: 7.0** (likely 5.9 to 8.4)
  - Claude Opus 5.5 (7.0): 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.
  - GPT-6.2 Sol (7.0): 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

- Downloads, 4 weeks: 24M
- In a year: ×11
- GitHub stars: 97k
- Commits, 12 months: 4.7k
- Last npm release: Nov 2026
- Advisories, 24 months: 2
- Licence: MIT
- GitHub: https://github.com/oven-sh/bun
- npm: https://www.npmjs.com/package/bun

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

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
