Example
The CLI writes .tailar.json at the root of the project when it generates it, and updates it when you run tailar add or tailar sync. This is the file of a saas-ai app (trimmed):
.tailar.json
{
"name": "my-app",
"version": "0.1.0",
"installed": {
"features": [
{
"name": "db",
"variant": "postgres",
"provider": "postgres"
},
{
"name": "emails",
"variant": "resend",
"provider": "resend"
},
{
"name": "auth",
"variant": "user-based"
},
{
"name": "payments",
"variant": "stripe"
},
{
"name": "storage",
"variant": "r2"
},
{
"name": "ai"
}
],
"blocks": [],
"components": [
{
"name": "app-sidebar",
"variant": "user-based"
}
],
"templates": [
{
"name": "base"
},
{
"name": "saas"
}
]
},
"structure": {
"hasSrcFolder": false,
"hasAppFolder": true
},
"preset": "saas-ai",
"modules": [
"database",
"email",
"auth",
"payments",
"storage",
"ai"
],
"providers": {
"authProvider": "better-auth",
"database": "postgres",
"email": "resend",
"authStructure": "user-based",
"payments": "stripe",
"storage": "r2"
},
"packageManager": "npm"
}
Fields
| Field | Values | Notes |
|---|---|---|
| name, version | string | Project name and the file format version |
| preset | saas-ai, saas, marketing, custom | The starting point you chose. Informational |
| modules | database, email, auth, payments, storage, ai | The modules selected when the project was generated |
| providers.database | postgres, mysql, mongodb | Sets the DATABASE_URL format and the Prisma datasource |
| providers.email | resend, postmark, sendgrid | Used for verification, reset and other transactional email |
| providers.authStructure | user-based, org-based | Better Auth only. Org-based adds organizations and members |
| providers.payments | stripe, lemonsqueezy, paddle | One billing provider per app |
| providers.storage | r2, s3, gcs | The AI chat attachments use it too |
| installed | features, blocks, components, templates | Each entry records the name, the variant and when it was installed |
| recipe | string | The config ID, when the project came from init --recipe |
| structure, packageManager | - | Detected at generation time and used by later installs |