Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Production-ready Astro boilerplate for AI chat interfaces with multi-provider support, streaming, and polished UI.

Astro landing page starter with gradient background, responsive hamburger/dropdown menu, and switchable floating/fullscreen headers.
The Astro AI Chatbot Template (Vercel SDK Edition) is a production-ready boilerplate for building AI-powered chat interfaces on Astro, using React islands, Tailwind CSS, and the Vercel AI SDK.
It is an open-source (MIT-licensed) starter project that ships a fully styled chat UI with mock implementations for AI providers, so developers can bootstrap a working interface and then swap in real API calls. The template runs on Astro's static generation with React islands, uses Tailwind CSS for styling, and integrates the Vercel AI SDK for response streaming. The repository, maintained by Marve10s on GitHub, is also listed in the Astro Themes portal and includes a live demo link.
.env.local to switch providers.ThemeToggle.tsx) with persistent preference.src/mocks/supabase.ts provides persistent chat sessions and message storage.chat-container.tsx, message.tsx, and prompt-input.tsx.src/mocks/ai-vercel-sdk.ts with real implementations.pnpm install..env.example to .env.local and add API keys for the providers you want to use.pnpm dev to see the mock chat in action; then replace the mocks in src/mocks/ai-vercel-sdk.ts with real API calls.pnpm build and deploy to Vercel or any static host; the README includes an edge runtime API route example.No — it ships with mock implementations for OpenAI, Anthropic, Google Gemini, and Groq, so you can run the UI without any API keys. Real usage requires your own API keys for whichever provider you choose.
The template uses Astro with React islands, TypeScript, Tailwind CSS, and the Vercel AI SDK. It also includes UI primitives from Prompt Kit (chat container, message, prompt input) and a mock Supabase integration for conversations.
Yes. The README states the template works with any static hosting service, and it provides an inline example of an edge runtime API route for the AI logic, so you can adapt it to platforms like Cloudflare or Netlify.
Yes — the project is licensed under the MIT License, as stated in the README's license section, and the source is available on GitHub.
Add your provider API key to .env.local, then either replace the mock generateChat import in Chatbot.tsx with your real implementation, or extend the provider mocks in src/mocks/ai-vercel-sdk.ts to call your chosen API.
