update schema.json

This commit is contained in:
Aman Varshney
2025-07-01 09:43:35 +05:30
parent 2e57089c70
commit 30ad58268e

View File

@@ -1,137 +1,165 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://better-t-stack.dev/schema.json", "$id": "https://better-t-stack.dev/schema.json",
"title": "Better-T-Stack Configuration", "title": "Better-T-Stack Configuration",
"description": "Configuration file for Better-T-Stack projects", "description": "Configuration file for Better-T-Stack projects",
"type": "object", "type": "object",
"properties": { "properties": {
"$schema": { "$schema": {
"type": "string", "type": "string",
"description": "JSON Schema reference for validation" "description": "JSON Schema reference for validation"
}, },
"version": { "version": {
"type": "string", "type": "string",
"description": "CLI version used to create this project", "description": "CLI version used to create this project",
"pattern": "^\\d+\\.\\d+\\.\\d+$" "pattern": "^\\d+\\.\\d+\\.\\d+$"
}, },
"createdAt": { "createdAt": {
"type": "string", "type": "string",
"format": "date-time", "format": "date-time",
"description": "Timestamp when the project was created" "description": "Timestamp when the project was created"
}, },
"database": { "database": {
"type": "string", "type": "string",
"enum": ["none", "sqlite", "postgres", "mysql", "mongodb"], "enum": [
"description": "Database type" "none",
}, "sqlite",
"orm": { "postgres",
"type": "string", "mysql",
"enum": ["drizzle", "prisma", "mongoose", "none"], "mongodb"
"description": "ORM type" ],
}, "description": "Database type"
"backend": { },
"type": "string", "orm": {
"enum": [ "type": "string",
"hono", "enum": [
"express", "drizzle",
"fastify", "prisma",
"next", "mongoose",
"elysia", "none"
"convex", ],
"none" "description": "ORM type"
], },
"description": "Backend framework" "backend": {
}, "type": "string",
"runtime": { "enum": [
"type": "string", "hono",
"enum": ["bun", "node", "workers", "none"], "express",
"description": "Runtime environment (workers only available with hono backend and drizzle orm)" "fastify",
}, "next",
"frontend": { "elysia",
"type": "array", "convex",
"items": { "none"
"type": "string", ],
"enum": [ "description": "Backend framework"
"tanstack-router", },
"react-router", "runtime": {
"tanstack-start", "type": "string",
"next", "enum": [
"nuxt", "bun",
"native-nativewind", "node",
"native-unistyles", "workers",
"svelte", "none"
"solid", ],
"none" "description": "Runtime environment (workers only available with hono backend and drizzle orm)"
] },
}, "frontend": {
"description": "Frontend framework" "type": "array",
}, "items": {
"addons": { "type": "string",
"type": "array", "enum": [
"items": { "tanstack-router",
"type": "string", "react-router",
"enum": [ "tanstack-start",
"pwa", "next",
"tauri", "nuxt",
"starlight", "native-nativewind",
"biome", "native-unistyles",
"husky", "svelte",
"turborepo", "solid",
"none" "none"
] ]
}, },
"description": "Additional addons" "description": "Frontend framework"
}, },
"examples": { "addons": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string", "type": "string",
"enum": ["todo", "ai", "none"] "enum": [
}, "pwa",
"description": "Example templates to include" "tauri",
}, "starlight",
"auth": { "biome",
"type": "boolean", "husky",
"description": "Whether authentication is enabled" "turborepo",
}, "none"
"packageManager": { ]
"type": "string", },
"enum": ["npm", "pnpm", "bun"], "description": "Additional addons"
"description": "Package manager" },
}, "examples": {
"dbSetup": { "type": "array",
"type": "string", "items": {
"enum": [ "type": "string",
"turso", "enum": [
"neon", "todo",
"prisma-postgres", "ai",
"mongodb-atlas", "none"
"supabase", ]
"d1", },
"none" "description": "Example templates to include"
], },
"description": "Database hosting setup" "auth": {
}, "type": "boolean",
"api": { "description": "Whether authentication is enabled"
"type": "string", },
"enum": ["trpc", "orpc", "none"], "packageManager": {
"description": "API type" "type": "string",
} "enum": [
}, "npm",
"required": [ "pnpm",
"version", "bun"
"createdAt", ],
"database", "description": "Package manager"
"orm", },
"backend", "dbSetup": {
"runtime", "type": "string",
"frontend", "enum": [
"addons", "turso",
"examples", "neon",
"auth", "prisma-postgres",
"packageManager", "mongodb-atlas",
"dbSetup", "supabase",
"api" "d1",
], "none"
"additionalProperties": false ],
} "description": "Database hosting setup"
},
"api": {
"type": "string",
"enum": [
"trpc",
"orpc",
"none"
],
"description": "API type"
}
},
"required": [
"version",
"createdAt",
"database",
"orm",
"backend",
"runtime",
"frontend",
"addons",
"examples",
"auth",
"packageManager",
"dbSetup",
"api"
],
"additionalProperties": false
}