Overview
Custom prompts are stored in Postgres and can be selected inside the AI Chat UI.
- Table:
promptsintanstarter/src/db/schema.ts - UI:
tanstarter/src/components/CustomPrompts.tsx - API:
tanstarter/src/routes/api/prompts.ts
API surface
GET /api/promptsreturns the current user’s promptsPOST /api/promptscreates a new prompt (name+contentrequired)
If you want public/shared prompts, add fields and query paths on top of the existing prompts table.