Open source · Claude, Cursor, Codex

Diagrams that know what they mean.

Ask your agent to diagram AWS, Cloudflare, GCP, or Kubernetes. ArchLex validates the architecture and renders official-icon SVG you can read, diff, and share.

hero.archlexrendered diagram
Playground
ArchLex DSL
1direction LR
2provider aws
3validation normal
4
5account enterprise-cloud {
6  region us-east-1 {
7    dns: route53["Route 53"]
8    cdn: cloudfront["CloudFront"]
9    events: eventbridge["EventBridge"]
10
11    dns -[routes]-> cdn
12
13    vpc production-vpc {
14      subnet public-tier {
15        gateway: api-gateway["API Gateway"]
16        ingress: alb["Load Balancer"]
17      }
18
19      subnet application-tier {
20        api_service: ecs["API Cluster"]
21        worker: lambda["Event Worker"]
22      }
23
24      subnet data-tier {
25        cache: elasticache["Redis Cache"]
26        database: aurora["Aurora PostgreSQL"]
27        lake: s3["Data Lake"]
28      }
29    }
30
31    cdn -[routes]-> gateway -[invokes]-> api_service
32    cdn -[routes]-> ingress -[routes]-> api_service
33
34    api_service -[caches]-> cache
35    api_service -[writes]-> database
36    api_service -[publishes]-> events
37
38    events -[triggers]-> worker
39    worker -[streams]-> lake
40  }
41}
Rendered SVG
Enterprise cloud architecture with Route 53, CloudFront CDN, API Gateway, Application Load Balancer, ECS API Cluster, Lambda Worker, Redis Cache, Aurora PostgreSQL, and S3 Data Lake rendered by ArchLexEnterprise cloud architecture with Route 53, CloudFront CDN, API Gateway, Application Load Balancer, ECS API Cluster, Lambda Worker, Redis Cache, Aurora PostgreSQL, and S3 Data Lake rendered by ArchLex
One source · nested cloud scopes · typed semantic relationshipsDrag slider or use ← → keys

Semantic Validation and Code Review

Not just boxes.

ArchLex understands cloud resources, boundaries, and typed relationships, not just shapes.

API Gateway invokes Lambda, which writes to DynamoDBAPI Gateway invokes Lambda, which writes to DynamoDB
Architecture valid: AWS Serverless

Readable in code review.

Concise text source stays clear in diffs. Deterministic, accessible SVG keeps rendered reviews consistent.

provider aws
api: api-gateway
worker: lambda
data: dynamodb

api -[invokes]-> worker
worker -[writes]-> data

Built for AI agents.

Give Claude, Cursor, and other agents cloud architecture expertise. The ArchLex MCP server validates diagrams against AWS, Cloudflare, GCP, and Kubernetes rules with zero hallucinated resource names or invalid relationships.

Provider-aware validation
533 cloud resources
No API key required

Connect in seconds

Register ArchLex as a remote HTTP server.

claude mcp add --transport http archlex https://mcp.archlex.dev/mcp

Add this server to .cursor/mcp.json.

{
  "mcpServers": {
    "archlex": {
      "url": "https://mcp.archlex.dev/mcp"
    }
  }
}

Add ArchLex to the shared Codex MCP configuration.

codex mcp add archlex --url https://mcp.archlex.dev/mcp

Add this server to .vscode/mcp.json.

{
  "servers": {
    "archlex": {
      "type": "http",
      "url": "https://mcp.archlex.dev/mcp"
    }
  }
}

Use this URL in any client that supports remote Streamable HTTP.

https://mcp.archlex.dev/mcp

Or let your agent set it up for you.

Set up the ArchLex MCP server for this project using the official remote Streamable HTTP endpoint at https://mcp.archlex.dev/mcp. Verify the connection, list the available ArchLex tools, and tell me when it is ready. Do not change unrelated MCP servers.

Then ask:

Design a resilient AWS event ingestion system, validate it, and open the result in ArchLex Playground.

Full MCP documentation

Official agent skill.

Equip Claude Code, Cursor, Codex, and any AI coding assistant supporting the open SKILLS.md standard with deep cloud architecture diagramming and semantic validation.

Agent Skill Install (SKILLS.md)
npx skills add baires/archlex
Compatible with Claude Code, Cursor, Codex, and AGENTS.md / SKILLS.md agents

MCP tool workflows

Step-by-step workflow for render_diagram, validate_diagram, and catalog lookups directly within your coding agent session.

DSL reference & rules

Complete syntax rules, relationship kinds, containment scopes (accounts, regions, VPCs, subnets, and Cloudflare root/account placement), and diagnostic resolution.

Working templates

Production-ready AWS, Cloudflare, GCP, and Kubernetes templates that any AI agent can immediately adapt, validate, and extend.

Open source. Embed anywhere.

Lightweight, modular packages for browser and Node.js. Zero native binary dependencies.

Browser + Node.jsAWS · Cloudflare · GCP · KubernetesMIT LicensedStrict TypeScript
Install packagesnpm / pnpm
npm install @archlex/core @archlex/aws @archlex/cloudflare @archlex/gcp @archlex/k8s
Render diagrams programmaticallyTypeScript
import { render } from "@archlex/core";
import { awsProvider } from "@archlex/aws";

const result = await render(source, {
  providers: [awsProvider],
  validation: "normal",
});

document.querySelector("#diagram").innerHTML = result.svg;

Open source · MIT licensed · No account required

See your architecture clearly.