Skip to main content

erdify studio

PyPI version Python versions License: MIT Tests Coverage Docs

🎨 Arrange your erdify ERDs by drag and drop, commit the layout, and keep it in sync in CI!

erdify generates ERDs from your code (SQLModel, SQLAlchemy, Django, Pydantic, dataclasses, SQL DDL), always auto-laid-out. erdify-studio adds a hand-made layout that survives schema changes and is shared through git: erdify-studio check keeps it in sync with your models, the same way erdify --check keeps a committed diagram in sync. No Node, no database, no browser engine needed.

Dragging tables in erdify-studio: the edges follow, then Save writes the layout file

Status: alpha. check, place --auto, the canvas (overview and group diagrams, live reload, the Colours panel), SVG export and configurable diagram colours work. The layout file format is versioned; the Python API and the HTTP API between the canvas and the server may still change before 1.0.

✨ Features

  • 🖱️ Drag & Drop Canvas - Arrange the diagrams in your browser; the edges follow, Ctrl/⌘+S saves, Download SVG grabs the diagram on screen
  • 🗂️ Group Diagrams - An overview plus one diagram per schema, Django app or module, linked by foreign boxes
  • 💾 Layout in Git - One JSON file next to your code, keyed by schema.table, so renaming a class keeps its position
  • ✅ Drift Check - erdify-studio check fails CI/pre-commit when a table has no position or the layout holds stale entries
  • 📍 Auto-Place - place --auto puts new tables next to related ones and never moves a placed box
  • 🖼️ SVG Export - Byte-identical SVGs per diagram for your README and docs; check flags stale ones
  • 🎨 Your Brand's Colours - Set every diagram colour in [tool.erdify-studio.colors], try them live in the canvas's Colours panel and copy them as TOML
  • 🔄 Live Reload - Edit your models and the canvas follows within about a second; unsaved drags are never lost
  • 🧬 erdify's Own Model - Every framework erdify reads, with erdify's entities and edges, never a re-implementation
  • 🔒 Local Only - Served on 127.0.0.1 with a per-session token; no CDN, fonts and icons ship in the wheel

🤔 Why erdify-studio?

erdify alone Drawn by hand (draw.io, Excalidraw, …) erdify-studio
Diagram comes from your code Yes No Yes, via erdify
Your own arrangement No, auto layout Yes Yes
Follows schema changes Yes No, redraw by hand Yes: new tables placed, removed ones dropped
Reviewable in git PlantUML / Mermaid text An editor file JSON positions + SVGs
CI drift gate --check No check

studio stores positions only. Boxes, fields and edges always come from erdify, so the diagram can't drift from your models, and a schema change never breaks your arrangement.

🚀 Quick Start

# Run without installing (or `pip install erdify-studio`; `erdify-studio[sql]` for SQL DDL)
uvx erdify-studio ./src            # open the canvas, drag, save
uvx erdify-studio check ./src      # in CI: exit 1 if the layout is out of date
uvx erdify-studio place --auto     # place new tables without the canvas
uvx erdify-studio export           # write one SVG per diagram to export_dir

Keep the layout in sync on every commit with pre-commit:

repos:
  - repo: https://github.com/devsuit-berlin/erdify-studio
    rev: v0.2.1
    hooks:
      - id: erdify-studio-check
        args: [./src]                               # optional, default: .
        # additional_dependencies: ['erdify[sql]']  # for SQL DDL

Options come from erdify's [tool.erdify] in pyproject.toml, plus:

[tool.erdify-studio]
layout = "docs/erd/erdify-layout.json"   # default: erdify-layout.json next to pyproject.toml
group_by = "auto"                        # auto | schema | app | module | none
export_dir = "docs/erd"                  # optional; omitted = no committed SVGs

[tool.erdify-studio.colors]              # optional: your brand (nine keys, see the docs)
accent = "#4150aa"
header = "#192346"

🔄 How It Fits Together

flowchart LR
    models["Your models<br/>SQLModel · SQLAlchemy · Django<br/>Pydantic · dataclasses · SQL"] -->|erdify| canvas["erdify-studio<br/>canvas"]
    canvas -->|Save| layout[("erdify-layout.json")]
    canvas -->|Save / export| svgs["SVGs in export_dir"]
    models --> check{{"erdify-studio check<br/>CI · pre-commit"}}
    layout --> check
    svgs --> check

📚 Documentation

💬 Community

Questions, ideas, or a layout you're proud of? Join the Discussions. Concrete bugs and proposals go to Issues.

🤝 Contributing

Contributions are welcome! Please open an issue for bugs or feature requests, and see CONTRIBUTING.md for guidelines. Shipped changes are tracked in the changelog.

🔒 Security

For security concerns, please see SECURITY.md.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

erdify-studio stands on the shoulders of great open-source projects:

Diagrams

  • erdify - Reads your models and draws the entities and edges studio arranges

Canvas

Tooling & infrastructure

Community


Created & maintained with ❤️ by devsuit GmbH

Metadata

Release files for erdify-studio 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for erdify-studio 0.2.1
File Size Uploaded Provenance Actions
erdify_studio-0.2.1.tar.gz 1.4 MB Without provenance Details for erdify_studio-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for erdify-studio 0.2.1
File Interpreter ABI Platform Actions
erdify_studio-0.2.1-py3-none-any.whl Python 3 none any Details for erdify_studio-0.2.1-py3-none-any.whl

Total release size: 1.8 MB

Release files / erdify_studio-0.2.1.tar.gz

Download URL erdify_studio-0.2.1.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
31a0ccc40b88afcd9669916b65740c82966917376f7e448ccfd3e98ca0f5a0ca
BLAKE2b-256 checksum
How to use checksums
457c67b380e33b6233a9c49961a96d238ae398a459f73595a791cd7cad48099a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / erdify_studio-0.2.1-py3-none-any.whl

Download URL erdify_studio-0.2.1-py3-none-any.whl
Size 440.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aee05399765c93f510d3625ba995cf1c3f034fbe73413af9d88a4e08bf161dbf
BLAKE2b-256 checksum
How to use checksums
f6dd9dad231130b2105539b98cbd7d9d979761f9b55f7c2743e079ab7e5f157b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for erdify-studio 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page