Topics / #formatter

Formatter projects on GitHub

Code formatters that enforce consistent style automatically.

As of , the most-starred Formatter projects on GitHub are prettier (52.4K stars), ruff (51.3K stars) and black (42.2K stars). GitHub.Locker tracks 9 Formatter repositories with 242.8K stars combined. The fastest-growing on December 2 was ruff, with +60 stars in a day.

9Projects
242.8KStars in total
+131Stars in a day

Hot right now

Most stars gained in a day · Dec 2

The all-time top

9 projects · by stars

  1. #1 · prettier/prettier

    prettier

    Prettier is an opinionated code formatter: point it at a project and it keeps the whole codebase in one consistent code style.

    52.4K
  2. #2 · astral-sh/ruff

    ruff

    Ruff is an extremely fast Python linter and code formatter written in Rust, built to replace tools like Flake8, Black, isort, pydocstyle, pyupgrade, and autoflake with a single command-line tool.

    51.3K
  3. #3 · psf/black

    black

    Black is the uncompromising Python code formatter: it reformats your code into one opinionated style, freeing you from hand-formatting and style debates.

    42.2K
  1. 4

    biome

    26.2Kbiomejs/biome · Rust

    Biome is a toolchain for web projects: one fast tool that both formats and lints JavaScript, TypeScript, JSX, JSON, CSS and GraphQL, run from the CLI or your editor via LSP.

  2. 5

    oxc

    23.5Koxc-project/oxc · Rust

    Oxc — the Oxidation Compiler — is a collection of high-performance tools for JavaScript and TypeScript written in Rust: a parser, linter, formatter, transformer, minifier, and module resolver.

  3. 6

    yapf

    14Kgoogle/yapf · Python

    YAPF is a Python code formatter based on clang-format: instead of just enforcing style rules, it calculates the best way to reformat your code to conform to a configured style, aiming to produce code as good as a programmer following the style guide would write.

  4. 7

    PHP-CS-Fixer

    13.6KPHP-CS-Fixer/PHP-CS-Fixer · PHP

    PHP CS Fixer is a tool that automatically fixes your PHP code to follow coding standards — unlike a plain linter, it does not just detect problems, it fixes them for you.

  5. 8

    rubocop

    12.9Krubocop/rubocop · Ruby

    RuboCop is a static code analyzer (linter) and code formatter for Ruby that enforces the community Ruby Style Guide out of the box, and it is also configurable to enforce your own style.

  6. 9

    vite-plus

    6.6Kvoidzero-dev/vite-plus · TypeScript

    Vite+ is the unified toolchain and entry point for web development: a single zero-config CLI (vp) that bundles Vite, Vitest, Oxlint, Oxfmt, Rolldown, tsdown and a task runner, and also manages your Node.js runtime and package manager.

Often tagged together