diff --git a/README.md b/README.md index 66fd303..641cb14 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 ` | Adds a module and sets it up | +| `saucebase:module-setup` | Applies patches, migrates and seeds installed modules | +| `saucebase:recipe ` | Creates a new module from a recipe | +| `modules:seed --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