An AI chatbot that searches the web and streams answers with citations.
Personal project. Full source is public on GitHub. TODO(devang): add a live demo URL.
Standard chatbots are limited to stale training data. I wanted an assistant that knows when to reach for the live web and answers with citations, not guesses.
Implemented tool-calling so the model chooses between its own knowledge and a live web-search tool (Tavily).
Streamed responses token-by-token on the Edge runtime for instant feedback.
Persisted conversations in Supabase (PostgreSQL) so history survives reloads.
Built the whole app in Next.js 16 (App Router) with TypeScript, Tailwind, and Framer Motion.
The AI decides when to call a web-search tool and cites its sources.
Token-by-token streaming on the Edge runtime for real-time feedback.
Conversations saved to Supabase Postgres across sessions.
Tell me about your project. I reply within 24 hours.