esbuild
$ esbuild Community Low RiskExtremely fast JS/TS/CSS bundler and minifier written in Go. Offers deterministic headless flags, --color=false, --metafile=meta.json dependency/size JSON output, and --analyze bundle breakdown without interactive prompts.
brew install esbuild Local high-speed bundler invoked directly or embedded inside Vite/tsx.
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
Zero interactive prompts, --color=false, --log-level, stdout output when --outfile is omitted, and --metafile JSON graph output.
--metafileoutputs structured JSON bundle analysis--color=falseand--log-level=errorkeep stdout/stderr clean
Purely local execution with no implicit network fetches and safe in-memory stdout mode when output flags are omitted.
- No plugins or arbitrary build scripts executed via CLI flags alone
Native Go binary distributed via Homebrew, npm platform packages, and direct releases on macOS, Linux, and Windows.
- Zero-dependency native binary across all major platforms
10–100x faster than JS-based bundlers, making iterative bundle checks near-instantaneous.
- Sub-second bundling and minification written in Go
Stable, battle-tested MIT project created by Evan Wallace and relied upon by Vite, tsx, and Remix.
- Mature
evanw/esbuildrepository
Clear API and CLI flag documentation at esbuild.github.io.
- Complete CLI/API reference at esbuild.github.io/api
Security, Auth & Guardrails
No authentication required; operates strictly on local source files.
MIT open-source CLI; completely free.
# esbuild Agent Rules - Always pass `--color=false` and explicit `--outfile` / `--outdir` (or omit them to output to stdout/memory). - Use `--metafile=meta.json` to inspect bundle composition programmatically instead of parsing terminal tables.
Agent-Ready Command Recipes
Safe Read-Only Queries
esbuild src/index.ts --bundle --analyze --color=false
Bundles in memory without --outfile/--outdir and prints a bundle size breakdown.
Controlled Writes & Previews
esbuild src/index.ts --bundle --minify --metafile=dist/meta.json --outfile=dist/index.js --color=false
Writes minified dist/index.js and a detailed JSON dependency/byte-size graph in dist/meta.json.
Strengths for Agents
- + Native Go speed makes bundling and
--metafileJSON analysis nearly instantaneous. - + Clean headless behavior with
--color=false,--analyze, and zero interactive prompts.
Caveats & Pitfalls
- ! Does not perform TypeScript type checking (
tsc --noEmitis still required). - ! Compile/bundle errors are emitted as plain text rather than JSON.