rsc-kit/laravel
RSC Kit for Laravel brings server-driven component workflows to Laravel applications, with streamlined setup, routing, and rendering for reusable UI that keeps logic on the backend and cuts client-side JavaScript. Build faster, lighter interfaces while staying in familiar Laravel patterns.
Rsc::refuse(), added in v0.15.5, lets a server component decline to render its normal branch and hand structured data back to the page. That turns "you can't have this / it isn't ready" into a designed UI state with context, rather than a thrown exception, a redirect, or an empty screen.Adopt when:
Look elsewhere when:
To executives: This package lets us render React pages from Laravel on the server, so one codebase and one deploy cover both frontend and backend. The latest release adds a "refuse with data" primitive: when a user can't see something, a page can decline and return the reason plus whatever the UI needs to explain it. That directly lowers the cost of building permission walls, paywalls, and onboarding gates we currently hand-roll per feature — the same work, once, instead of N times.
To engineering: It's an RSC integration for Laravel. Rsc::refuse() is a control-flow primitive that is neither an exception nor a redirect — the server component short-circuits with a typed payload for the page to render. Recommended posture: pin the version, wrap it behind a thin internal adapter so we own the seam, and treat 0.x as pre-stable. That gives us the capability now without coupling product code to upstream churn.
How can I help you explore Laravel packages today?