Documentation · Guide for AI agents
The Laravel package every Saucebase app runs on. Saucebase is the AI-ready Laravel SaaS kit: a Vue or React app with an admin panel, built from modules you add as you need them.
Core is the part every app shares. It installs the starter UI into your app, loads the modules, and gives them one place to plug into: navigation, settings, the sitemap, the admin panel and the AI agent's guidelines. A module adds a feature; core is what makes the modules fit together.
The starter UI, copied into your app by saucebase:install and yours from then on:
- Vue 3 or React 19 on Inertia.js, TypeScript, Tailwind CSS 4 and shadcn components
- Layouts, header, sidebar, footer, home, dashboard, terms, privacy and error pages
- Light and dark mode, a language selector, toasts and dialogs
- Storybook stories for the components, and a design system page for colours and type
The module system, on internachi/modular:
- Modules are Composer packages that install into
modules/, where their code is yours to change saucebase:module-installrequires a module and sets it up: patches, migrations, seeders and its own install steps- Each module's frontend loads with the app, on Vue or React
Shared services modules plug into:
| Service | What a module does with it |
|---|---|
| Navigation | Adds links to the landing header, the app sidebar and the user menu |
| Settings | Adds a panel to the user's settings modal (SettingsSection), or a site-wide page to the admin |
| Admin panel | Registers its Filament resources, pages and dashboard widgets |
| Sitemap | Adds its public URLs |
| Home | Decides where a user lands after signing in or registering |
| Toasts | Flashes a message from PHP that the UI shows |
| Translations | Ships its own strings, exported for the frontend |
Site settings in the admin panel: general, SEO and localization. Roles and permissions come from spatie/laravel-permission.
Guidelines for AI agents. Core and every module ship Laravel Boost guidelines and skills. modules:boost registers them, so Claude Code, Cursor or any coding agent reads how each part works before it writes code.
The quickest way is a new app with everything set up:
curl -fsSL https://install.saucebase.dev | bashInto a new Laravel app:
composer config allow-plugins.saucebase/module-installer true
composer require saucebase/core
composer require --dev saucebase/laravel-playwright
php artisan saucebase:install vue # or react
npm install && npm run build
php artisan migrate --seedsaucebase:install copies the starter UI and a few files into the app, which owns them from then on. It asks before replacing files unless you pass --force.
Paste this into Claude Code, Cursor or any coding agent, from the root of a Laravel app:
Add Saucebase to this Laravel app. Run
`composer config allow-plugins.saucebase/module-installer true`,
`composer require saucebase/core`,
`composer require --dev saucebase/laravel-playwright`,
`php artisan saucebase:install vue --force`, then
`npm install`, `npm run build` and `php artisan migrate --seed`.
Tell me if any step fails.
| Command | What it does |
|---|---|
saucebase:install {vue|react} |
Installs the starter UI into the app |
saucebase:module-install <module> |
Adds a module and sets it up |
saucebase:module-setup |
Applies patches, migrates and seeds installed modules |
saucebase:recipe <name> |
Creates a new module from a recipe |
modules:seed --state=<state> |
Seeds the installed modules, such as their demo data |
modules:boost |
Registers the modules' AI guidelines and skills with Laravel Boost |
saucebase:template-install <template> |
Installs a template: an app built from modules, with its own pages |
| Module | What it does |
|---|---|
| Auth | Login, registration, social login, passkeys, magic links and user admin |
| Billing | Stripe checkout, subscriptions, trials, invoices and plan limits |
| Blog | Posts, categories, tags, RSS and SEO |
| Announcements | Site-wide banners, scheduled and targeted |
| Roadmap | A public roadmap with feature requests and upvotes |
| Coming Soon | A coming soon page while you build |
| Themes | A visual theme editor with live preview |
Work on core from the contributor workspace, which links this package into a full app. Setup is in its CONTRIBUTING.md.
MIT.
The documentation is being updated for v3.