Changelog¶
All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased¶
Added¶
- erdify-studio logo (icon, light/dark wordmarks, favicon) on the docs site, in the README
and as the studio UI's favicon, plus brand guidelines (
docs/brand.md). Documentationproject URL (PyPI sidebar) pointing at the docs site.
Changed¶
- The docs site moved to https://erdify-studio.devsuit.io/.
- The studio UI uses the devsuit palette of
docs/brand.md(buttons, banners; periwinkle in dark mode) and shows the studio icon in the header. The diagram keeps its colours, so the canvas still matches the SVG export and exported SVGs don't change.
0.1.0 - 2026-11-23¶
Added¶
- Documentation site (MkDocs Material, GitHub Pages): installation, quickstart, the
canvas,
checkin CI and pre-commit,place --auto,export, configuration and the layout file. - Live reload: studio re-parses the project about every second (slower for large
projects) and the canvas follows model edits without losing unsaved positions — new
tables are placed next to the arrangement and marked NEW, removed ones disappear,
resized boxes keep their place. A model file that can't be loaded keeps the last good
diagram with an error banner; a layout file changed on disk is reported. New routes
GET /api/statusandPOST /api/diagrams; a 409 carriesreason(modelsorlayout). erdify-studio export [path]: writes every diagram as SVG to[tool.erdify-studio] export_dir—overview.svgandgroups/<group>.svg— in studio's light theme on a white background, byte-identical on every machine. Stalegroups/*.svgare deleted, nothing else inexport_diris touched; two groups that would share a file are an error. Exits 1 while the layout file is out of date.- With
export_dirset,checkalso reports missing, outdated and stale SVGs, and Save in studio writes them; studio shows when they are out of date, and a failed export after a save is reported without losing the saved layout. - Download SVG in studio's toolbar: the open diagram as SVG with the positions on
screen, without
export_dirand without writing a file (POST /api/svg). - Group diagrams in the canvas: a list switches between the overview and one diagram
per group. A group diagram shows its entities, the enums they use and greyed-out,
name-only foreign boxes for connected entities of other groups; clicking one opens
its group. Positions are kept per diagram, and one Save writes every diagram. Edges
between two foreign boxes are not drawn. The API serves every diagram at
GET /api/diagrams(replacing/api/overview), andPUT /api/layouttakes{"revision", "diagrams"}. - Entities that would share a layout key are keyed by erdify's entity name instead of
being refused: same-name model classes in different modules, which erdify draws as
module.Class(erdify#367), and several classes of one table. A unique key is unchanged;DuplicateKeyErrorremains for a name key that equals another entity's key. erdify-studio [path](alsoerdify-studio open, with--portand--no-browser): serves the overview diagram on 127.0.0.1 and opens it in the browser. Boxes show the fields erdify shows and erdify's edges with crow's-foot ends; dragging a box moves its edges and marks the diagram unsaved; Save (or Ctrl/⌘+S) writes whatplace --autowould write with the arranged overview, socheckpasses. Unplaced boxes are placed likeplace --autoand marked NEW until saved. A layout file changed since the page loaded is never overwritten (409, reload). The API needs a per-run token and checksHost/Origin; the built page loads nothing from the network (scripts/check_static.pyin CI).- Requires erdify 1.9.0: the enums erdify draws (
erdify.enum_users), same-name tables in different schemas, schema-qualified foreign keys and same-name model classes in different modules (module.Class, erdify#367) are laid out exactly as erdify draws them. - Package scaffold:
pip install erdify-studioinstalls theerdify-studiocommand (--help,--version) with erdify as a dependency;erdify-studio[sql]pulls inerdify[sql]. The browser frontend is built in CI and shipped inside the wheel, so no Node is needed on the user's machine. - The layout file (
erdify-layout.json): entity positions per diagram, sorted with one entry per line, integer positions and a trailing newline, so the same layout always writes the same bytes. Entities are keyed byschema.table(ortable), enums byenum:<name>, so a renamed class keeps its position; two entities with the same key are an error naming both. A file of an unknownversionis refused and never overwritten, and neither is a file that is not a valid layout (e.g. with git conflict markers): its positions would be lost. Python API:Layout,Position,load_layout/loads_layout,save_layout/dumps_layout,entity_key,entity_keys,enum_key,entity_groups,load_config,StudioConfig,GroupBy, the diagram namesOVERVIEW/DEFAULT_GROUP,LAYOUT_VERSION, and the errorsStudioError,ConfigError,LayoutError,LayoutVersionError,DuplicateKeyError. erdify-studio check [path]: exits 1 with one line per problem when an entity or a foreign box (an entity of another group connected by an edge, in either direction) has no position in its diagram, the layout file has stale entries or diagrams, or the layout file is missing or empty; the last line suggestserdify-studio place --auto. Exits 0 without output when the layout is up to date, 2 when the project, config, a model file or the layout file cannot be read, or erdify finds no entities (unlessallow_empty), and on an internal error (with its traceback). Every enum erdify draws needs a position on the overview and on the group diagrams of the entities using it (problem kindenum); a layout without them failscheckonce,erdify-studio place --autoadds them. A pre-commit hookerdify-studio-checkruns it. Python API:check_project,Problem,ProblemKind,ProjectError.erdify-studio place --auto [path]: gives every entity and foreign box without a position one next to a placed box it is connected with (right, below, left or above), else the first free slot of a grid right of the diagram; placed boxes never move. Drops stale entries and diagrams, places enums next to an entity using them, and creates the layout file with every diagram when there is none. Deterministic: the same input gives the same bytes, the file is only written when something changed, andcheckpasses afterwards. Python API:place_project,PlaceResult.[tool.erdify-studio]inpyproject.toml:layout(defaulterdify-layout.jsonnext to thepyproject.tomlerdify resolves, else the working directory),group_by(auto|schema|app|module|none) andexport_dir.