Diagrams as text, powered by AI.
Write in Mermaid, PlantUML, D2 or DBML —or sketch freehand—, ask the AI for changes with your own API key, and keep everything in projects you can export, share and publish to the Community.
Everything you need
- 4 diagram languages — Mermaid 12, PlantUML, D2 and DBML with configurable themes, styles and backgrounds.
- Freehand whiteboard — Hand-drawn sketches you can turn into Mermaid.
- AI with your API key — Five providers, a context-aware chat, fixes and conversion between languages.
- Diagram from an image — A whiteboard photo, a screenshot or a sketch becomes editable code.
- Community — Publish your diagrams, browse other people's, star them and fork them.
- Projects & folders — VS Code-style explorer with drag and drop, favorites and shortcuts.
- Search in the content — Find diagrams by their code or description, with the match highlighted.
- Export & import — PNG, SVG, PDF, Markdown, and whole projects as ZIP or PDF. No lock-in.
- Share, embed & present — Links with access codes, iframes, QR codes and folder presentations.
- API Keys — Automate from scripts, CI or AI agents with per-area permissions.
- Serious security — MFA (TOTP app or email), Google sign-in, lockout after failed attempts and audit log.
- Spanish & English — Interface, emails and AI replies in your language.
Simple pricing
Every feature on every plan. Only the number of projects and private diagrams changes; what you publish to the Community doesn't count.
FAQ
What is DiagramaHub?
A platform to create, organize and export diagrams written as text (Mermaid, PlantUML, D2 and DBML), plus a freehand whiteboard. It's available as Cloud (SaaS) or Self-host (on your infrastructure).
What's the difference between Cloud and Self-host?
Cloud is our ready-to-use SaaS at app.diagramahub.com. Self-host is the same open-source software installed on your infrastructure, with full control over data, plans and payments.
How does the AI work?
You connect your own API key from OpenAI, Anthropic, Google Gemini, DeepSeek or MiniMax and pick a model. From the chat you generate diagrams, explain, improve, fix or convert them to another language, and "From image" turns a photo or a sketch into code (with image-reading models from Gemini, OpenAI or Claude). The key is stored encrypted.
Does the AI cost extra?
Not with us. You use your own API key and pay your provider directly for what you use.
What can I export and import?
Export any diagram to PNG (1x, 2x or 3x), SVG, PDF or Markdown, and whole projects or folders to a ZIP, a PDF or a Markdown file that gives an AI context. Import .mmd, .puml, .d2, .dbml, Markdown, ZIP and Excalidraw files.
Are my diagrams locked into DiagramaHub?
No. Your diagrams are text: export a whole project at any time and take it to another tool or to your repository.
Can I share diagrams with others?
Yes. Create a public link or one protected with an access code, expiring in 5, 10 or 30 days or never, and decide whether recipients can copy the source code. You can also embed it in another site with an iframe, share it with a QR code or publish it to the Community.
What is the Community?
A public portal where you publish your diagrams (with a category and tags) and browse other people's without an account. You can star them, comment on them and fork them into your project; every fork links back to its original. Everything published is public under the CC BY 4.0 license.
Do public diagrams count toward my plan's limit?
No. In the Cloud, your plan's limit counts only your private diagrams: the ones you publish to the Community free their slot, and you can publish as many as you like. To make one private again you need room for one more private diagram, and if you ever end up over the limit nothing is deleted or locked: you just can't create new private diagrams until you're back under it.
Can I use DiagramaHub from scripts or AI agents?
Yes, with API Keys. Each key has per-area permissions (projects, diagrams, sharing, Community and AI) and an optional expiry. The docs include cURL, JavaScript and Python examples, plus a "Copy for AI" button that hands the whole API context to an agent like Claude or Codex.
What security measures are in place?
MFA with a TOTP app or email plus recovery codes, Google sign-in, lockout after failed attempts, rate limiting, security headers and an audit log with 90-day retention. Every change goes through CI with CodeQL, dependency audits and image scanning, plus Snyk.
How easy is it to self-host?
One command installs and configures everything with Docker Compose. On first launch, a wizard guides you through the initial setup.
Can I customize plans when self-hosting?
Yes. Define your own plans, prices and limits, with Stripe built in and an architecture ready for other payment providers.
Is it production-ready?
DiagramaHub is in beta (v0.x) because it moves fast: we ship improvements almost every week. Some APIs and data structures may still change between versions, and every change is documented in the release notes. The security controls that already protect your account are listed in the Trust Center.
Does it support real-time collaboration?
Not yet; it's on our roadmap. Today you can share diagrams via links and exports.