Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Frontend
albertoarena/laravel-truss
cursor
database
migrations
schema
laravel
erd
introspection
mermaid
DBML
data-dictionary
er-diagram
database-diagram

Applies when touching the shipped dashboard frontend: the resources/js modules, resources/css/truss.css, or the Blade shell. Loaded on top of the root CLAUDE.md.

Install
php artisan boost:add-skill albertoarena/laravel-truss

Save this content to: .cursor/rules/frontend.md

# Frontend rules

Applies when touching the shipped dashboard frontend: the `resources/js` modules,
`resources/css/truss.css`, or the Blade shell. Loaded on top of the root
`CLAUDE.md`.

- **The Mermaid definition generator is client-side JavaScript** (`resources/js/mermaid-definition.js`), not PHP. The interactive filter, focus, and label pipeline runs in the browser with no refetch, so generation must live there too. Pure logic is unit-tested with Vitest; rendering and interaction are covered by Playwright.
- **The live demo lives in a separate repo and is release-gated.** The docs site (`albertoarena/laravel-truss-docs`, trussphp.com) runs this shipped frontend in its `/demo/` page. It fetches `resources/` from the package's **latest release tag** at build time, so a change here does not reach the live demo until a new release ships and the docs site rebuilds (preview unreleased frontend there with `PACKAGE_REF=main`). There is no demo page in this repo to edit. When a frontend change needs the demo's standalone page or sample schema updated, make that change in the docs repo, not here.
- **No build step, no CDN.** Frontend assets (JS/CSS, vendored Mermaid, fonts) are served from the package via the gated `{prefix}/assets/{file}` route. Keep them plain, self-contained, and CSP-safe (`script-src 'self'`); do not introduce a bundler or a CDN dependency. `TRUSS_MERMAID_URL` is the only opt-in to an external Mermaid.

Frontend rules

Applies when touching the shipped dashboard frontend: the resources/js modules, resources/css/truss.css, or the Blade shell. Loaded on top of the root CLAUDE.md.

  • The Mermaid definition generator is client-side JavaScript (resources/js/mermaid-definition.js), not PHP. The interactive filter, focus, and label pipeline runs in the browser with no refetch, so generation must live there too. Pure logic is unit-tested with Vitest; rendering and interaction are covered by Playwright.
  • The live demo lives in a separate repo and is release-gated. The docs site (albertoarena/laravel-truss-docs, trussphp.com) runs this shipped frontend in its /demo/ page. It fetches resources/ from the package's latest release tag at build time, so a change here does not reach the live demo until a new release ships and the docs site rebuilds (preview unreleased frontend there with PACKAGE_REF=main). There is no demo page in this repo to edit. When a frontend change needs the demo's standalone page or sample schema updated, make that change in the docs repo, not here.
  • No build step, no CDN. Frontend assets (JS/CSS, vendored Mermaid, fonts) are served from the package via the gated {prefix}/assets/{file} route. Keep them plain, self-contained, and CSP-safe (script-src 'self'); do not introduce a bundler or a CDN dependency. TRUSS_MERMAID_URL is the only opt-in to an external Mermaid.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
roundly-consulting/kubernetes-api-for-laravel
roundly-consulting/plausible-for-laravel
gvp/gvp-laravel-template
metasyncsite/laravel-metasync-client
roundly-consulting/onboarding-for-laravel
andydefer/laravel-notification
adachsoft/cli-process-tester
jhaskell13/laraflow
sebastienheyd/boilerplate-media-manager
ccast/tagixo-primix
pretendtrue/laravel-builder
sawmainek/laravel-scout-tntsearch-driver
tomshaw/laravel-calendar-table
dibakar/laravel-ownership
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo