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

Rspack CLI

$ rspack Official Low Risk
ByteDance / Web Infra · Code & DevOps · MIT · macos / linux / windows

Official CLI (@rspack/cli) for the Rust-written Rspack bundler offering near-drop-in Webpack compatibility at Rust speed. Supports rspack build --json stats output and --no-color for deterministic headless builds.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g @rspack/cli
CLI vs MCP Decision CLI Only

Local Rust-accelerated bundler run directly inside frontend repositories.

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 19 / 25

Supports rspack build --json and --no-color without interactive prompts, though rspack dev is a blocking server and --json stats are verbose.

  • Supports rspack build --json and --no-color
  • Non-interactive build subcommand
Trust & Safety 20 / 25

Local compilation scoped to dist/, though rspack.config.* JS plugins run with local Node permissions.

  • Zero network or credential exposure
Setup & Portability 13 / 15

Installed via npm/npx with prebuilt Rust native bindings for macOS, Linux, and Windows.

  • Cross-platform npm packages with native binaries
Utility & Efficiency 14 / 15

Dramatically faster build times than Webpack while preserving Webpack config and plugin compatibility.

  • Rust-powered parallel bundling and SWC transpilation
Maintenance & Lineage 9 / 10

Maintained by ByteDance Web Infra (web-infra-dev/rspack) under MIT with rapid adoption.

  • Active web-infra-dev/rspack repository
Docs & Verifiability 8 / 10

Clear CLI reference and migration guides at rspack.dev.

  • Official CLI documentation at rspack.dev/api/cli

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication required; reads local rspack.config.* and project source files.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Rspack CLI (rspack) Agent Rules
- Use `rspack build --no-color` for synchronous verification; redirect `--json` to a file before filtering with `jq`.
- Run `rspack dev` or `rspack preview` only in background daemon tasks.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect Rspack version and CLI subcommands
rspack --version && rspack build --help

Reports the installed @rspack/cli version and build options without touching output folders.

Controlled Writes & Previews

Run production Rspack build with JSON stats
rspack build --json --no-color > dist/stats.json

Bundles the project at native Rust speed and writes Webpack-compatible JSON stats to dist/stats.json.

Strengths for Agents

  • + Combines Webpack --json stats compatibility with Rust build performance.
  • + Clean rspack build --no-color verification flow.

Caveats & Pitfalls

  • ! --json outputs large Webpack-style stats objects that should be redirected or filtered with jq.
  • ! rspack dev blocks synchronously if not started as a background daemon.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI