Head-to-head
dprint vs treefmt
dprint leads: the AI models rank it above its rival on 1 of the 1 leaderboard they share. Based on how ChatGPT, Claude, Gemini & Grok rank both across the leaderboard they share — re-polled on demand, reasoning shown verbatim.
| Leaderboard | dprint | treefmt |
|---|---|---|
| Best code formatter | #1 / 8 | #3 / 8 |
Why the models rank dprint — on best code formatter
“Best overall fit for a genuinely polyglot repository: extremely fast native core, deterministic formatting, one configuration/CLI, and a strong plugin system covering TypeScript/JavaScript, JSON, Markdown, TOML, YAML, Dockerfile, CSS-family languages, HTML/Vue/Svelte/Astro, GraphQL, Python via Ruff, C# via Roslyn, Go via gofumpt, and more; it can even delegate to Prettier or other formatters when needed. ([Dprint Plugins][1])”
Why the models rank treefmt — on best code formatter
“Near-tie with dprint for highly polyglot codebases because it takes the pragmatic approach of orchestrating each language's best native formatter behind one command, runs formatters in parallel, and can restrict work to changed files; particularly strong when a repo spans ecosystems such as Go, Rust, Python, Nix, C++, and TypeScript rather than mostly web languages. ([GitHub][2])”
More head-to-heads
Rankings move. Know when this flips.
The 3 biggest AI-ranking flips, one short email a week.
Ranks from the merged 4-model leaderboards · re-polled on demand · methodology