emmanuel-adu /
ai-pipeline-orchestrator
Production-ready orchestration framework for AI applications featuring hybrid intent classification, dynamic context optimization, and sequential pipeline architecture
Loading repository data…
HiZouraiz / repository
Production-ready AI chatbot with Next.js, OpenAI, Claude, streaming, and conversation history
A sleek, production-ready AI chatbot built with Next.js 14. Supports multiple AI providers (OpenAI GPT-4, Anthropic Claude), streaming responses, conversation history, and a beautiful chat UI.
| Chat Interface | Dark Mode | Model Selector |
|---|---|---|
# Clone the repository
git clone https://github.com/zouraiz-khan/ai-chatbot-nextjs.git
cd ai-chatbot-nextjs
# Install dependencies
npm install
# Copy environment variables
cp .env.example .env.local
# Fill in your API keys in .env.local
# Run the development server
npm run dev
Open http://localhost:3000 in your browser.
Create a .env.local file in the project root:
# OpenAI
OPENAI_API_KEY=sk-...
# Anthropic
ANTHROPIC_API_KEY=sk-ant-...
# Supabase
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...
| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY | Yes* | Your OpenAI API key |
ANTHROPIC_API_KEY | Yes* | Your Anthropic API key |
NEXT_PUBLIC_SUPABASE_URL | No | Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY | No | Supabase anonymous key |
*At least one AI provider key is required.
| Provider | Model | Description |
|---|---|---|
| OpenAI | gpt-4o | Most capable OpenAI model, multimodal |
| OpenAI | gpt-4o-mini | Fast and affordable for lightweight tasks |
| OpenAI | gpt-4-turbo | High intelligence with vision capabilities |
| Anthropic | claude-3-5-sonnet-20241022 | Best balance of intelligence and speed |
| Anthropic | claude-3-haiku-20240307 | Fastest Anthropic model |
| Anthropic | claude-3-opus-20240229 | Most capable Anthropic model |
ai-chatbot-nextjs/
├── app/
│ ├── api/
│ │ ├── chat/
│ │ │ └── route.ts # Streaming chat endpoint
│ │ └── conversations/
│ │ └── route.ts # Conversation CRUD
│ ├── globals.css # Global styles + Tailwind
│ ├── layout.tsx # Root layout
│ └── page.tsx # Main chat page
├── components/
│ ├── ChatMessage.tsx # Message bubbles
│ ├── ChatInput.tsx # Input with controls
│ ├── Sidebar.tsx # Conversation sidebar
│ ├── CodeBlock.tsx # Syntax-highlighted code
│ ├── MarkdownRenderer.tsx # Markdown rendering
│ ├── ModelSelector.tsx # AI model picker
│ └── ThemeToggle.tsx # Dark/light toggle
├── lib/
│ ├── ai-providers.ts # Provider abstraction
│ ├── supabase.ts # Supabase client
│ └── rate-limit.ts # Rate limiting
├── stores/
│ └── useChatStore.ts # Zustand state
├── tailwind.config.ts
├── tsconfig.json
├── next.config.js
└── package.json
# Development server
npm run dev
# Type checking
npm run type-check
# Lint
npm run lint
# Build for production
npm run build
# Start production server
npm start
Create the following table in your Supabase project:
CREATE TABLE conversations (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
title TEXT NOT NULL DEFAULT 'New Conversation',
messages JSONB DEFAULT '[]'::jsonb,
model TEXT DEFAULT 'gpt-4o',
created_at TIMESTAMPTZ DEFAULT now(),
updated_at TIMESTAMPTZ DEFAULT now()
);
-- Enable RLS
ALTER TABLE conversations ENABLE ROW LEVEL SECURITY;
-- Allow all operations for anon key (configure as needed)
CREATE POLICY "Allow all" ON conversations FOR ALL USING (true);
MIT License - see LICENSE for details.
Zouraiz Khan
Selected from shared topics, language and repository description—not editorial ratings.
emmanuel-adu /
Production-ready orchestration framework for AI applications featuring hybrid intent classification, dynamic context optimization, and sequential pipeline architecture
devtony42 /
Drop-in AI chatbot widget with multi-provider support (OpenAI, Anthropic, Gemini). One script tag. Streaming. Production ready.
StagMindVRithul /
A production-ready AI chatbot built with React, TypeScript, Express, and Anthropic Claude. Features real-time streaming responses, modern chat UI, scalable architecture, and a foundation for RAG, tool calling, and AI agent workflows.
claudexia-api /
Production-ready Next.js 15 + Claude chatbot starter, powered by Claudexia. Streaming, edge-ready, deploy in 5 minutes.