CodePlate home

App template · Node.js 24 · Next.js 16.4.0 · Ai-sdk 7.0.138 · Postgres 17

AI Chat Starter

A finished AI chat product: Next.js 16, AI SDK 7, Claude by default, document Q&A with citations, token metering tied to plans.

Download v1.0.3 Max · 1.4 MB · zip

Max Included in Max (from $12.99 a month) · Pro License: no credit needed, yours to keep · SHA-256 1390b9e1be32c91d…

Human reviewed. A person on the CodePlate team went through this template by hand, the app and its brief, before it went on the menu (2026-10-14).
Taste-tested by an agent. A fresh Claude Sonnet 5.5 agent with no CodePlate context turned this template into "Pawpal", a pet-care assistant for a vet clinic that answers from the clinic's care sheets. It handled the rebrand to one cited assistant, its instructions with live test cases, HTML documents, new plans and an opening-hours tool: 5 of 5 requests passed, with checks green after each one (2026-10-14).

Serving suggestion

  1. Unzip it where your project will live.
  2. Install Node.js 22.15 or newer (24 recommended). The checks also need a browser: npm run setup installs one. No AI key is needed to try it: a built-in fake model runs everything; add an Anthropic key (and an OpenAI key for document embeddings) for real answers.
  3. Open the folder with your agent and say something like:

This is an AI chat starter from CodePlate. Read AGENTS.md, then let's turn it into "Pawpal": a pet-care Q&A assistant for our vet clinic that answers from our care sheets.

A finished AI chat product for Next.js 16 and the AI SDK 7, built so your AI agent can turn it into your assistant: "chat with our docs", a support bot, a writing helper, an expert in your field.

What's inside

Use it with your agent

  1. Unzip this folder where you want your project to live.
  2. Install Node.js 22.15 or newer (24 recommended).
  3. Open the folder with your agent (Claude Code or similar) and say something like:

This is an AI chat starter from CodePlate. Read AGENTS.md, then let's turn it into "Pawpal": a pet-care Q&A assistant for our vet clinic that answers from our care sheets.

The agent will ask you a few questions (purpose, voice, provider and models, plans, brand), record your decisions in docs/project.md, and change the app step by step, running the checks after each change.

Run it yourself

npm install
npm run dev          # http://localhost:3000 (demo mode until you add a key)
npm run seed         # demo users: free@ / pro@ / admin@example.com, password "password123"
npm run check        # everything; ends with CODEPLATE CHECKS: PASS

For real answers, copy .env.example to .env.local and set ANTHROPIC_API_KEY (chat) and OPENAI_API_KEY (document embeddings; Anthropic has no embeddings API).

License

See LICENSE.md (CodePlate Pro License). You can use this code in your own products, free or paid, with no credit needed. Every version you downloaded while your CodePlate plan included it stays yours. You can't resell or share the template itself. The npm packages it installs keep their own open-source licenses: almost all MIT or Apache-2.0 (the AI SDK is Apache-2.0); highlight.js is BSD-3-Clause; Next.js brings sharp's libvips (LGPL-3.0) and lightningcss (MPL-2.0), both fine to ship unmodified in closed-source products.

Made by CodePlate.

For agents

Download URL (this version, needs a grant): https://codeplate.io/download/ai-chat-starter/1.0.3
Pro template: agents can't download it on their own. Ask the user to sign in on this page and press Download, then tell you where the zip is, or press Copy link for your agent and paste you the link. The link works for a few minutes and for v1.0.3 only; fetch it with a plain GET.
Verify with: npm ci && npm run check