rsc-kit / laravel-starter-kit
Laravel's React starter kit on React Server Components: auth, settings, two-factor and passkeys, rendered by rsc-kit.
Package info
github.com/rsc-kit/laravel-starter-kit
Language:TypeScript
Type:project
pkg:composer/rsc-kit/laravel-starter-kit
Requires
- php: ^8.3
- laravel/chisel: ^0.1.0
- laravel/fortify: ^1.37.2
- laravel/framework: ^13.17
- laravel/tinker: ^3.0
- rsc-kit/laravel: ^0.31.1
Requires (Dev)
- fakerphp/faker: ^1.24
- larastan/larastan: ^3.9
- laravel/pail: ^1.2.5
- laravel/pao: ^1.0.6
- laravel/pint: ^1.27
- laravel/sail: ^1.53
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.9.3
- phpunit/phpunit: ^12.5.23
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Laravel's React starter kit, with its pages rendered as React Server Components by rsc-kit instead of Inertia.
Everything upstream's kit does is here: registration, login, email
verification, password reset, password confirmation, two-factor authentication
with recovery codes, passkeys, profile and security settings, appearance and
account deletion. Fortify still does the work. The pages are files under
resources/js/app, and they read from PHP with rpc().
Getting started
laravel new my-app --using=rsc-kit/laravel-starter-kit
cd my-app
composer run dev
Open the app at its own url: http://my-app.test under Herd, or
http://localhost:8000 from composer run dev.
The guide is at docs.rsc-kit.dev/hosts/laravel/starter-kit.
Where things are
resources/js/app |
Pages, layouts and middleware.ts guards |
app/Rsc |
What pages read: rpc('Shared.user') is App\Rsc\Shared::user() |
app/Rsc/Actions |
What forms submit to, most of them through Fortify's own controllers |
resources/js/components |
The shadcn/ui components, unchanged from upstream |
License
MIT, as upstream's is.