dprint
$ dprint Community Low RiskFast 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.
brew install dprint Formats multi-language workspace files locally via sandboxed Wasm plugins in milliseconds.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean dprint check / --list-different / --stdin workflow and incremental caching, though no JSON diff report.
dprint check --list-differentoutputs exact file paths cleanly
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
checksubcommand
Native static Rust binary installable via Homebrew, npm, Cargo, and official installers across all platforms.
- Available across
brew,npm,cargo, and native binaries
Replaces multiple slow Node formatters with one ultra-fast cached runner across TS/JSON/MD/TOML/Dockerfile.
- Unified incremental formatting across 10+ languages
Created by David Sherret (dprint/dprint) and used in Deno and major TypeScript monorepos.
- Active
dprint/dprintrepository under MIT license
Clear plugin catalog, CLI reference, and configuration docs at dprint.dev.
- Official docs at dprint.dev/overview
Security, Auth & Guardrails
No auth required; caches downloaded Wasm formatter plugins locally.
MIT open-source Rust CLI; completely free.
# 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
dprint check --list-different
Prints file paths that differ from dprint.json rules and exits non-zero without modifying files.
Controlled Writes & Previews
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
--jsonoutput for check results (checkprints diffs or file paths with--list-different). - ! First run in a clean sandbox needs network access to fetch Wasm plugins declared in
dprint.jsonunless pre-cached.