AHS12/thoth-blueprint
AHS12/thoth-blueprint has 625 GitHub stars and 53 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-10 03:38 UTC. Last push 2026-08-12.
Design databases the way you think. Create unlimited schemas, import existing designs, visualize relationships, export to multiple formats, and generate framework migrations. Offline-first, local by default, with optional cloud or local AI.
What you can do
- 🎨 Visual Database Design - Intuitive drag-and-drop interface for creating database schemas
- 🧩 Complete DBML Workflow - Import DBML, edit/write DBML in a dedicated editor with diagram sync, and export back to DBML
- 📇 Dedicated Index Manager - Create, edit, search, and delete table indexes, including unique and composite indexes
- 🔄 Multiple Export Formats - Export to SQL, DBML, JSON, SVG
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalThoth Blueprint
Design databases the way you think.
Create and evolve unlimited database schemas with a visual drag-and-drop editor. Start from scratch or import an existing SQL, DBML, or JSON schema, then shape your database visually, see relationships at a glance, or get help from the built-in Schema Assistant.
Export your designs to SQL, DBML, JSON, SVG, or PNG, or generate migrations for Laravel, TypeORM, and Django.
Use your own Gemini or OpenRouter key, or run AI models locally with Ollama and LM Studio.
Offline-first. Local by default. Your schema stays yours.
Features
- 🎨 Visual Database Design - Intuitive drag-and-drop interface for creating database schemas
- 🧩 Complete DBML Workflow - Import DBML, edit/write DBML in a dedicated editor with diagram sync, and export back to DBML
- 📇 Dedicated Index Manager - Create, edit, search, and delete table indexes, including unique and composite indexes
- 🔄 Multiple Export Formats - Export to SQL, DBML, JSON, SVG
- 🚀 Framework Migration Generation - Generate migration files for Laravel, TypeORM, and Django
- 🔧 Offline First - Work on your diagrams anytime, anywhere, with or without an internet connection
- ⚡ No Limits - Create and manage as many diagrams as you need, with no restrictions
- 🔐 Your Data is Yours - All your data is stored locally on your computer, ensuring complete privacy
- 📱 Progressive Web App - Install as an app on your device for a native-like experience
- 📝 Notes & Zones - Add notes and organize tables in zones for better diagram management
- 💾 Checkpoint - Save and restore diagram snapshots so you can safely experiment and roll back changes
- 🔒 Zone Lock/Unlock - Lock zones to prevent accidental modifications
- 📋 Copy/Paste - Easily duplicate tables and elements
- ⌨️ Keyboard Shortcuts - Speed up your workflow with keyboard shortcuts
- 🤖 BYOK AI Assistant - Use your own Google Gemini or OpenRouter key to manage schemas with a diagram-aware assistant.
- 🛡️ Local AI Assistant - Connect to local models through Ollama and LM Studio without sending diagram data to a cloud provider.
Quick Start
Prerequisites
- Node.js 20+
- pnpm (recommended) or npm
Development Setup
Clone the repository
git clone https://github.com/AHS12/thoth-blueprint.git cd thoth-blueprintInstall dependencies
pnpm installStart development server
pnpm dev
Production Build
Build for production
pnpm buildPreview production build
pnpm preview
Docker Deployment
Alternatively, you can run ThothBlueprint using Docker for easy deployment:
Build and run with Docker
docker build -t thothblueprint . docker run -d -p 8080:80 --name thothblueprint thothblueprintOr use Docker Compose
docker-compose up -d
ThothBlueprint will be available at http://localhost:8080
Usage
- Create a new diagram - Click the "New Diagram" button to start a new database design
- Add tables - Drag table components from the sidebar or right-click to add new tables
- Define columns - Click on tables to add and configure columns with appropriate data types
- Create relationships - Drag from one table to another to create relationships
- Organize with zones - Create zones to group related tables and lock them to prevent changes
- Add notes - Add notes to document your database design decisions
- Export your design - Use the export functionality to generate SQL, DBML, JSON, SVG, or framework migrations
Advanced Features
Notes & Zones
ThothBlueprint allows you to organize your database diagrams using zones and notes:
- Add Notes - Document your design decisions by adding notes to your diagram
- Create Zones - Group related tables together in zones for better organization
- Lock/Unlock Zones - Lock zones to prevent accidental modifications to tables within them
- Add Elements to Zones - Right-click within a zone to add new tables or notes directly to that zone
Copy/Paste Functionality
Speed up your workflow by copying and pasting elements:
- Copy Tables/Notes - Select one or more tables or notes and copy them (Ctrl+C/Cmd+C)
- Paste Elements - Paste copied elements at your cursor position (Ctrl+V/Cmd+V)
- Duplicate Elements - Quickly duplicate tables with all their column definitions
Keyboard Shortcuts
ThothBlueprint includes a dedicated Keyboard Shortcuts dialog with the complete,
up-to-date shortcut list. Open it from Help Center → Keyboard Shortcuts or the
editor menu's View Shortcuts action. The same shortcuts are listed compactly below
(Ctrl becomes Cmd on macOS):
| Command | Shortcut | Command | Shortcut |
|---|---|---|---|
| Add Table | Ctrl/Cmd + A |
Toggle Sidebar | Ctrl/Cmd + B |
| Undo Delete Table | Ctrl/Cmd + Z |
Copy Selection | Ctrl/Cmd + C |
| Paste Selection | Ctrl/Cmd + V |
Select Multiple Nodes | Ctrl/Cmd + Click |
| Pan Canvas (hold) | Space |
Delete Table, Notes, Zones | Delete |
| Zoom In | Ctrl/Cmd + + or Ctrl/Cmd + = |
Zoom Out | Ctrl/Cmd + - |
| Reset Zoom | Ctrl/Cmd + 0 |
AI Schema Assistant
The schema assistant supports Google Gemini and OpenRouter. Open the assistant's settings button to manage encrypted, browser-local provider keys. OpenRouter models are loaded from its live catalog, and favorites are kept at the top of the model picker. Chat history is stored locally per diagram, with a fresh-chat action available in the assistant header.
Ollama and LM Studio are also supported for local, keyless AI. Configure their
local server URL in the assistant settings and select any model exposed by the
server. Ollama may require OLLAMA_ORIGINS, while LM Studio requires CORS to be
enabled in its Developer server settings.
The assistant can create, rename, update, and delete tables and columns; create, update, and delete indexes; edit table and column comments; and create, update, or delete relationships. Operations are streamed for progress, validated with Zod, simulated against a clone, and committed atomically. If a patch is rejected, the assistant receives the validation error and can repair it automatically.
Contributing
Please see our Contributing Guide for details on how to contribute to this project.
License
This project is open source and available under the GNU General Public License v3.0. Please see License File for more information.
Explore related projects
Asabeneh/30-Days-Of-Python
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,486 starsgrafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
77,790 starsredis/redis
For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
77,332 starsapache/superset
Apache Superset is a Data Visualization and Data Exploration Platform
75,455 stars