Relay - AI Chat UI Kit for Next.js - Next.js AI Chat UI Kit Template
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
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.
Pricing
Choose your plan
One-time purchase. No subscriptions, no renewals.
Solo
1 developer
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)
Team
Up to 5 developers
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
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
From the blog
The Anatomy of a High-Converting AI SaaS Landing Page
Every section of an AI SaaS landing page broken down - what to include, why it matters for conversion, and the design decisions behind each one.
Read article →Best Next.js Templates for Developers in 2026
A curated list of the best premium and open-source Next.js templates in 2026 - covering SaaS, portfolio, marketing, and dashboard use cases.
Read article →The 7 Best Next.js AI SaaS Starter Kits in 2026
Every AI SaaS starter kit worth considering in 2026, compared honestly - real vs. wired-in AI, backend included or bring-your-own, license terms, and which to pick.
Read article →


