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 (50.2K stars) and black (41.9K stars). GitHub.Locker tracks 10 Formatter repositories with 263.8K stars combined. The fastest-growing on October 18 was ruff, with +22 stars in a day.

10Projects
263.8KStars in total
+80Stars in a day

Hot right now

Most stars gained in a day · Oct 18

The all-time top

10 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.

    50.2K
  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.

    41.9K
  1. 4

    biome

    26Kbiomejs/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

    tools

    23.4Krome/tools · Rust

    Rome is a unified toolchain for JavaScript, TypeScript, and the web: one program that formats, lints, and bundles code, built to replace separate tools like Babel, ESLint, webpack, Prettier, and Jest.

  3. 6

    oxc

    23.1Koxc-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.

  4. 7

    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.

  5. 8

    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.

  6. 9

    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.

  7. 10

    vite-plus

    6.4Kvoidzero-dev/vite-plus · Rust

    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