A minimal text language for building architecture diagrams. Write code, get a visual diagram. Paste into AI, get a diagram back. No drag-and-drop required.
Numbers are hidden by default. Toggle them on with the # button in the bottom toolbar.
Full Example
A complete AWS 3-tier architecture. Copy it into the diagram code panel to see it rendered.
aws-3tier.archdsl
// AWS 3-Tier Web Architecture// Docs: node · text · sticky · group · edges (-> solid, --> dashed)node(r53)"Route 53"[icon:aws:Route53][color:#8C4FFF][sub:DNS][num:1]node(cf)"CloudFront"[icon:aws:CloudFront][color:#8C4FFF][sub:CDN][num:2]node(s3)"S3"[icon:aws:S3][color:#569A31][sub:Static][num:3]node(alb)"ALB"[icon:aws:ELB][color:#8C4FFF][sub:LoadBalancer]node(ec2)"EC2"[icon:aws:EC2][color:#FF9900][sub:WebTier]node(app)"EC2"[icon:aws:EC2][color:#FF9900][sub:AppTier]node(rds)"RDS"[icon:aws:RDS][color:#527FFF][sub:Aurora]node(ec)"ElastiCache"[icon:aws:ElastiCache][color:#C7131F][sub:Redis]node(cog)"Cognito"[icon:aws:Cognito][color:#C7131F][sub:Auth]group(web)"Web Tier"[color:#8C4FFF][opacity:10]{ec2}group(app)"App Tier"[color:#FF9900][opacity:10]{app}group(data)"Data Layer"[color:#527FFF][opacity:10]{rdsec}r53->cfcf->albcf->s3alb->ec2ec2->appapp->rdsapp->ec"cache"cog->alb"auth"
Use with AI
Give an AI assistant the spec, describe your system, and it generates valid ArchDSL you can paste straight in.
The format is compact enough for any LLM to generate reliably without hallucinating syntax. Copy the system prompt below into your AI chat, then describe the architecture you want.
system prompt — copy this
YouaregeneratingArchDSLcodeforavisualarchitecturediagramtool.ArchDSLformat:node(id)"Label"[icon:PREFIX:Name][color:#hex][sub:subtitle][num:N]text(id)"Label"sticky(id)"Note content"group(id)"Label"[color:#hex][opacity:0-100]{nodeId1nodeId2}source->target// solid edgesource-->target// dashed edgesource->target"label"// with labelIconprefixes:aws:·lucide:·si:·abbr:Examples:aws:S3,aws:EC2,aws:RDS,lucide:Globe,lucide:Server,si:SiGithub,abbr:APIRules:-IDsmustbeshort,unique,nospaces(e.g. api, db, cache, cdn)-Colorsarehex(e.g. #8C4FFF for purple, #FF9900 for orange, #527FFF for blue)-Spacesaround->and-->areoptional-GroupchildrenarenodeIDs,oneperlineorspace-separated-Left-to-rightortop-to-bottomflowispreferredOutputonlyvalidArchDSL,nomarkdownfences.
Tip: after pasting the prompt, just say something like "generate a microservices architecture with an API gateway, 3 services, a message queue, and a shared database." The output can be pasted directly into the diagram code panel.