Folders
A saas-ai app looks like this. A smaller preset has fewer of these: the folders belong to the modules you pick.
File structure
├─ app/
│ ├─ (auth)/ login, signup, forgot-password, reset-password
│ ├─ (protected)/(app)/ the signed-in app: chat, files, settings/account, settings/plan
│ ├─ api/ auth, chat, storage and the billing webhook
│ ├─ choose-plan/ plan picker
│ ├─ payment/success/ after checkout
│ └─ globals.css design tokens
├─ components/ ai, auth, emails, layout, payments, settings, storage, ui
├─ lib/ one folder per module: ai, auth, db, emails, payments, storage
├─ i18n/ routing.ts and request.ts (next-intl)
├─ messages/ en.json, es.json, fr.json
├─ prisma/ schema.prisma and schema/<module>.prisma
├─ tests/ unit, contract and e2e tests per module
├─ .env.<module>.example variables of each module
├─ SETUP.md env variables and vendor setup notes
├─ .tailar.json what is installed
├─ AGENTS.md, CLAUDE.md instructions for your agent
└─ .tailar/, .cursor/, .claude/, .github/, .windsurf/ agent rules and skills
What is yours
Everything. The code is generated once and belongs to you; there is no runtime dependency on Tailar. Edit any file freely.
Conventions
- Server components by default, client components only where needed
- One folder per module under
lib/, and one Prisma file per module underprisma/schema/, so a module is easy to find, swap or remove - Pages and components reach the database only through the singleton in
lib/db - User-facing text lives in
messages/*.json, never hard-coded - Colours and fonts come from the tokens in
app/globals.css