# numtide/treefmt

the formatter multiplexer [maintainers=@zimbatm,@brianmcgee]

Repository: https://github.com/numtide/treefmt
Canonical: https://ross.abutalabs.com/products/treefmt
Homepage: https://treefmt.com
Language: Go
License: MIT
License Family: permissive
Topics: formatter, cli, unifies, buildbot-numtide, treefmt
Last push: 2026-08-31T18:30:10+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 88, longevity 100
- inputs: {"age_days": 2084, "days_push": 2, "days_rel": 2, "gap_med": 39, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1053, forks 54 (observed 2026-09-01T02:14:05.391593+00:00)

## What it is
treefmt is a CLI tool that unifies running multiple code formatters across a polyglot repository with a single command. It runs formatters in parallel, tracks file changes to only reformat modified files, and is configured via a treefmt.toml file.

## Use cases
- format all files in a multi-language repo with one command
- replace per-project formatter shell scripts
- run code formatters in parallel for speed
- only reformat files that changed since last run
- standardize formatter output across a team
- integrate formatting into CI pipelines

## When to choose
- your repository mixes many languages each with its own formatter
- you want a single unified CLI and config for all formatters
- formatting speed matters and you want parallel, incremental runs

## When to avoid
- you only use a single language with one formatter
- you need a formatter itself rather than a multiplexer of existing ones
- your formatters are not supported or configurable via treefmt.toml

## Facets
- artifact type: cli-tool
- maturity: active
- function: formatter, cli, developer-tools, build-tool
- domain: developer-tools, version-control
- platform: windows, cli, cross-platform
- tags: formatter-multiplexer, code-formatting, polyglot, parallel-execution, incremental-formatting, go, command-line, linux, macos

## Member repositories
- numtide/treefmt (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:14:05.391593+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:59:44.912255+00:00, confidence not recorded.
  - readme: https://github.com/numtide/treefmt (fetched 2026-09-01T02:14:05.391593+00:00, sha f47ba69cd2f8)
  - homepage: https://treefmt.com (fetched 2026-08-29T13:01:07.546071+00:00, sha 36c6c3c2e4f9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
