Laravel Truss

Live ER diagram of a Laravel app's database, with schema diff and a doctor

Image 1 of 1: Zoomable ER diagram of a database in the blueprint theme

A Laravel package that scans the live schema into a zoomable Mermaid ER diagram inside the app, with focus on a table and its neighbors, exports to PNG, SVG, JSON, DBML or a compact format for coding agents, a diff since the last migration, and a doctor for missing keys and indexes.

Trade-offs

  • It reads structure only, tables, columns, keys and indexes, and never queries rows, so it can run against a real database without exposing data, but says nothing about what the data looks like.
  • Mermaid and fonts are vendored and served from the package, so it works offline and under a strict Content-Security-Policy, in exchange for shipping those assets itself.

Q&A1

It keeps a cached snapshot of the schema that is rebuilt automatically after migrations, and the diff panel shows what changed since the last one.

Reviews

Loading reviews

    More in PHP

    See all 7 →
    • FamilyWellA shared home for a family's lists, calendar, spending and car
    • EverShelfSelf-hosted pantry manager with barcode scanning, expiry alerts and AI recipes
    • NightOwl AgentSelf-hosted Laravel monitoring that drains Nightwatch telemetry into Postgres
    • PasirPHP application server in Rust that embeds PHP behind its own HTTP server
    • OpenKOSSelf-hosted property management for boarding houses, apartments and rentals
    • CortenDeskSelf-hosted RustDesk server and admin console in one container

    More in Developer tools

    See all 88 →
    • EpuppBrowser extension that opens a live ClojureScript REPL into any web page
    • ResonanceA local-first API client with no account, collections kept as YAML files
    • PandiaDesktop JSON editor for multi-gigabyte files, with the document held in Rust
    • PandaWardLocal application security assessment that reports what it couldn't decide
    • ScalexScala code navigation for coding agents, from source and without a build
    • polyOne Rust binary that lints and formats about 30 languages

    More in Database internals

    See all 29 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • SNKVEmbedded key-value store built directly on SQLite's B-tree
    • RuvioRust key-value server that speaks RESP, with locks and queues as commands
    • musqlSQLite-compatible SQL engine on columnar storage and a JIT
    • EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads