
LikeC4 turns .c4 files into live, multi-view architecture diagrams for VS Code and JetBrains — free, MIT, Node 20+ required.
likec4.likec4-vscode) is a VS Code extension — and JetBrains plugin — that collapses those two things into one. You write a .c4 file alongside your source code, run a preview server, and get live, interactive architecture diagrams that update every time you save. 1specification block. That flexibility is the main tradeoff: Structurizr's guardrails prevent accidental hierarchy violations; LikeC4 lets you model whatever structure fits your system, but a misconfigured spec can let you add elements at the wrong abstraction level. 3.c4 or .likec4 extension and follow a three-block structure.specification block declares what kinds of elements and relationships are allowed in your model. Here's a minimal example:specification {
element actor
element system
element component {
style {
shape rectangle
}
}
relationship uses
relationship deploys
}model block creates actual instances. You can attach descriptions, technology icons, shapes, tags, and metadata to any element:model {
customer = actor 'Customer' {
description 'The regular customer of the system'
}
saas = system 'Our SaaS' {
ui = component 'Frontend' {
technology 'Next.js, Vercel'
icon tech:nextjs
shape browser
}
backend = component 'Backend Services' {
description 'Implements business logic and exposes as REST API'
}
}
customer -> ui 'opens in browser'
ui -> backend 'fetches via HTTPS'
}views block defines what gets rendered. A view index { include * } shows everything; view of saas { include * } zooms into a single system's children. Multiple views can coexist in one file. 4
.c4 source. 4view of saas to the views block produces a second diagram that automatically nests ui and backend inside the saas boundary — no extra positioning work required:
view of saas block. 4
npm i -g likec4 or run without install via npx likec4) with commands that cover the full publishing workflow: 2# Live preview with hot reload
likec4 serve
# Generate a static website from your diagrams
likec4 build --output ./docs/architecture
# Export to PNG (uses Playwright headlessly)
likec4 export png --output ./diagrams/
# Import/export DrawIO diagrams
likec4 import drawio my-existing-diagram.drawio
likec4 export drawio --output exports/
# Generate React components for custom integrations
likec4 codegen react
# Start an MCP server for AI agents
likec4 mcp --transport stdiolikec4 mcp command exposes your architecture model to AI agents via the Model Context Protocol (MCP), with stdio or HTTP transport. The MCP package was extracted into a standalone @likec4/mcp package in v1.55.0, so it can be used independently of the VS Code extension. 6likec4/vite-plugin) lets you embed diagrams directly into a Vite-based documentation site or web app, auto-generating <LikeC4View viewId="index" /> React components. Web Components with a color-scheme attribute (light/dark mode, added in v1.57.0) are available for non-React setups. 2| VS Code extension ID | likec4.likec4-vscode |
| JetBrains plugin ID | 30490 (likec4) + 26619 (LikeC4 LSP Support) |
| Current version | v1.58.0 (June 5, 2026) |
| Node.js | 20+ (required runtime) |
| Browser support | Runs in github.dev and vscode.dev (universal extension) |
| Other editors | Neovim, Emacs, any LSP-compatible editor via @likec4/lsp |
| License | MIT |
| Price | Free |
| Editors docs | likec4.dev/tooling/editors/ 7 |
specification block yourself, and there's nothing stopping a teammate from accidentally defining it wrong. Structurizr's fixed hierarchy is safer for teams where C4 compliance is non-negotiable. 3npm install -g likec4 or npx likec4 serve 6likec4.dev
github.com
docs.structurizr.com
likec4.dev
github.com
npmjs.com
likec4.dev
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.