SchemaSpy analyzes database metadata and generates HTML reports with entity-relationship diagrams. It is a standalone command-line tool with JDBC database support.
Overview
SchemaSpy is a database metadata analyzer that helps administrators and developers visualize and navigate a data model. It produces an HTML-based report so teams can browse an entity-relationship diagram without manual drawing.
Installation is a standalone application without a GUI: you download a JAR or Docker image and run it against a database, optionally via Maven-published artifacts. The quick start walks through pointing SchemaSpy at PostgreSQL with a JDBC driver and opening DIRECTORY/index.html in a browser. Many database types are supported out of the box, with -dbhelp listing options and custom JDBC drivers allowed.
Reports can be refreshed on demand or wired into CI/CD so diagrams stay current. SchemaSpy can summarize structural statistics, export figures for analysis, and flag anomalies such as missing indexes, implied relationships, and orphan tables. Because it reads schema metadata only, it can run against an empty replica when sharing documentation externally.
Documentation and troubleshooting guides are hosted on Read the Docs. The project site describes generating HTML documentation including ER diagrams from an existing database as an ongoing process rather than a one-off chore.
Key features
- HTML schema documentation
- Entity-relationship diagrams
- JDBC database connectivity
- Docker and JAR distribution
- Schema anomaly detection
- Statistics export to CSV or Excel
- CI-friendly regeneration
- Maven artifact distribution
Use cases
- On-demand schema documentation
- ER diagrams without manual drawing
- Database design reviews
- Sharing schema reports safely
- CI pipeline schema snapshots