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) and SVG export 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
  • 🗂️ 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
  • 🔄 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.0
    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

🔄 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.0

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.0
File Size Uploaded Provenance Actions
erdify_studio-0.2.0.tar.gz 1.4 MB Without provenance Details for erdify_studio-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.8 MB

Release files / erdify_studio-0.2.0.tar.gz

Download URL erdify_studio-0.2.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
2fbf4c9e755ba91adf0d78b52d810c698a5e3fe9baaa5b87368c7faadfef86eb
BLAKE2b-256 checksum
How to use checksums
2239af19c9671c13655cf394b1b6bb3adc0250135495787943d99f469ea335dc
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.0-py3-none-any.whl

Download URL erdify_studio-0.2.0-py3-none-any.whl
Size 440.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7207463295c6ae49478acbf00d0224a1e4086d67efe219bee932206d002106ed
BLAKE2b-256 checksum
How to use checksums
2d5779463710fbf42a5fd1ae7bf0427751950790675269ee95511d9e38a30af4
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.0

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