FREE  ·  NO SIGNUP  ·  100% BROWSER  ·  npm: infrasketch

Architecture diagrams that
never go stale.

Your team is redrawing the same boxes in Lucidchart every time infra changes.
Paste your IaC code — get an accurate, exportable architecture diagram in seconds.

AWS Azure GCP Terraform CloudFormation CDK Docker Compose Terragrunt
< 3s Diagram from any IaC file
8 IaC formats, auto-detected
0 Data uploaded
Checkov Security overlay
Infracost Cost overlay
Free Always & forever
Available in your stack
GitHub Action — PR Diff Auto-comments infra changes + visual diff link on every IaC PR.
Marketplace
CLI — Terminal npx infrasketch . — zero install, opens live diagram.
npm
Web Component — Embed <infra-sketch src="..."> anywhere.
embed.js
MCP — Claude Code & Cursor npx infrasketch-mcp — diagram inside your AI editor.
npm

Stop redrawing boxes
every time infra changes.

Most teams document infrastructure manually in Lucidchart or draw.io, redrawing the same boxes every time something changes. The diagram is outdated before the PR merges. InfraSketch reads your actual code and renders the diagram automatically — keeping documentation in sync with what is deployed.

Paste Terraform HCL, Bicep, ARM JSON, Pulumi (TypeScript/Python), Kubernetes YAML, CloudFormation, CDK synth output, Terragrunt units, or Docker Compose — get a clean, exportable architecture diagram in seconds. No account. No cloud credentials. Nothing leaves your browser.

Supports 85+ resource types across AWS, Azure, and GCP. VPCs, subnets, compute clusters, databases, storage, load balancers, serverless, queues — automatically grouped into logical zones with clean connection routing.

85+AWS, Azure & GCP resource types
0Bytes sent to any server
4Export formats incl. draw.io
FreeNo signup, no limits, open source

Try it live

Paste any IaC code on the left — diagram appears on the right.

infrasketch.cloud
Input
▼ v1 — BEFORE
▲ v2 — AFTER
Architecture Diagram

Paste Terraform, Pulumi, Kubernetes, CloudFormation, CDK, Terragrunt, or Docker Compose on the left
and click Generate Diagram

Parsing infrastructure...
Blast Radius
Direct impact 0
Indirect impact 0
Upstream deps 0
No connections for this resource.
+0 added −0 removed ~0 unchanged
Removed resources

How it works

Three steps from infrastructure code to a shareable architecture diagram.

01

Paste your IaC code

Paste any IaC code — InfraSketch auto-detects the format and switches to the right tab automatically. Supports Terraform HCL, CloudFormation, CDK, Pulumi TypeScript/Python, Kubernetes YAML, Terragrunt, and Docker Compose. No reformatting needed.

02

Your architecture, mapped automatically

The parser reads VPC boundaries, subnet membership (subnet_id, subnet_ids), and resource references to build a containment graph automatically.

03

Export and share

Download as PNG, SVG, draw.io XML, or Mermaid code. Share a URL that encodes your diagram state — no server, no storage, no account required.

Built for your workflow

No visual tools. No credentials. No stale docs. Just accurate diagrams from code you already have.

No credentials needed

Unlike Cloudcraft or Hava, InfraSketch never touches your cloud account. Paste Terraform HCL, CloudFormation YAML/JSON, CDK synth output, Pulumi TypeScript/Python, Kubernetes YAML, Terragrunt units, or Docker Compose — everything runs in your browser.

Presentation-ready on first render

Generates diagrams using official AWS, Azure, and GCP icons. Professional enough for documentation, presentations, and architecture reviews — no cleanup required.

Export & import draw.io

Download as PNG, SVG, or draw.io XML. A visual preview shows your diagram before download. Or upload any SVG and convert it to native draw.io format with editable AWS/Azure stencils.

100% private

Your code never leaves your browser. No server processing, no storage, no telemetry. Fully client-side.

See your full infra, not just root module

Upload a ZIP of your Terraform project to expand local modules inline, or toggle Auto-fetch registry modules to pull public modules like terraform-aws-modules/vpc/aws from the Terraform Registry and render every resource inside.

Smart module grouping

Paste terraform show -json tfplan output and resources sharing a module prefix (e.g. module.vpc.*) are automatically grouped into labeled bounding boxes. Click [−] to collapse any group to a single summary card — useful for large plans with 50+ resources.

⚡ Blast radius & change impact

Click any resource to instantly see its direct downstream impact (red), indirect downstream (orange), and upstream dependencies (blue) — everything else dims. A side panel lists every affected service with counts. Click any item to pivot. On TF plan JSON, nodes show +/~/× badges for create, update, and delete actions.

Clean connection routing

Skips structural wiring references and only draws meaningful flow connections — no spaghetti arrows from every Terraform resource reference.

Interactive editor

Click Edit to drag any node to a new position. Connection arrows update live. Click Reset Layout to restore the original auto-layout at any time.

Checkov security overlay

Run checkov -d . -o json and paste the output into the 🛡 Security panel. Failing resources get a red border, a badge with the failure count, and a hover tooltip with check IDs — directly on the diagram.

