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

LikeC4

$ likec4 Official Low Risk
LikeC4 · Design & Docs · MIT · macos / linux / windows

LikeC4 (likec4) compiles .c4 architecture-as-code models into interactive diagrams, structured JSON layout models (likec4 export json), Draw.io files, and PNGs. Agents can validate .c4 syntax with likec4 validate and inspect computed architecture views programmatically via likec4 export json -o model.json.

FCRS-1.0 Score
87 /100
Good
Medium Confidence
Zero-Friction Install
npm install likec4
CLI vs MCP Decision CLI Preferred vs MCP

Validating .c4 architecture DSL models and exporting structured JSON graphs via likec4 export json runs directly in the repository with zero MCP friction.

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

Supports zero-write likec4 validate, structured likec4 export json --pretty (with --skip-layout), and clean CLI subcommands.

  • likec4 validate for syntax checks and likec4 export json for structured output
  • Consistent --help and non-interactive flags
Trust & Safety 23 / 25

Offline local DSL compiler writing only to -o / --outdir.

  • Zero network credentials or remote uploads during export
Setup & Portability 12 / 15

Easy npm / npx install, though likec4 export png requires Playwright/Chromium while json/drawio work out of the box.

  • Node.js package; PNG export requires Playwright browser binaries
Utility & Efficiency 13 / 15

Modern C4 DSL with json, png, drawio, and markdown exports plus Graphviz WASM or native dot layout.

  • Multi-format C4 export including Draw.io and JSON
Maintenance & Lineage 9 / 10

Official LikeC4 project (likec4/likec4) actively developed under MIT.

  • Active releases on GitHub
Docs & Verifiability 8 / 10

Clear CLI reference at likec4.dev/tooling/cli/.

  • Official CLI docs at likec4.dev/tooling/cli/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; evaluates local .c4 architecture workspaces offline.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and open-source (MIT).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# LikeC4 Agent Rules
- Always run `npx likec4 validate` after editing `.c4` files before exporting diagrams.
- Prefer `likec4 export json` (pass `--skip-layout` if Graphviz/WASM layout is unneeded) or `export drawio` when Playwright is unavailable for PNG.
- Do not invoke `likec4 start` synchronously without backgrounding.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate LikeC4 workspace syntax
npx likec4 validate

Parses and validates all .c4 files in the workspace without generating output artifacts.

Controlled Writes & Previews

Export architecture model and layouts as JSON
npx likec4 export json -o likec4-model.json --pretty

Writes the parsed C4 model and computed view layouts to likec4-model.json.

Export architecture views as PNG images
npx likec4 export png -o ./diagrams

Renders each C4 view into PNG files under ./diagrams.

Strengths for Agents

  • + Clean likec4 validate syntax checking and likec4 export json for agent inspection of C4 models.
  • + Exports to png, jpg, drawio, markdown, and json from a single .c4 source of truth.

Caveats & Pitfalls

  • ! Raster png/jpg export requires Playwright/Chromium; use json or drawio in minimal headless containers.
  • ! Launching likec4 start blocks as a dev server.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI