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.
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.
- bun.com/blog/bun-v1.4.4: Launch features and the vendor's own benchmarks
- peers Oxfmt downloadsLast4Weeks: Oxfmt has 116M downloads per 4 weeks, as a standalone tool
- github.com/oven-sh/bun/issues/48574: Open output-difference bugs on 1.4.4
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.
- bun.com/docs/format: Shows the built-in workflow and the limits of plugin compatibility.
- prettier.io/docs/plugins: Prettier exposes a plugin API and lists community plugins.
- prettier.io/docs/editors: Prettier documents integrations across common editors.
- oxc.rs/docs/guide/usage/formatter/migrate-from-prettier.html: Oxfmt provides a separate formatter and documents migration and compatibility limits.
- bun.com/blog/bun-v1.4.4: The formatter has been in a stable release for about one month.
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.
- github.com/oven-sh/bun/discussions/45180: User asks for a standalone CLI because it needs Bun
- bun.com/blog/bun-v1.4.4: Supports about 20 languages, beyond JS and TS
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.
- 2025.stateofjs.com/en-US/other-tools: Prettier was widely used among respondents, and Bun was the third most reported runtime.
- bun.com/docs/format: Documents broad file support and CI setup with Bun.
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.
- bun.com/blog/bun-v1.4.4: 99.1% of Prettier tests; 77% identical on real projects; 286x faster
- dev.to/alexgeorgiev17/bun-144s-bun-fmt-checks-prettiers-own-repository-about-280-times-faster-than-prettier-gjj: Independent rerun confirms about 283x faster; plugin caveats
- github.com/oven-sh/bun/issues/46551: Union-type layout differs from Prettier; 465 files rewritten
- github.com/oven-sh/bun/issues/49305: No custom plugin support
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.
- bun.com/docs/format: Documents check mode, exit codes, configuration, and plugin fallback.
- bun.com/blog/bun-v1.4.4: Reports fixture results, skipped cases, and comparisons on real repositories.
- reddit.com/r/webdev/comments/1xdbp3r/benchmarked_bun_fmt_144_against_oxfmt_on_two_1200: Reports faster checks and different arrow-function wrapping under a shared config.
- github.com/oven-sh/bun/issues/49042: Confirms a report of formatting dropping rules from malformed CSS.
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.
- github commitsLastYear: 4,719 commits; 18 releases last year
- github openPullRequests: 3,469 open PRs and 3,611 open issues
- infoq.com/news/2026/09/bun-ai-rewrite-zig-rust-4-months: Rust port took about four months and brought semantic regressions
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.
- github.releasesLastYear: Bun as a whole shipped 18 releases.
- anthropic.com/news/anthropic-acquires-bun-as-claude-code-reaches-usd1b-milestone: Anthropic acquired Bun and committed to continued investment.
- bun.com/blog/bun-v1.4.4: The formatter launched in a stable release in October 2026.
- github.com/oven-sh/bun/issues/45405: The script override request was closed as completed the next day.
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.
- github.com/docs-plus/docs.plus/issues/655: Independent benchmark; adopted after 0 differences in 2,541 files
- dev.to/alexgeorgiev17/bun-144s-bun-fmt-checks-prettiers-own-repository-about-280-times-faster-than-prettier-gjj: Third-party replication of the speed claims
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.
- bunqueue.dev/changelog: Bunqueue documents replacing Oxfmt with bun fmt in its development workflow.
- reddit.com/r/webdev/comments/1xdbp3r/benchmarked_bun_fmt_144_against_oxfmt_on_two_1200: An independent user tested speed and output on two TypeScript repositories.
- github.com/haydenbleasel/ultracite/pull/850: Ultracite proposed support for the formatter.
- 2025.stateofjs.com/en-US/other-tools: The survey measures Bun runtime use and predates the formatter launch.
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.
- npm.license, npm.dependencies, scorecard: MIT licence, zero regular npm dependencies, and no Scorecard result in the bundle.
- github.com/oven-sh/bun/blob/bun-v1.4.5/packages/bun-release/src/npm/install.ts: The npm installer resolves a platform-specific Bun binary.
- github.com/advisories/GHSA-4j66-8f4r-3pjx: GitHub withdrew the command-injection advisory.
- github.com/advisories/GHSA-v9mx-4pqq-h232: The runtime prototype-pollution advisory lists 1.1.30 as patched.
- github.com/oven-sh/bun/security/advisories: The repository lists recent runtime advisories and their patched releases.
- bun.com/blog/bun-v1.4.5: The current security release updates bundled networking and TLS libraries.
- github.com/oven-sh/bun/blob/bun-v1.4.5/.github/workflows/release.yml: The tagged workflow signs release assets and disables npm provenance.
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
- 8.4Prettier
- 8.3ESLint
- 8.3Oxlint
- 8.2Stylelint
- 8.2typescript-eslint
- 8.0Biome
- 7.6Knip
- 7.5Oxfmt
- 6.5dprint
- 6.4bun fmt
- 5.7XO
- 5.4bun lint
- 3.2JavaScript Standard Style