See your database
structure, live.
A scrollable, zoomable ER diagram of your real schema, rendered right inside your Laravel app. Structure only, never data.
$ composer require albertoarena/laravel-truss A real introspected schema, drawn in the browser. Structure only.
-
Live ER diagram
Your real schema, introspected from the live connection and drawn with Mermaid. No migration parsing, no Doctrine DBAL.
-
Focus mode
Click a table to see just it and its foreign-key neighbours, centred and highlighted, so large schemas stay legible.
-
Pan and zoom
Drag to pan, scroll or pinch to zoom, like a map. Auto-fits to a readable zoom, and a Fit button frames the whole thing.
-
Structure only
Only the CREATE TABLE shape: tables, columns, keys, indexes. No row data is ever read. Safe to gate and run in production.
-
Self-contained
Mermaid and fonts are vendored and served from the package. No CDN, so it works offline and under a strict CSP.
-
Cached, auto-rebuilt
The snapshot is cached and refreshed automatically after migrations run. A manual rebuild command is there too.
Free and open source. If it saves you time, a coffee at ko-fi.com/albertoarena or a star on GitHub keeps it moving. See where it is headed on the roadmap.