PHPackages                             albertoarena/laravel-truss - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. albertoarena/laravel-truss

ActiveLibrary[Database &amp; ORM](/categories/database)

albertoarena/laravel-truss
==========================

A live database structure viewer for Laravel. Renders your schema (never data) as a scrollable, zoomable ER diagram.

v1.1.0(today)115↑2700%MITJavaScriptPHP ^8.3CI passing

Since Jul 23Pushed todayCompare

[ Source](https://github.com/albertoarena/laravel-truss)[ Packagist](https://packagist.org/packages/albertoarena/laravel-truss)[ Docs](https://github.com/albertoarena/laravel-truss)[ RSS](/packages/albertoarena-laravel-truss/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

Laravel Truss
=============

[](#laravel-truss)

  ![Laravel Truss — see your database structure as a live, zoomable ER diagram](art/cover-light.png)[![Documentation](https://camo.githubusercontent.com/d128886082caad3ea7c59a91d338cccc0b1ce3ccc1378b45b9c3e4519d8597fb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d776562736974652d3266366665623f7374796c653d666c61742d737175617265)](https://albertoarena.github.io/laravel-truss)[![Latest Version on Packagist](https://camo.githubusercontent.com/9f87fc3dbd33ac86a4196bf32201758cc512118fd3c5327588120cfc1ef8cfa5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c626572746f6172656e612f6c61726176656c2d74727573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/albertoarena/laravel-truss)[![Tests](https://camo.githubusercontent.com/382a3727093abb7887591aba3f440b84dc5a74e39f39630715544135cdc58451/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616c626572746f6172656e612f6c61726176656c2d74727573732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/albertoarena/laravel-truss/actions/workflows/run-tests.yml)[![License](https://camo.githubusercontent.com/10e85a5778fe7601504a17ecd18dfa7097f473186b0f947bc10db2d3e4f530e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d7265642e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Laravel Truss is a live database structure viewer. It scans your live schema and renders it as a scrollable, zoomable ER diagram right inside your app, so you can see how the tables actually connect without opening a DB client. It reads **structure only** (tables, columns, keys, indexes); row data is never queried or exposed.

**[Try the live demo](https://albertoarena.github.io/laravel-truss/demo/)** to pan, zoom, focus, and export a sample schema in your browser, no install needed.

Features
--------

[](#features)

- Live ER diagram of your database, rendered with Mermaid.
- Focus mode: a table and its foreign-key neighbours, centred and highlighted.
- Filter by table name, and toggle native types against Laravel-style labels.
- Map-style pan and zoom, with auto-fit and a Fit button.
- Light and dark "blueprint" theme.
- Self-contained: Mermaid and fonts are vendored and served from the package, so it works offline and under a strict Content-Security-Policy (no CDN).
- Cached snapshot, rebuilt automatically after migrations.

Documentation
-------------

[](#documentation)

Full documentation is at **[albertoarena.github.io/laravel-truss](https://albertoarena.github.io/laravel-truss)**.

- [Installation](https://albertoarena.github.io/laravel-truss/getting-started/installation/)
- [Quick start](https://albertoarena.github.io/laravel-truss/getting-started/quick-start/)
- [Authorization](https://albertoarena.github.io/laravel-truss/guides/authorization/)
- [Configuration reference](https://albertoarena.github.io/laravel-truss/reference/configuration/)

Installation
------------

[](#installation)

For local use, install Truss as a dev dependency:

```
composer require albertoarena/laravel-truss --dev
```

To run Truss gated on staging or production, install it as a **regular dependency** instead. Dev dependencies are excluded from `composer install --no-dev` builds, so a `--dev` install never reaches a production deploy and `/truss` returns 404 there:

```
composer require albertoarena/laravel-truss
```

Requires **PHP 8.3+** and **Laravel 12+**. The service provider is auto-discovered, so there is nothing to publish to get started.

Quick start
-----------

[](#quick-start)

By default Truss is enabled in the `local` environment only. Start your app and visit:

```
/truss

```

To use Truss in a non-local environment you must both enable it and authorize the viewers. See [Authorization](https://albertoarena.github.io/laravel-truss/guides/authorization/).

Security
--------

[](#security)

Truss exposes structure only and never queries row data. Access is protected by the fixed `viewTruss` gate. If you discover a security issue, please email  rather than opening a public issue.

Contributing
------------

[](#contributing)

Contributions are welcome. Feel free to fork, improve, and open a pull request.

License
-------

[](#license)

The MIT License (MIT). See [LICENSE](LICENSE).

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance100

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

0d ago

Major Versions

v0.3.0 → v1.0.02026-07-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed727b9cf4356b9a50c806a543eed4942cba0854795ac8d1430006e6e6d3be47?d=identicon)[albertoarena](/maintainers/albertoarena)

---

Top Contributors

[![albertoarena](https://avatars.githubusercontent.com/u/1126630?v=4)](https://github.com/albertoarena "albertoarena (44 commits)")

---

Tags

databasedatabase-schemadeveloper-toolsentity-relationship-diagramer-diagramintrospectionlaravellaravel-packagemermaidphpschematelescopelaravelschemadatabasemermaidintrospectioner diagram

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/albertoarena-laravel-truss/health.svg)

```
[![Health](https://phpackages.com/badges/albertoarena-laravel-truss/health.svg)](https://phpackages.com/packages/albertoarena-laravel-truss)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M12.2k](/packages/illuminate-database)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

813336.8k3](/packages/defstudio-telegraph)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

213427.0k2](/packages/wnx-laravel-backup-restore)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.6k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
