stack-diagram README

The project's README from github.com/caru-ini/stack-diagram. As one markdown file: README.md.

stack-diagram

Release License skills.sh

English | 日本語 | 简体中文 | 한국어

Describe your stack in a sentence. Get an architecture diagram with official logos.

Architecture diagram: a user reaches Next.js on Vercel over HTTPS; Next.js calls a Hono API in the same Vercel deployment over RPC; Hono queries Neon over SQL and calls Clerk for sessions and Stripe for checkout; GitHub Actions deploys

Diagram our stack: Next.js and a Hono API on Vercel. Postgres on Neon, auth with Clerk, payments with Stripe. GitHub Actions deploys.

npx skills add caru-ini/stack-diagram

Works with Claude Code, Codex, Cursor and other agents that support skills. In the Claude apps, upload stack-diagram.zip from Releases as a skill.

More examples

Monorepo tooling diagram: a developer pushes to GitHub Actions, which runs Turborepo and publishes to npm; inside the pnpm workspace, Lefthook runs Biome before each commit and Turborepo runs Biome and Vitest

Dev tooling, not just clouds

Draw our monorepo tooling: a pnpm workspace with Turborepo, Biome, Vitest and Lefthook. GitHub Actions runs CI and publishes to npm.
AI app diagram: a user asks Next.js on Vercel, which runs a vector search on Supabase pgvector and sends a prompt to Claude; Inngest syncs Notion docs every night and stores embeddings in Supabase

AI apps

Draw our docs chatbot: Next.js on Vercel searches Supabase pgvector and answers with Claude. Inngest syncs Notion every night.
AWS diagram: a user reaches CloudFront over HTTPS; CloudFront serves static paths from S3 and sends API paths to an ALB in a VPC's public subnet; the ALB forwards to Fargate in a private subnet, which queries RDS over SQL and uses ElastiCache as a cache

AWS, with AWS's own icons

Draw our app on AWS: CloudFront in front of S3 and an ALB in a public subnet. Fargate, RDS and ElastiCache sit in a private subnet.
Google Cloud diagram: a user reaches Cloud Load Balancing over HTTPS; the load balancer serves static paths from Cloud Storage and sends API paths to GKE in one region of a VPC; GKE queries Cloud SQL over SQL and uses Memorystore as a cache

Google Cloud, with Google's own icons

Draw our app on Google Cloud: a global load balancer in front of Cloud Storage and GKE. GKE, Cloud SQL and Memorystore run in one region of a VPC.
Azure diagram: a user reaches Azure Front Door over HTTPS; Front Door serves static paths from Azure Blob Storage and sends API paths to Azure App Service in the Japan East region; App Service queries Azure SQL Database over SQL and uses Azure Managed Redis as a cache, both through private endpoints in a virtual network

Azure, with Microsoft's own icons

Draw our app on Azure: Front Door in front of Blob Storage and App Service. App Service reaches Azure SQL and Managed Redis through private endpoints in a VNet.

Light and dark

Every diagram is rendered in both themes. Tiles stay white so logos keep their own colors, and group labels switch to the brand's dark-theme logo.

The monorepo tooling diagram cut diagonally: light theme on the upper left, dark theme on the lower right

Share it as an artifact

The diagram is one HTML file with its fonts and logos inlined, so it renders anywhere without a network. Publish it as a Claude artifact and share the link, or drop it into a repo or wiki. The PNGs and the React component are rendered from the same file.

The docs chatbot diagram as an HTML page in a browser window, with a title, a short description, the diagram, a legend and a footer

After drawing, the agent offers once to post the diagram to the public gallery at https://stacks.caru.moe. It shows what will be public (the light and dark PNGs, an English title, the tech stack and a display name) and posts only after you say yes twice. Your prompt is never sent. A GitHub login is optional and never shown; it only lets you delete the post later. The site's source is in site/.

What you get

Requires Python 3.9+ and network access for the logos. PNG export uses Playwright with Chromium.

Star history

Chart of GitHub stars for caru-ini/stack-diagram over time

Licenses and trademarks

stack-diagram (caru-ini/stack-diagram)

png
Searching Database…

What is this?It is an agent skill that turns a one-sentence description of your tech stack into an architecture diagram with official brand logos, usable inside Claude Code, Codex, Cursor and other agents that support skills.
Is this a standalone app or something my coding agent runs?It's a packaged 'agent skill' with instructions and scripts that compatible coding agents load and execute, not a standalone application you launch yourself.
How do I add it to my agent?Download stack-diagram.zip from the project's Releases page and upload it as a skill inside the Claude apps; other skill-compatible agents load it the same way.
What do I need installed for it to work?Python 3.9+ and network access are required so the skill can fetch logos; generating a PNG additionally needs Playwright with a Chromium browser.
Are the logos bundled, or does it need the internet each time?Logos are not bundled with the skill - they are downloaded live at build time from sources like svgl, devicon, gilbarbara/logos, or AWS's own icon package, so an internet connection is needed every time.
What output formats can I get the diagram in?A self-contained HTML file with inlined fonts and logos (the default), a PNG, a dependency-free React component, or a Claude artifact - all rendered from the same source file.
Does it support light and dark themes?Yes, every diagram is rendered in both. Tiles stay white so logos keep their own colors, while group labels switch to the brand's dark-theme logo variant.
Can I use it for things other than cloud infrastructure?Yes, the README shows examples beyond clouds, like diagramming a pnpm/Turborepo/Biome/Vitest monorepo or a Next.js + Supabase + Claude AI app stack.
How does it avoid messy arrows crossing labels?Lines are routed around labels so arrows never cross text, and the agent renders and checks the diagram before handing it back.
Creator
caru-ini
Size
3.4 MB
Stars
2.6K
Age
1mo
Commits · 90 Days