Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
f15bf83
feat: add queue, schedule and workers tasks and a Taskfile sync comma…
roble Nov 5, 2026
76d55af
feat: create the E2E env file on install (sc-1108)
roble Nov 5, 2026
5b9a1cc
chore: forbid nested ternaries in both stacks' ESLint config
roble Nov 6, 2026
64f463b
feat: throw when two sources declare the same capability in a group (…
roble Nov 6, 2026
3a32e7c
feat: dashboard period filter, Period and TrendStat for widgets, and …
roble Nov 6, 2026
6ed4b00
fix: keep every month in the 12-month period, warn when the E2E env i…
roble Nov 6, 2026
472efcf
Merge branch 'main' of https://github.com/saucebase-dev/core into dev…
roble Nov 6, 2026
8b92522
Merge origin/main into dev
roble Nov 8, 2026
680b537
chore: alias the dev branch as 2.13.x-dev
roble Nov 8, 2026
09239d5
Merge branch 'renanroble-dev-branch-alias' into dev
roble Nov 8, 2026
33c8062
feat: named states replace --demo in modules:seed
roble Nov 10, 2026
2759c3d
Merge branch 'renanroble-named-states' into dev
roble Nov 10, 2026
d4e4765
feat: set up a template after the modules it requires
roble Nov 10, 2026
763a45f
Merge branch 'renanroble-template-type' into dev
roble Nov 10, 2026
fa3ca8d
feat: dashboard widgets fill gaps; drop the Discord links from the ap…
roble Nov 10, 2026
8863ddd
Merge branch 'renanroble-dashboard-dense' into dev
roble Nov 10, 2026
c68c13c
feat: template install and capture, module options
roble Nov 13, 2026
ea39de6
Merge branch 'renanroble-template-install' into dev
roble Nov 13, 2026
a3bac51
feat: install settings, set at install by templates, flags or prompts
roble Nov 13, 2026
c5bd04a
Merge branch 'renanroble-install-settings' into dev
roble Nov 13, 2026
03c80e5
feat: one configure key and --set for templates
roble Nov 13, 2026
c773758
Merge branch 'renanroble-configure' into dev
roble Nov 13, 2026
a3337b8
feat: template workspaces resolve @/ from the app first
roble Nov 13, 2026
b6cb20a
feat: select and table components in the Vue starter UI
roble Nov 13, 2026
a8e8d91
fix: every reka popup opens above an Inertia modal
roble Nov 13, 2026
dbd85d1
Merge branch 'renanroble-app-first-ui' into dev
roble Nov 13, 2026
57f567a
fix: popups opened from a modal keep focus and Escape
roble Nov 14, 2026
9b624ba
feat: combobox in the Vue starter UI
roble Nov 14, 2026
cadec30
fix: the same space above a page's title as below it
roble Nov 14, 2026
bcae913
Merge branch 'renanroble-qa-fixes' into dev
roble Nov 14, 2026
bc2f9ca
feat: a template installs clean; --state seeds its demo
roble Nov 14, 2026
0467bdd
Merge branch 'renanroble-template-demo-opt-in' into dev
roble Nov 14, 2026
8eeaf80
feat: a demo without DEMO_PASSWORD gets a random one, saved in .env
roble Nov 14, 2026
3242bfe
docs: a skill for building Saucebase templates
roble Nov 14, 2026
f03b08d
Merge branch 'renanroble-generated-demo-password' into dev
roble Nov 14, 2026
978f691
Merge branch 'renanroble-template-skill' into dev
roble Nov 14, 2026
44cc972
feat: build a template in any app, by any vendor
roble Nov 14, 2026
1141366
Merge branch 'renanroble-template-from-scratch' into dev
roble Nov 14, 2026
cfee9b1
fix: a recipe's dotfiles reach the module it makes
roble Nov 15, 2026
d9a0f2e
Merge branch 'renanroble-recipe-dotfiles' into dev
roble Nov 15, 2026
1911bb7
fix: a recipe's CI names the module by its folder
roble Nov 15, 2026
05573aa
Merge branch 'renanroble-recipe-ci-name' into dev
roble Nov 15, 2026
1d1439b
docs: what building the notes template taught the template skill
roble Nov 15, 2026
20dd450
Merge branch 'renanroble-template-skill-lessons' into dev
roble Nov 15, 2026
72353f2
fix: put composer files back when a package install fails
roble Nov 15, 2026
d1e25b0
chore: require module-installer 3.3 for templates, alias dev as 3.0.x…
roble Nov 15, 2026
a0d3244
ci: install a template's stubs in the test app, as a customer's app g…
roble Nov 15, 2026
b7b8925
feat!: modules:seed and module-install take --state, not --demo
roble Nov 15, 2026
ee4923f
fix: React popups opened from a modal show above it
roble Nov 15, 2026
6bbd5bb
fix: an override's relative imports find files beside it in the app
roble Nov 15, 2026
b07f886
fix: each post-install command gets only the answers it takes
roble Nov 15, 2026
60a32c4
chore: leave the select, table and combobox shadcn folders out of Sonar
roble Nov 15, 2026
7f79ac4
Merge remote-tracking branch 'origin/main' into dev
roble Nov 15, 2026
34bc51a
fix: module-install seeds a state in its own process, after setup
roble Nov 15, 2026
b7fe7c7
chore: alias dev as 3.1.x-dev, past the v3.0.0 release
roble Nov 15, 2026
5a8da44
fix: a failed package install leaves the app as it was, bootable
roble Nov 16, 2026
d80b343
chore: alias dev as 3.x-dev, so it never falls behind a minor release
roble Nov 16, 2026
ca14dc2
feat: seeders declare their demo accounts (#[DemoAccount])
roble Nov 16, 2026
5f60188
feat: AssertsDemoAccounts checks a seeder creates the accounts it dec…
roble Nov 16, 2026
3eb5184
chore: PHPStan skips AssertsDemoAccounts, used only by modules' tests
roble Nov 16, 2026
adeb2d9
feat: add shadcn Empty; EmptyState builds on it
roble Nov 18, 2026
7950a69
Merge branch 'renanroble-empty' into dev
roble Nov 18, 2026
3aee45a
feat: React select and table; modals and capture work for React templ…
roble Nov 18, 2026
643358f
Merge branch 'renanroble-react-select-table' into dev
roble Nov 18, 2026
a445e99
fix: type-checking skips template stubs
roble Nov 18, 2026
d182b2f
Merge branch 'renanroble-tsconfig-stubs' into dev
roble Nov 18, 2026
6e494b5
feat: template-capture --restore puts a template's files back
roble Nov 18, 2026
850d066
fix: React sidebar marks links that open in a new tab
roble Nov 18, 2026
c93dab6
Merge branch 'renanroble-template-restore' into dev
roble Nov 18, 2026
6f5ada4
Merge branch 'renanroble-react-nav-external' into dev
roble Nov 18, 2026
fbe1999
feat: RegistrationInvite lets an invited address sign up while sign-u…
roble Nov 19, 2026
33db225
Merge branch 'renanroble-night-2026-11-18' into dev
roble Nov 19, 2026
cc8afe7
fix: navigation loads on every instance, so Octane and queue workers …
roble Nov 19, 2026
9b5fd9e
Merge branch 'renanroble-bugfixes-2026-11-19' into dev
roble Nov 19, 2026
ff31261
fix: navigation marks a site-root item without a deprecation warning
roble Nov 20, 2026
fc3e371
Merge branch 'renanroble-nav-root-url' into dev
roble Nov 20, 2026
3220cb0
ci: lint with the project's own Pint
roble Nov 20, 2026
3a95728
Merge branch 'renanroble-ci-own-pint' into dev
roble Nov 20, 2026
1a3af2f
fix: an open collapsible no longer swallows a modal's Escape
roble Nov 20, 2026
0b6c59e
fix: template-capture --restore touches only the stack in use
roble Nov 20, 2026
204b956
fix: a failed install reinstalls from the restored lock
roble Nov 20, 2026
894be32
Merge branch 'renanroble-coderabbit-42' into dev
roble Nov 20, 2026
ca8028e
fix: React overlays over a modal keep their focus handlers and tooltips
roble Nov 20, 2026
f388681
fix: template-capture --restore checks every stub before writing
roble Nov 20, 2026
deed3e8
fix: a failed reinstall no longer claims nothing changed
roble Nov 20, 2026
22366f2
Merge branch 'renanroble-coderabbit-42' into dev
roble Nov 20, 2026
3efcb30
feat: Storybook and a design system for the Vue and React stacks (#44)
roble Nov 26, 2026
a25fdc5
feat: Vue story controls follow Storybook's Controls guide
roble Nov 26, 2026
49c15b6
feat: React story controls follow Storybook's Controls guide; stories…
roble Nov 26, 2026
9f8ad24
Merge nightly/2026-11-26-story-controls: story controls (Vue, React)
roble Nov 26, 2026
572abfe
Merge main into dev
roble Nov 27, 2026
7932dcc
Merge main into dev after v3.2.1
roble Nov 27, 2026
eea727e
Merge main into dev after v3.3.0
roble Nov 30, 2026
02e7846
fix: Storybook docs pages follow the toolbar theme
roble Nov 30, 2026
6e8be1a
docs: a rule for module settings pages
roble Nov 30, 2026
0c0a888
Merge main into dev after v3.3.1
roble Nov 30, 2026
6386851
ci: the test app links public storage, as the installer does
roble Nov 30, 2026
20754f3
docs: describe core for Packagist and agent search
roble Dec 1, 2026
f54329c
docs: say what core ships and how modules plug into it
roble Dec 1, 2026
779057a
fix: module-setup's run-again command keeps --configure and --set, qu…
roble Dec 1, 2026
e1d7270
Merge remote-tracking branch 'origin/main' into dev
roble Dec 1, 2026
ece9051
fix: print the run-again command on its own line, and quote --set byt…
roble Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 63 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,42 @@
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=saucebase-dev_core&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=saucebase-dev_core)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

**The AI-ready Laravel SaaS kit.** Everything your SaaS needs, ready for your AI to build on.
**[Documentation](https://saucebase-dev.github.io/docs/)** · **[Guide for AI agents](https://saucebase-dev.github.io/docs/for-agents.md)**

This is the package behind [Saucebase](https://github.com/saucebase-dev/saucebase): the Vue or React starter UI, the module system, navigation, settings, localization and the admin panel. Every module ships Laravel Boost guidelines and skills, so your AI agent knows how it works from the first prompt.
The Laravel package every [Saucebase](https://github.com/saucebase-dev/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.

## What core ships

**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](https://github.com/InterNACHI/modular):

- Modules are Composer packages that install into `modules/`, where their code is yours to change
- `saucebase:module-install` requires 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](https://github.com/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.

## Install

Expand Down Expand Up @@ -45,6 +78,34 @@ Add Saucebase to this Laravel app. Run
Tell me if any step fails.
```

## Commands

| 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 |

## Modules

| Module | What it does |
| --- | --- |
| [Auth](https://github.com/saucebase-dev/auth) | Login, registration, social login, passkeys, magic links and user admin |
| [Billing](https://github.com/saucebase-dev/billing) | Stripe checkout, subscriptions, trials, invoices and plan limits |
| [Blog](https://github.com/saucebase-dev/blog) | Posts, categories, tags, RSS and SEO |
| [Announcements](https://github.com/saucebase-dev/announcements) | Site-wide banners, scheduled and targeted |
| [Roadmap](https://github.com/saucebase-dev/roadmap) | A public roadmap with feature requests and upvotes |
| [Coming Soon](https://github.com/saucebase-dev/coming-soon) | A coming soon page while you build |
| [Themes](https://github.com/saucebase-dev/themes) | A visual theme editor with live preview |

## Contributing

Work on core from the [contributor workspace](https://github.com/saucebase-dev/saucebase), which links this package into a full app. Setup is in its [CONTRIBUTING.md](https://github.com/saucebase-dev/saucebase/blob/main/CONTRIBUTING.md).

## License

MIT.
Expand Down
24 changes: 21 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
{
"$schema": "https://getcomposer.org/schema.json",
"name": "saucebase/core",
"description": "The AI-ready Laravel SaaS kit: billing, workspaces, blog and admin as modules, each with Laravel Boost guidelines and skills for your agent.",
"description": "The core of Saucebase, the AI-ready Laravel SaaS starter kit: the Vue or React starter UI (Inertia, Tailwind CSS, shadcn), the module system, a Filament admin panel, settings, navigation, translations and roles, with Laravel Boost guidelines for AI agents.",
"keywords": [
"laravel",
"saucebase",
"saas"
"laravel",
"laravel-package",
"laravel-starter-kit",
"laravel-saas",
"saas",
"saas-starter-kit",
"modular",
"modules",
"inertiajs",
"vuejs",
"reactjs",
"tailwindcss",
"shadcn",
"filament",
"admin-panel",
"typescript",
"laravel-boost",
"ai-agents",
"boilerplate"
],
"homepage": "https://saucebase-dev.github.io/docs/",
"version": "v3.3.2",
"license": "MIT",
"authors": [
Expand Down
10 changes: 9 additions & 1 deletion src/Console/Commands/ModuleSetupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Process;
use Illuminate\Support\ProcessUtils;
use InterNACHI\Modular\Support\ModuleConfig;
use InterNACHI\Modular\Support\ModuleRegistry;
use Saucebase\Core\ModuleTaskfile;
Expand Down Expand Up @@ -92,7 +93,14 @@
}

if ($failed) {
$this->components->error("`{$command}` failed. Fix it, then run this again: php artisan saucebase:module-setup ".implode(' ', $this->argument('modules')).($this->option('state') ? ' --state='.$this->option('state') : '').($this->option('force') ? ' --force' : ''));
// The command on its own line: the error component would end it with a period.
$this->components->error("`{$command}` failed.");
$this->line(' Fix it, then run this again: php artisan saucebase:module-setup '.implode(' ', $this->argument('modules'))

Check warning on line 98 in src/Console/Commands/ModuleSetupCommand.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Split this 137 characters long line (which is greater than 120 authorized).

See more on https://sonarcloud.io/project/issues?id=saucebase-dev_core&issues=AaIzK7qQ6qECROBbMaxn&open=AaIzK7qQ6qECROBbMaxn&pullRequest=50
.($this->option('state') ? ' --state='.$this->option('state') : '')
.($this->option('configure') ? ' --configure' : '')
// Free text: quoted byte for byte (escapeshellarg drops what the locale can't read).
.collect((array) $this->option('set'))->map(fn (string $set) => ' --set='.ProcessUtils::escapeArgument($set))->implode('')

Check warning on line 102 in src/Console/Commands/ModuleSetupCommand.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Split this 142 characters long line (which is greater than 120 authorized).

See more on https://sonarcloud.io/project/issues?id=saucebase-dev_core&issues=AaIzK7qQ6qECROBbMaxo&open=AaIzK7qQ6qECROBbMaxo&pullRequest=50
.($this->option('force') ? ' --force' : ''));

return self::FAILURE;
}
Expand Down
3 changes: 2 additions & 1 deletion src/Console/Commands/TemplateInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Dotenv\Dotenv;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\ProcessUtils;
use Illuminate\Support\Str;
use Saucebase\Core\Console\Traits\InstallsSaucebasePackages;
use Saucebase\Core\ProjectConfig;
Expand Down Expand Up @@ -258,7 +259,7 @@
{
$command = 'php artisan saucebase:template-install '.$this->argument('template')
.($this->option('state') ? ' --state='.$this->option('state') : '')
.collect((array) $this->option('set'))->map(fn (string $set) => ' --set='.escapeshellarg($set))->implode('');
.collect((array) $this->option('set'))->map(fn (string $set) => ' --set='.ProcessUtils::escapeArgument($set))->implode('');

Check warning on line 262 in src/Console/Commands/TemplateInstallCommand.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Split this 135 characters long line (which is greater than 120 authorized).

See more on https://sonarcloud.io/project/issues?id=saucebase-dev_core&issues=AaIzK7m66qECROBbMaxm&open=AaIzK7m66qECROBbMaxm&pullRequest=50

$this->components->error($error);
$this->line(" Fix it, then run again: {$command}");
Expand Down
16 changes: 16 additions & 0 deletions tests/Feature/ModuleSetupCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,22 @@ public function test_a_failed_step_fails_the_setup_and_stops_there(): void
$this->assertFalse(InstallFixtureCommand::$ran);
}

public function test_the_run_again_command_keeps_configure_and_set_quoted(): void
{
Process::fake();

$this->artisan('saucebase:module-setup', [
'modules' => ['module-test-fixture'],
'--state' => 'missing',
'--configure' => true,
'--set' => ['module-test-fixture.days=9'],
'--no-interaction' => true,
])
// The whole line: the command must end with its last option, with no period after it.
->expectsOutput(" Fix it, then run this again: php artisan saucebase:module-setup module-test-fixture --state=missing --configure --set='module-test-fixture.days=9'")
->assertFailed();
}

/**
* A template answers another module's install questions: keys under `configure` in
* its composer.json that aren't install settings become that module's install options.
Expand Down