Convert Mermaid ER diagrams to Django models instantly
- Live preview of ER diagrams
- Instant conversion to Django models
- Supports common field types:
- Integer & Decimal fields
- String & Text fields
- Boolean fields
- Timestamps
- Choice fields with enums
- Handles relationships and foreign keys
- Generates model meta classes
- Creates smart str methods
- Visit https://abe-101.github.io/mermaid-to-django
- Paste your Mermaid ER diagram in the left panel
- See the live preview update automatically
- Get your Django models in the right panel
erDiagram
Product {
int id PK
string name
decimal price
text description
boolean is_active
type status
timestamp created_at
int category_id FK
}
Category {
int id PK
string name
timestamp updated_at
}
Product }|--|| Category : belongs_to
To run locally:
- Clone the repository
- Open
index.html
in your browser - Make changes and refresh to see updates
MIT License
Contributions are welcome! Please feel free to submit a Pull Request.