# dprint

> Pluggable code formatting platform that runs multiple language formatters, including TypeScript, JSON, Markdown, TOML and wrappers for Prettier, Biome and Ruff.

Stars: 4.1k · Language: Rust · License: MIT · Categories: Dev Tools

- Repository: https://github.com/dprint/dprint
- Website: https://dprint.dev
- Page: https://www.trmn.sh/tools/dprint

## Overview

dprint is a code formatting platform written in Rust. Rather than formatting one language, it hosts formatters as plugins and runs them from a single tool and configuration, so a project can format several file types in one pass.

The plugin list covers many languages. First-party plugins handle TypeScript/JavaScript, JSON/JSONC, Markdown, TOML, Dockerfile and Jupyter notebook code blocks. Wrapper plugins integrate existing tools: Prettier, Biome, Oxc, Bun, Roslyn (C#/VB), Mago (PHP), Ruff (Python), gofumpt (Go) and SwiftFormat. Other plugins cover CSS/SCSS/Sass/Less (Malva), HTML/Vue/Svelte/Astro and related templating languages (markup_fmt), GraphQL, YAML, LaTeX/BibTeX, R, Julia, Typst and Quarto/Pandoc. The exec plugin formats code by calling any CLI executable, which lets tools without a dedicated plugin be added.

dprint is distributed through npm, crates.io and Homebrew. The repository is a monorepo for the core, and the README points to dprint.dev for the overview, install instructions, plugin directory and an online playground. It suits developers and teams who want one formatter setup across a polyglot codebase.

## Alternatives

- [lychee](https://www.trmn.sh/tools/lychee.md): Async, stream-based link checker written in Rust that finds broken URLs and email addresses in Markdown, HTML, reStructuredText, and websites. (Rust, 4.2k stars)
- [typos](https://www.trmn.sh/tools/typos.md): Source code spell checker that reports known misspellings, applies unambiguous corrections, and supports project-specific dictionaries and CI checks. (Rust, 4.2k stars)
- [bacon](https://www.trmn.sh/tools/bacon.md): Background code checker for Rust projects that runs continuously alongside your editor (Rust, 3.5k stars)
- [pastel](https://www.trmn.sh/tools/pastel.md): Command-line tool to generate, analyze, convert and manipulate colors across multiple formats and color spaces (Rust, 6.6k stars)
- [jscpd](https://www.trmn.sh/tools/jscpd.md): Copy/paste detector for 224 source formats with a Rust engine. Also reports dead code, complexity, git-history duplication trends, and a health score. (Rust, 6.6k stars)

---

Canonical: https://www.trmn.sh/tools/dprint
