forehall / starter
A Laravel 13, Inertia 3 and React starter that signs you in and puts you in a 3D room, built on Forehall.
Package info
github.com/nexence-labs/forehall-starter
Language:TypeScript
Type:project
pkg:composer/forehall/starter
Requires
- php: ^8.4
- forehall/laravel: @dev
- inertiajs/inertia-laravel: ^3.8
- laravel/fortify: ^1.44
- laravel/framework: ^13.45
- laravel/reverb: ^1.14
- laravel/tinker: ^3.0
- laravel/wayfinder: ^0.1.23
- sentry/sentry-laravel: ^4.31
Requires (Dev)
- fakerphp/faker: ^1.24
- larastan/larastan: ^3.15
- laravel/pail: ^1.2.5
- laravel/pao: ^1.0.6
- laravel/pint: ^1.32
- laravel/sail: ^1.71
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.9.3
- pestphp/pest: ^5.3
- pestphp/pest-plugin-laravel: ^5.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 10:20:10 UTC
README
Read-only mirror. This repository is published from
starterin nexence-labs/forehall by its release workflow. Issues and pull requests go to the monorepo.Until
v0.1.0-beta.1is tagged, this branch still points at the monorepo's local copy offorehall/laraveland won't install on its own. Install a tagged release.
forehall/starter
A Laravel 13, Inertia 3 and React 19 app that signs you in and puts you in a
3D room, rendered with @forehall/space and served by
forehall/laravel.
Status: alpha. composer create-project forehall/starter is not
available yet: until the beta, the starter only runs from inside the
Forehall monorepo, where it uses the local packages.
What you get
- Sign-in with Fortify: register, log in, log out and reset a password, with pages from Laravel's React starter kit (shadcn and Tailwind 4).
- After signing in you land on
/rooms/default: one room, shared by every signed-in user, with one cube. Drag the cube to move it, drag empty space to look around, click the cube to select it, and click empty space or press Escape to clear. - Presence, with
@forehall/presenceand Reverb: you see who else is in the room, and when someone drags the cube everyone sees it move. Each move is saved on the server first, and the server's copy wins. - Solo mode. If Reverb isn't running, a banner says presence is offline and the room keeps working: moves still save, and others see them when they next load the room. It reconnects on its own when Reverb is back.
- Where 3D can't or shouldn't run (no WebGL2, reduced motion, data saver, a slow connection, or frames too slow on every tier), the room shows a poster that lists what's in it as text.
- Postgres in Sail, and database-backed sessions, cache and queue.
Run it
From a clean checkout of the monorepo, with Docker, PHP 8.4, Composer, Node 22 and pnpm installed:
cd starter
composer install
cp .env.example .env
php artisan key:generate
php artisan forehall:reverb-keys
./vendor/bin/sail up -d
./vendor/bin/sail artisan migrate --seed
pnpm install
pnpm --filter @forehall/space --filter @forehall/presence build
pnpm dev
forehall:reverb-keys writes a new Reverb app id, key and secret into your
.env; .env.example ships none. Run it before sail up, because the
Reverb container reads them when it starts.
The build step compiles the workspace copies of @forehall/space and
@forehall/presence, which the room page imports. Run it again after
changing either package.
Open http://localhost (set APP_PORT and APP_URL in .env to use another
port), register, and you're in the room. Mail goes to the log
(storage/logs/laravel.log), including password reset links.
Stop it with ./vendor/bin/sail down.
To check the fallbacks by hand, add ?webgl=off to the room's URL to see the
poster, or ?overlay=1 to see the tier, draw calls and triangles.
Presence
Sail runs Reverb as its own service, reverb, on port 8080
(FORWARD_REVERB_PORT changes the port on your machine; keep
VITE_REVERB_PORT pointing at it). To see presence, sign in as two
different users, for example in a normal and a private window, and drag the
cube in one.
To see solo mode, stop Reverb with ./vendor/bin/sail stop reverb: the
banner appears and moves still save. Start it again with
./vendor/bin/sail start reverb and the room reconnects without a reload.
To try it from a phone on the same network, set VITE_REVERB_HOST to your
computer's LAN address, add that address to REVERB_ALLOWED_ORIGINS, and
open the app by that address too (with APP_URL to match).
In production, put Reverb behind a proxy that terminates TLS so browsers
connect over wss, set VITE_REVERB_SCHEME=https, and list only your real
host in REVERB_ALLOWED_ORIGINS. This starter doesn't deploy anything for
you; see Laravel's Reverb documentation.
Settings
All in .env:
| Setting | Default | What it does |
|---|---|---|
FOREHALL_REGISTRATION |
true |
The sign-up form. Turn it off on a deployed copy you don't want strangers to join. |
FOREHALL_EMAIL_VERIFICATION |
false |
Asks new users to confirm their email address. |
FOREHALL_TWO_FACTOR |
false |
Two-factor sign-in with an authenticator app. |
FOREHALL_PASSKEYS |
false |
Passkey sign-in. |
FOREHALL_PRESENCE_SHOW_NAMES |
false |
Shows each user's name to others in a room. Off, they appear as "Guest XXXX". |
FORWARD_REVERB_PORT |
8080 |
The port Reverb listens on, on your machine. |
SENTRY_LARAVEL_DSN |
blank | Error reporting to Sentry; off while blank. |
Sign-in attempts are throttled to five a minute per email address and IP. No users are seeded: the first account is the one you register. Anyone who can register can also move the shared cube; moves are limited to 120 a minute per user.
The room route, its middleware and the default room's name live in
config/forehall.php once you publish it:
php artisan vendor:publish --tag=forehall-config.
Before you deploy a copy
The starter stores each user's name, email address and a password hash. If you deploy it for other people, you are responsible for that data: add your own privacy notice and terms, and decide whether registration should be open. The starter sends nothing to third parties by default (no analytics, no external fonts, Sentry off).
Presence shows who is in a room right now. By default others see only an
opaque id and a "Guest" label, never an email address, and nothing about
presence is stored. If you turn on FOREHALL_PRESENCE_SHOW_NAMES, users'
names are shown to everyone in the room: tell your users so.
Development
composer test # Pint, then Pest (SQLite in memory) composer lint # Pint, fixing pnpm types # TypeScript (run `pnpm wayfinder` first on a fresh checkout) pnpm build # production assets (build @forehall/space first)
Inside the monorepo, composer.json reaches forehall/laravel through a
path repository and package.json uses @forehall/space and
@forehall/presence from the workspace.
Both are listed under extra.forehall.monorepo-only and
forehall.monorepoOnly, so the release can swap them for published versions.
Licence
MIT. See LICENSE, which also credits the parts that come from Laravel's React starter kit. The software is provided "as is", without warranty of any kind.