fuelen/ecto_erd
50.8
Adequate · 15 November 2026
2.1k
lines of production code
Elixir
primary language
5
measurements over time
What this system is
Features
Expanded output format support and updated documentation
The tool now generates Entity-Relationship Diagrams in multiple formats beyond the default DOT, specifically adding support for PlantUML, DBML, QuickDBD, Mermaid, and D2. The README has been updated to reflect these new capabilities, showing example images for each format and clarifying that the default DOT output can be converted to images using Graphviz. Additionally, the internal examples generator script has been removed, likely replaced by local fixtures as indicated by the commit history, and the formatter configuration has been updated to include new directories.
(repo-wide) · high confidence
New D2, DBML, and Mermaid output formats added alongside DOT refactoring
Users can now generate Entity Relationship Diagrams in D2, DBML, and Mermaid formats in addition to the existing PlantUML and DOT outputs. The new D2 renderer uses the ELK layout engine for orthogonal edge routing and supports node clustering. The DBML renderer introduces support for enum definitions and primary key indicators. The Mermaid renderer adds support for field comments and restricts column customization to either showing default fields or hiding them entirely. The existing DOT renderer has been refactored to implement the Document behavior, now supports primary key indicators in table labels, and handles schemas with no fields gracefully.
lib/ecto/erd/document · high confidence
Support for multiple ERD output formats and enum configuration
The \mix ecto.gen.erd\ task now generates Entity Relationship Diagrams in PlantUML, DBML, QuickDBD, Mermaid, and D2 formats in addition to the existing DOT output. Users can select the desired format via the \--output-path\ file extension. The task also introduces \:enum\_values\_limit\ and \:enum\_values\_order\ configuration options to control how \Ecto.Enum\ field values are displayed and sorted in the generated diagrams.
lib/mix · high confidence
Behavioural changes
1 commit (0 fixes) modifying dev, examples, lib/ecto
A change to existing behaviour in dev, examples, lib/ecto — 1 commit, 18 files: “Unify SQL type rendering and support string type overrides (\#68)” (refs \#68). Also in this area: Replace legacy examples with local fixtures.
dev, examples · medium confidence · unverified
ERD generation refactored with new output formats and enum controls
The library has been restructured to support multiple ERD output formats (D2, DBML, Dot, Mermaid, PlantUML, QuickDBD) via a new \Ecto.ERD.Graph\ and \Ecto.ERD.Document\ architecture. Users can now control enum value rendering in the output using the \:enum\_values\_order\ and \:enum\_values\_limit\ options, which allow sorting and truncating the list of enum values displayed. Additionally, the system now warns instead of crashing when \belongs\_to\ or \embeds\ associations reference modules that are not Ecto schemas, and schema scanning now safely handles applications that fail to load their module lists.
lib/ecto/erd · high confidence
Test coverage
Added tests for ERD output formats and enum handling
Added test coverage for the Ecto ERD library, including a new test file to verify that committed example documents match local schemas. Updated existing tests to cover the new DBML and D2 output formats, verify primary key indicators in DOT output, and validate the new \enum\_values\_order\ and \enum\_values\_limit\ options across DOT, D2, PlantUML, and QuickDBD renderers.
test · high confidence
Dependencies
Upgrade Ecto dependency to 3.12+ and update dev tooling
The project now requires Ecto \~\> 3.12, dropping support for legacy types and aligning with recent Ecto changes. Additionally, the dev dependency ex\_doc has been upgraded (from \~\> 0.24 to the latest available in the lockfile, 0.40.3), and dialyxir has been added as a dev dependency (\~\> 1.0). The mix.lock file reflects significant version bumps for transitive dependencies including decimal (2.0.0 to 3.1.1), telemetry (1.0.0 to 1.4.2), and various makeup libraries.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 51 → 51 (+0.0)
- Rubric changed (rubric-2026.11.1 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 99 → 99 (-0.7)
- Architecture 100 → 100 (-0.0)
- Maturity 65 → 65 (+0.0)
- Readiness 38 → 38 (+0.1)
- Security 43 → 43 (+0.2)
Resolved (4)
- Duplicated block (17 lines × 3) (lib/ecto/erd/document/dbml.ex)
- Medium CVE: EEF-[CVE redacted] (mix.lock)
- Outdated: dialyxir
- Outdated: ex_doc
New (2)
- Edited copy of a member (18 corresponding lines) (lib/ecto/erd/graph.ex)
- Edited copy of a member (3 corresponding lines) (lib/ecto/erd/document/plantuml.ex)
Changes since last survey
- 5 commits — 5 feature/other, 0 fixes
By area
- (root) — 2 commits
- examples/sample_app — 1 commit
- lib/ecto — 1 commit
- lib/mix — 1 commit
Notable commits
- change: Bump version to 0.9.0
- change: Document type overrides
- change: Reject trailing newlines in Mermaid identifiers and types
- change: Unify SQL type rendering and support string type overrides (#68)
- change: Update deps
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
fuelen/ecto_erd was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit df7484e9f01c13355b79d90d7323ac11c655549a — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.73+preprod-52de90b74216.