{"id":21649454,"url":"https://github.com/abe-101/mermaid-to-django","last_synced_at":"2025-03-20T02:32:05.459Z","repository":{"id":263295919,"uuid":"889929100","full_name":"abe-101/mermaid-to-django","owner":"abe-101","description":"Convert Mermaid ER diagrams to Django models instantly","archived":false,"fork":false,"pushed_at":"2024-11-17T16:39:33.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T14:06:08.814Z","etag":null,"topics":["django","mermaid"],"latest_commit_sha":null,"homepage":"https://abe-101.github.io/mermaid-to-django/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abe-101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-17T15:48:35.000Z","updated_at":"2024-11-17T16:41:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"338b3853-050b-4a00-9f37-ecb08414a3d5","html_url":"https://github.com/abe-101/mermaid-to-django","commit_stats":null,"previous_names":["abe-101/mermaid-to-django"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-101%2Fmermaid-to-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-101%2Fmermaid-to-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-101%2Fmermaid-to-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-101%2Fmermaid-to-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abe-101","download_url":"https://codeload.github.com/abe-101/mermaid-to-django/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244538461,"owners_count":20468717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","mermaid"],"created_at":"2024-11-25T07:30:56.017Z","updated_at":"2025-03-20T02:32:05.421Z","avatar_url":"https://github.com/abe-101.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔄 Mermaid-to-Django\n\nConvert Mermaid ER diagrams to Django models instantly\n\n## 🌟 Features\n\n- Live preview of ER diagrams\n- Instant conversion to Django models\n- Supports common field types:\n  - Integer \u0026 Decimal fields\n  - String \u0026 Text fields\n  - Boolean fields\n  - Timestamps\n  - Choice fields with enums\n- Handles relationships and foreign keys\n- Generates model meta classes\n- Creates smart __str__ methods\n\n## 🚀 Usage\n\n1. Visit [https://abe-101.github.io/mermaid-to-django](https://abe-101.github.io/mermaid-to-django)\n2. Paste your Mermaid ER diagram in the left panel\n3. See the live preview update automatically\n4. Get your Django models in the right panel\n\n### Example Input\n\n```mermaid\nerDiagram\n    Product {\n        int id PK\n        string name\n        decimal price\n        text description\n        boolean is_active\n        type status\n        timestamp created_at\n        int category_id FK\n    }\n    Category {\n        int id PK\n        string name\n        timestamp updated_at\n    }\n    Product }|--|| Category : belongs_to\n```\n\n## 🛠️ Development\n\nTo run locally:\n\n1. Clone the repository\n2. Open `index.html` in your browser\n3. Make changes and refresh to see updates\n\n## 📄 License\n\nMIT License\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabe-101%2Fmermaid-to-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabe-101%2Fmermaid-to-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabe-101%2Fmermaid-to-django/lists"}