Infracost cost overlay

Run infracost breakdown --path . --format json and paste the output into the 💰 Cost panel. Each resource gets a colour-coded monthly cost badge — green for cheap, amber for moderate, red for expensive.

CLI — diagram from terminal

Run npx infrasketch . in any Terraform, Kubernetes, or Pulumi repo. InfraSketch scans all IaC files, auto-detects the format, and opens a live interactive diagram in your browser — no install required.

Embeddable web component

Add <script src="infrasketch.cloud/embed.js"> once, then drop <infra-sketch src="./main.tf"> anywhere on your docs, blog, or README preview page. Or generate an <iframe> embed via the </> Embed button.

MCP server for AI editors

Run npx infrasketch-mcp as an MCP server in Claude Code, Cursor, or Windsurf. Ask your AI to diagram your Terraform or Kubernetes code — it calls generate_diagram and returns a shareable URL + embed snippet without leaving the editor.

Use everywhere

Browser, terminal, AI editor, or embedded in your docs — InfraSketch fits your workflow.

Web App

Paste any IaC code and get an instant diagram. No install, no login, no data uploaded. Works in any browser.

infrasketch.cloud

CLI — Terminal

Run from any Terraform, Kubernetes, or Pulumi repo. Scans all IaC files, detects format, opens a live diagram in the browser. Zero install via npx.

npx infrasketch .

MCP — Claude Code & Cursor

Add as an MCP server. Ask your AI to diagram any IaC code — it calls generate_diagram and returns a URL + embed snippet inline in chat.

npx infrasketch-mcp

Embed — Docs & Blogs

Drop a live diagram on any webpage. Point at a public IaC URL or paste code inline. Renders an interactive iframe — no iframe boilerplate needed.

<infra-sketch src="./main.tf">

How InfraSketch works

From IaC code to architecture diagram in seconds

InfraSketch reads your infrastructure-as-code files and generates a visual architecture diagram automatically. There is no compilation step, no cloud account connection, and no data upload. The entire process runs in your browser using JavaScript parsers that extract resource definitions from your code and a layout engine that positions them into a readable diagram.

The parser detects the IaC format automatically from the syntax — Terraform HCL uses resource "aws_..." "name" blocks, Kubernetes YAML has apiVersion and kind fields, CloudFormation has AWSTemplateFormatVersion. You don't need to select the format manually.

VPC containment and connection routing

One of the most useful things InfraSketch does automatically is place resources inside their VPC or VNet boundaries. When a Terraform resource has a vpc_id or subnet_id attribute referencing another resource, InfraSketch draws that resource inside the VPC or subnet boundary. The result looks like the classic AWS architecture diagrams — grouped boxes with resources nested inside their network boundaries.

Connection arrows are drawn between resources that reference each other. An EKS cluster that references a subnet, a Lambda function that references an RDS instance's endpoint, an ALB that references a target group — all of these become arrows on the diagram. The layout engine groups resources into functional zones (Internet → Ingress → Compute → Data → Messaging) and routes arrows to minimize crossings.

Terraform plan JSON: the most accurate input

While InfraSketch works with raw HCL source files, the most accurate diagrams come from Terraform plan JSON. Run terraform plan -out=tfplan && terraform show -json tfplan and paste the output. The plan JSON contains fully resolved resource addresses — including resources created by count and for_each expressions — and the complete dependency graph Terraform computed.

Plan JSON also carries change action metadata: each resource is annotated with whether it will be created, updated, replaced, or deleted. InfraSketch uses this to add change badges to each resource node — green + for creates, amber ~ for updates, orange for replacements, red × for deletes. When you're reviewing a Terraform PR, this gives you an instant visual summary of what the plan will do to your infrastructure.

Security and cost overlays

InfraSketch integrates with Checkov and Infracost to add security and cost context directly to the architecture diagram. Run checkov -d . -o json to get a list of misconfigured resources, then paste the JSON into the Security panel. Resources that fail security checks get red borders and a badge showing the number of failures. Click the badge to see the specific check IDs.

For cost analysis, run infracost breakdown --path . --format json and paste the output into the Cost panel. Each billable resource gets a color-coded monthly cost label: grey for free-tier resources, green for under $10/month, amber for $10–$100, orange for $100–$500, and red for over $500/month. Expensive resources are immediately obvious on the diagram without reading a text report.

Export formats

Diagrams can be exported as PNG (2× retina resolution), SVG (with icons inlined as base64 data URIs, fully self-contained), draw.io XML (opens directly in draw.io with all elements editable), or Mermaid code (for embedding in GitHub READMEs, Notion, GitLab, or any Mermaid-compatible renderer).

The Share button generates a URL that encodes the diagram state. The URL contains the compressed IaC input and all layout positions — no server required. Anyone with the link can open the exact diagram in their browser. For teams, paste the share link into a Jira ticket, Confluence page, or Slack message and colleagues can view and interact with the full diagram without any account or installation.

From the blog

Guides and tutorials on Terraform, AWS architecture, and infrastructure diagrams.