README.md

June 14, 2026 · View on GitHub

ArchSketch

ArchSketch

Generate cloud architecture diagrams from natural language using AI — right inside VS Code.

CI Security Open VSX License Release


ArchSketch uses GitHub Copilot's Language Model API to turn plain English descriptions into editable draw.io diagrams. No API keys needed — it uses your existing Copilot subscription.

Features

Natural Language → Diagram

Describe your architecture in plain English, get a fully rendered, editable diagram in seconds.

"3-tier AWS web app with ALB, ECS Fargate, and Aurora PostgreSQL"

Multi-Provider Shape Library (30+ shapes)

ProviderShapes
AWSEC2, Lambda, ECS, EKS, ALB, CloudFront, S3, RDS, DynamoDB, SQS, SNS, Cognito
AzureVM, App Service, AKS, Functions, SQL Database, Cosmos DB
GCPGCE, Cloud Run, GKE, Cloud SQL, Pub/Sub, BigQuery
KubernetesPod, Deployment, Service, Ingress, ConfigMap, Secret

Starter Templates

Get started fast with 5 pre-built architecture templates:

  • AWS 3-Tier — CloudFront → ALB → EC2 Auto Scaling → RDS Multi-AZ
  • AWS Serverless — API Gateway → Lambda → DynamoDB + S3 + Cognito
  • K8s Microservices — Ingress → API Gateway → Microservices + PostgreSQL + Redis
  • Azure Web App — Front Door → App Service → SQL Database + Azure AD + Key Vault
  • GCP Data Pipeline — Pub/Sub → Dataflow → BigQuery + Cloud Storage + Looker

Code Scanning (IaC → Diagram)

Generate architecture diagrams directly from your infrastructure code:

  • Single file — Scan the active editor file
  • Multi-file — Scan a folder with cross-file reference analysis
  • Workspace — Scan the entire workspace for IaC files

Supported formats: Terraform (.tf), CloudFormation (YAML/JSON), Kubernetes manifests (YAML)

Cross-file intelligence detects module references, Ref/GetAtt, label selectors, volume claims, and more.

Iterative AI Refinement

Chat-style refinement in the diagram editor — modify, expand, or restructure your architecture through conversation without starting over.

A dedicated activity bar panel with three tabs:

  • Generate — Text input with provider selector and Ctrl+Enter shortcut
  • Templates — Browse and load starter templates with preview cards
  • Shapes — Drag-and-drop shape palette filtered by provider

Export

Save diagrams in multiple formats:

FormatUse Case
.drawioEditable diagram file
SVGScalable vector for docs
PNGRaster image for sharing
HTMLEmbeddable interactive diagram

Quick Start

Installation

  1. Download the latest .vsix from GitHub Releases
  2. In VS Code, open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  3. Run "Extensions: Install from VSIX..."
  4. Select the downloaded .vsix file

Or install via CLI:

# Download and install the latest release
gh release download --repo worklifesg/arch-sketch --pattern "*.vsix" --dir /tmp
code --install-extension /tmp/archsketch-*.vsix

From Open VSX Registry (for VSCodium / Gitpod / Theia)

Search for "ArchSketch" in the extension marketplace, or install from the command line:

# VSCodium
codium --install-extension worklifesg.archsketch

Browse it on Open VSX.

Usage

  1. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Run "ArchSketch: Generate Cloud Architecture Diagram"
  3. Describe your architecture in plain English
  4. Edit the generated diagram in the embedded draw.io editor
  5. Export as SVG, PNG, .drawio, or HTML embed

Or use the ArchSketch sidebar panel in the activity bar for a guided experience.

Requirements

Commands

CommandDescription
ArchSketch: Generate Cloud Architecture DiagramGenerate a diagram from a text description
ArchSketch: Open .drawio in PreviewOpen an existing .drawio file in the editor
ArchSketch: Generate Diagram from CodeScan the active file for IaC and generate a diagram
ArchSketch: Scan Folder for Architecture DiagramMulti-file IaC scan with folder picker
ArchSketch: Scan Workspace for Architecture DiagramScan the entire workspace
ArchSketch: Export as SVGExport the current diagram as SVG
ArchSketch: Export as PNGExport the current diagram as PNG
ArchSketch: Export HTML Embed CodeCopy an HTML embed snippet to clipboard

Settings

SettingDefaultDescription
archsketch.defaultProviderawsDefault cloud provider (aws, azure, gcp, kubernetes, general)
archsketch.themeautodraw.io editor theme (light, dark, auto)
archsketch.defaultExportFormatsvgDefault export format (svg, png, drawio)

Use Cases

  • Architecture reviews — Quickly visualize and iterate on system design
  • Documentation — Generate up-to-date diagrams from live Terraform/CloudFormation
  • Learning — Explore cloud service relationships visually
  • Presentations — Export polished diagrams for slides and docs
  • Code auditing — Scan existing IaC to understand what's deployed

Known Limitations

  • AI-generated diagrams may need manual layout adjustments for complex architectures
  • PNG export requires the draw.io editor to be open (uses the embedded renderer)
  • Multi-file scanning is limited to 200KB of combined content to respect LLM context limits
  • Requires an active GitHub Copilot subscription for AI features

Troubleshooting

IssueSolution
"No language model available"Ensure GitHub Copilot extension is installed and signed in
Empty or malformed diagramTry a more specific description; include service names
Diagram doesn't match providerSet archsketch.defaultProvider or specify the provider in your prompt
VSIX won't installCheck VS Code version is 1.120.0 or later

Development

git clone https://github.com/worklifesg/arch-sketch.git
cd arch-sketch
npm install
npm run build

Press F5 in VS Code to launch the Extension Development Host.

Testing

npm test              # Run all tests
npm run test:watch    # Watch mode
npm run test:coverage # Coverage report

Contributing

See CONTRIBUTING.md for development setup and guidelines.

Security

See SECURITY.md for vulnerability reporting and security design.

License

MIT