Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

dprint

$ dprint Community Low Risk
David Sherret · Code & DevOps · MIT · macos / linux / windows

Fast Rust and WebAssembly-plugin code formatter supporting TypeScript, JavaScript, JSON, Markdown, TOML, CSS, and Dockerfiles from a single dprint.json configuration. Offers dprint check --list-different for non-destructive CI and agent checks.

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install dprint
CLI vs MCP Decision CLI Only

Formats multi-language workspace files locally via sandboxed Wasm plugins in milliseconds.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Clean dprint check / --list-different / --stdin workflow and incremental caching, though no JSON diff report.

  • dprint check --list-different outputs exact file paths cleanly
Trust & Safety 23 / 25

Wasm plugins run sandboxed; check is strictly read-only, though first-time plugin fetch downloads Wasm URLs from dprint.json.

  • Sandboxed Wasm plugin execution and read-only check subcommand
Setup & Portability 15 / 15

Native static Rust binary installable via Homebrew, npm, Cargo, and official installers across all platforms.

  • Available across brew, npm, cargo, and native binaries
Utility & Efficiency 14 / 15

Replaces multiple slow Node formatters with one ultra-fast cached runner across TS/JSON/MD/TOML/Dockerfile.

  • Unified incremental formatting across 10+ languages
Maintenance & Lineage 9 / 10

Created by David Sherret (dprint/dprint) and used in Deno and major TypeScript monorepos.

  • Active dprint/dprint repository under MIT license
Docs & Verifiability 8 / 10

Clear plugin catalog, CLI reference, and configuration docs at dprint.dev.

  • Official docs at dprint.dev/overview

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No auth required; caches downloaded Wasm formatter plugins locally.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source Rust CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# dprint Agent Rules
- Run `dprint check --list-different` before `dprint fmt` to preview affected paths.
- Ensure `dprint.json` already exists in the repo; avoid downloading unpinned remote Wasm plugins without review.

Agent-Ready Command Recipes

Safe Read-Only Queries

List files needing formatting without editing
dprint check --list-different

Prints file paths that differ from dprint.json rules and exits non-zero without modifying files.

Controlled Writes & Previews

Format workspace files using dprint.json
dprint fmt

Formats configured files in place using incremental caching.

Strengths for Agents

  • + Orders of magnitude faster than Prettier on large TS/JS/Markdown monorepos with incremental caching.
  • + Wasm plugin sandboxing isolates third-party language formatters.

Caveats & Pitfalls

  • ! No --json output for check results (check prints diffs or file paths with --list-different).
  • ! First run in a clean sandbox needs network access to fetch Wasm plugins declared in dprint.json unless pre-cached.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI