Relay - AI Chat UI Kit for Next.js - Next.js AI Chat UI Kit Template

Relay - AI Chat UI Kit for Next.js - AI Chat UI Kit template preview

About this template

Relay is a chat UI kit, not a SaaS starter - the homepage IS the product: the real ChatWindow component, filling the viewport, no marketing site to gut and rewrite first. Type a question and watch it stream token by token through useChatStream, click an inline citation to see the quoted source in a popover (every citation also rolls up into a Sources card list below the reply), or ask for something like a pricing card and watch a canvas slide open on the right with a live, sandboxed HTML preview - the same pattern as ChatGPT Canvas or Claude Artifacts - with a Code tab, Copy, and Download. Sign in (any email/password) for the full threaded app: a persistent sidebar grouped by Today/Yesterday/Earlier, saved conversations, a Settings page with usage stats and a real Cmd+K shortcut, and a feedback row under every reply with a 'Retry with another model' dropdown that actually regenerates with the picked model. ModelSelector works on plain 'provider/model' strings, matching the Vercel AI Gateway convention, so swapping Claude for GPT is a string change, not a rewrite. The 'Wire' design system runs cool near-black surfaces with a vivid antique-brass accent, Big Shoulders display type over Archivo body text and IBM Plex Mono for every streamed token and citation stamp - fully responsive, audited to WCAG 2.2 AA with axe-core across every route in both themes (the check ships as npm run test:a11y), flash-free dark/light mode. Runs fully seeded with zero config - documented seams for a real database, auth provider, and the Vercel AI Gateway.

Who Relay - AI Chat UI Kit for Next.js is for

Relay is built for teams building an AI product who need production-grade chat UI - streaming, citations, a code canvas - without building a whole SaaS around it first. The homepage IS the product: the real ChatWindow component fills the viewport, no marketing site to gut before you can use it.

If you've looked at ChatGPT Canvas or Claude Artifacts and wanted that split-pane, live-preview interaction pattern in your own product, Relay ships a working version of it - a fresh artifact opens a sandboxed HTML preview alongside the chat, not just a syntax-highlighted code block.

Because it's a UI kit rather than a full SaaS business, it deliberately skips marketing pages, billing, and team management - if you need those too, Keel is the better starting point.

  • Founder building an AI chat product who needs the interface done well
  • Developer wanting a ChatGPT Canvas / Claude Artifacts-style reference implementation
  • Agency building a client-facing AI assistant on a deadline
  • Team that wants real token streaming and citation UI without building it from scratch

What's included

The homepage IS the chat interface - the real ChatWindow component fills the viewport, no marketing site, no redirect; a signed-in visitor lands straight in their real account instead of an anonymous demo
Token-by-token streaming via useChatStream, inline citations with source popovers, and a Sources card list rolled up below each reply
A canvas for code - a fresh artifact pops the chat into a split pane with a live sandboxed HTML preview (or a read-only code view for anything else), Copy and Download, full-screen on mobile - the same pattern as ChatGPT Canvas or Claude Artifacts
Full threaded chat app behind mock auth - persistent sidebar grouped by Today/Yesterday/Earlier, saved conversations, Settings with usage stats and a real Cmd+K shortcut
Message attribution (model badge + timestamp) and a feedback row under every reply - Copy, thumbs up/down, and a 'Retry with another model' dropdown that regenerates with the picked model
File-path code headers with line numbers, not just a language tag - code blocks read like real files
ModelSelector works on plain 'provider/model' strings, matching the Vercel AI Gateway convention, so swapping models is a string change
'Wire' design system - cool near-black surfaces with a vivid antique-brass accent (never the default SaaS violet, and deliberately not rust/clay either), Big Shoulders display type, Archivo body, IBM Plex Mono for every streamed token and citation stamp
Fully responsive, flash-free dark/light mode, zero console errors on a production build
Runs fully seeded with zero config - no database or API keys required; documented seams for a real database, auth provider, and the Vercel AI Gateway
Audited to WCAG 2.2 AA with axe-core on every page type, in both themes at phone and desktop widths, with menus and panels checked open. The check ships with the template as npm run test:a11y

Pages Included

Home (live chat)LoginSignupApp (threaded chat)Saved threadSettings

Common questions about Relay - AI Chat UI Kit for Next.js

Is this a full SaaS, or just the chat UI?

Just the chat UI, deliberately - there's no marketing site, billing, or team management. The homepage is the real chat interface itself. If you need the full SaaS shell around an AI feature, Keel is the better fit.

Does the token streaming work out of the box?

Yes - useChatStream streams responses token-by-token against seeded data with zero config, so you can see and tune the exact streaming behavior before connecting a real model.

How does the code canvas work - is it sandboxed safely?

When a reply includes something like a UI component, the canvas slides open with a live preview rendered in a sandboxed iframe, plus a read-only Code tab, Copy, and Download. Anything that isn't previewable HTML just shows as a read-only code view.

Can I swap models, like from Claude to GPT?

Yes - ModelSelector works on plain 'provider/model' strings matching the Vercel AI Gateway convention, so swapping models is a string change, not a rewrite. The 'Retry with another model' dropdown uses the same mechanism.

Does it include real authentication?

It ships behind mock auth (any email/password signs you into the full threaded app) so you can evaluate the whole product - sidebar, saved conversations, settings - with zero setup. Wire in a real auth provider via the documented seam when you're ready to go live.

Solo license

$79.00

Solo license · one-time payment · tax included

Doing client work? That needs a Team license.

Need Team or Agency licensing?Want every template? Get All-Access - $399

One-time purchase · Instant delivery via email

7-day refund, no questions asked. See our refund policy

Need custom changes?

Brand colors, new pages, integrations - we build it for you.

Request Customization

We'll get back to you within 24 hours

Built for AI coding agents

Ships with CLAUDE.md, AGENTS.md, and .cursorrules, so Claude Code, Cursor, and Codex understand this codebase from the first prompt.

See the prompt cookbook

Audited to WCAG 2.2 AA

36/36 checks passing with axe-core, contrast measured from the rendered page, and a keyboard pass across 6 page types signed in and out, dark and light, phone and desktop, plus menus, model picker and citations.

The same check ships with the template, so you can re-run it after you change anything: npm run test:a11y.

See what the audit fixed

Tech Stack

Next.js16
React19
TailwindCSS v4
TypeScriptLatest

Every Plan Includes

Full source code
Commercial license
Documentation
Dark & light mode
Responsive design
Updates (plan-based)

Pricing

Choose your plan

One-time purchase. No subscriptions, no renewals.

Solo

1 developer

$79$150

per template, one-time payment · tax included

  • Full source code
  • 1 developer license
  • 1 end product
  • Own products only
  • 6 months of updates
  • Email support (48h)
Most Popular

Team

Up to 5 developers

$149$299

per template, one-time payment · tax included

  • Full source code
  • Up to 5 developers
  • Up to 5 end products
  • Client work permitted
  • 1 year of updates
  • Priority email support (24h)

Agency

Unlimited developers

$299$499

per template, one-time payment · tax included

  • Full source code
  • Unlimited developers
  • Unlimited end products
  • Client work permitted
  • Lifetime updates
  • Priority support
  • Dedicated onboarding call