Skip to content

isatimur/archigram.ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

199 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ArchiGram.ai

Describe your architecture. AI draws it.

License: MIT TypeScript React Powered by Gemini PRs Welcome CI codecov GitHub release GitHub stars

Live Demo · Report Bug · Request Feature · Discussions

ArchiGram.ai Preview

What is ArchiGram.ai?

ArchiGram.ai is an AI-powered architecture diagramming tool that transforms natural language descriptions into production-ready diagrams. Stop dragging boxes — start describing systems.

Input:  "Create a microservices architecture with API gateway,
         user service, order service, Redis cache, and PostgreSQL"

Output: Complete Mermaid.js diagram in 2 seconds

SaaS or Self Hosted?

Mode Backend What Works
Hosted (archigram-ai.vercel.app) Supabase Full: AI, community gallery, publish, like, fork
Self-hosted minimal None AI (Gemini key), diagramming, export, share URL, static gallery
Self-hosted full Supabase Same as hosted; your infra, your data

No vendor lock-in. Start with the hosted version, self-host when you need data sovereignty.

Who It's For

You are... You want...
Architects Local diagramming, AI, export — run locally with Gemini key
Teams Shared gallery, publish, fork — use hosted or self-host with Supabase
Enterprises Data sovereignty, RAG — self-host + optional RAG backend

Features

AI-Powered Generation

Describe your system in plain English. Gemini 3 Flash generates valid Mermaid.js code instantly.

Vision AI

Scan whiteboard sketches, screenshots, or hand-drawn diagrams. AI converts them to editable code.

Architectural Audit

AI analyzes your diagrams for:

  • Single points of failure
  • Security vulnerabilities
  • Scalability bottlenecks
  • Missing components

Multiple Diagram Formats

  • Mermaid.js: Flowcharts, sequence, class, state, ER, Gantt, and more
  • PlantUML: Enterprise-standard UML diagrams
  • BPMN: Business process modeling

Public Profiles

Every user gets a shareable profile at archigram-ai.vercel.app/u/username — avatar, bio, social link, and a grid of published diagrams. Full OpenGraph metadata for social sharing.

Community Gallery

Browse, like, fork, and share diagrams with the community.

Export & Share

  • Export as SVG or high-resolution PNG
  • Share via compressed URLs
  • Copy for Platform — one-click copy formatted for GitHub, Notion, GitLab, VS Code, Obsidian, Confluence
  • Mermaid renders natively in these platforms — no embed widget needed

Quick Start

Option 1: Use Hosted Version

Visit archigram-ai.vercel.app — no installation required.

Option 2: Run Locally (Minimal)

git clone https://github.com/isatimur/archigram.ai.git
cd archigram.ai
bun install
cp .env.example .env
# Add GEMINI_API_KEY only (see .env.example)
bun run dev

Open http://localhost:3000. Community gallery shows static fallback.

Option 3: Self-Host with Community

Same as Option 2, but add NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_KEY to .env for live gallery. See DEVELOPMENT.md.

Option 4: Deploy Your Own

Deploy with Vercel

Option 5: CLI (Generate from Terminal)

# Use hosted API (no key needed)
bun run cli "describe a microservices auth flow"

# Or use local Gemini key
GEMINI_API_KEY=your_key bun run cli "create a sequence diagram for user login"

Option 6: MCP Server (AI Agent Integration)

Use ArchiGram from Cursor, Claude Desktop, or any MCP client. Exposes generate_diagram and get_diagram tools.

bun run mcp-server

Add to your MCP config (e.g. Cursor .cursor/mcp.json or Claude claude_desktop_config.json):

{
  "mcpServers": {
    "archigram": {
      "command": "bun",
      "args": ["run", "mcp-server", "--cwd", "/path/to/archigram.ai"]
    }
  }
}

Uses hosted API by default; set GEMINI_API_KEY for local generation.

Tech Stack

Technology Purpose
React 19 UI Framework
TypeScript Type Safety
Next.js 15 Build Tool & SSR
Tailwind CSS Styling
Google Gemini AI Generation
Mermaid.js Diagram Rendering
Supabase Community Database
Vercel Hosting

Documentation

Usage Examples

System Design

"Design a real-time chat application with WebSocket server,
message queue, presence service, and MongoDB"

Cloud Architecture

"AWS architecture with ALB, ECS Fargate, RDS Aurora,
ElastiCache, and S3 for static assets"

ML Pipeline

"ML training pipeline with data ingestion, feature store,
model training on GPU, experiment tracking, and model registry"

Microservices

"E-commerce microservices: API gateway, product catalog,
inventory, cart, checkout, payment processing, notifications"

Roadmap

  • AI diagram generation
  • Vision AI (image to diagram)
  • Architectural audit
  • Community gallery
  • PlantUML support
  • BPMN editor
  • Copy for Platform (GitHub, Notion, GitLab, VS Code)
  • C4 model templates
  • REST API (POST /api/v1/generate, GET /api/v1/diagrams/:id)
  • CLI tool (bun run cli "describe auth flow")
  • Dynamic OG images for link previews
  • User authentication
  • Real-time collaboration
  • GitHub integration
  • Team workspaces
  • MCP server for AI agent integration

See PRODUCT_VISION.md for the strategic vision and phased roadmap. Open issues for proposed features.

Contributing

We love contributions! See CONTRIBUTING.md for how to get started.

Good First Issues

Looking to contribute? Check out issues labeled good first issue or help wanted.

Quick Contribution Guide

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Community

Support the Project

If ArchiGram.ai helps you, consider supporting its development:

GitHub Sponsors Buy Me A Coffee

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgments


If ArchiGram.ai helps you, please give it a star!

Star this repo

Made with love by Timur Isachenko and contributors

About

Mermaid Online Tool

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors