qmetrics.net

Next.js Gemini Chatbot

Next.js generative UI chatbot template with AI SDK

Next.js Gemini Chatbot screenshot

Next.js Gemini Chatbot is an open chat UI template using Vercel AI SDK and Google Gemini by default. It supports streaming chat, auth, and swappable model providers.

Overview

Next.js Gemini Chatbot is a starter for building a generative UI chatbot with Next.js and the Vercel AI SDK. The client uses the useChat hook while the server streams model output with streamText, producing a browser chat experience.

The template uses React Server Components and Server Actions for routing and server rendering. The AI SDK provides a unified API for text, structured objects, and tool calls. Google Gemini models ship as the default provider, but the same codebase can target OpenAI, Anthropic, Cohere, and others with small configuration changes.

Data persistence and simple authentication are included. You can deploy a copy to Vercel with one click or run it locally after setting environment variables from the example file, typically on localhost port 3000.

It is aimed at developers who want a working chat front end and backend pattern rather than a hosted-only product, with deployment left to your own infrastructure or Vercel account.

Key features

  • Streaming chat with useChat
  • Vercel AI SDK integration
  • Default Google Gemini models
  • Swappable LLM providers
  • React Server Components routing
  • Server Actions support
  • Authentication and persistence
  • One-click Vercel deploy option

Use cases

  • Prototype Gemini chat applications
  • Learn generative UI patterns
  • Self-hosted team chatbot
  • Compare multiple LLM providers
  • Extend with custom tools and UI

Tags

Similar software

Gradio

Python toolkit for machine learning web demos and apps

Gradio is a Python package for building demos or web applications around ML models, APIs, or arbitrary Python functions, with optional link sharing and no JavaScript required.

★ 44.2k⟳ 4 days agoApache-2.0

A2A Protocol

Standard protocol for opaque AI agent communication and collaboration

Agent2Agent (A2A) is a protocol that lets agentic applications on different frameworks and servers discover each other, negotiate interaction, and collaborate securely without sharing internal state.

★ 26.7k⟳ 2 days agoApache-2.0

AG-UI Overview

Event-based protocol linking AI agents to user-facing applications

AG-UI standardizes bi-directional event streams between agent backends and frontends so chat, tools, shared state, and human approvals work consistently across frameworks and clients.

★ 21.9k⟳ 4 days agoMIT

A2UI

Generative UI framework for agent-streamed native interfaces

A2UI lets agents send layout data over a streaming protocol while client apps draw the UI with native widgets in major web and mobile frameworks.

★ 18.9k⟳ 2 days agoApache-2.0

assistant-ui

TypeScript React primitives and runtimes for production AI chat UIs

React library for assembling ChatGPT-style chat with streaming, tools, attachments, and pluggable backends via the Vercel AI SDK, LangGraph, and other adapters.

★ 13.5k⟳ yesterdayMIT

Streamdown

Streaming Markdown renderer for AI chat UIs

Streamdown is a React-oriented package meant as a drop-in stand-in for react-markdown when model output arrives token by token.

★ 5.8k⟳ 2 days agoApache-2.0