Marve10s /
Better-Fullstack
Scaffold production-ready full-stack apps in TypeScript, Rust, Python, Go, and Java with a visual builder and CLI. Choose your frontend, backend, database, auth, AI, payments, and DevOps integrations, all wired together.
Loading repository data…
StagMindVRithul / repository
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.
A production-ready, full-stack AI chatbot powered by Anthropic Claude. Features a modern streaming chat interface (ChatGPT-style) and a scalable Node.js backend with Server-Sent Events (SSE).
Built as an AI Engineering Mentor — specialized in LLMs, RAG, agentic AI, prompt engineering, and cloud AI platforms.
POST /api/chat — SSE streaming endpointclaude-sonnet-4-20250514)ai-chatbot/
├── api/ # Vercel serverless functions
│ ├── chat.ts # POST /api/chat (SSE streaming)
│ └── health.ts # GET /api/health
│
├── backend/ # Express server (local dev)
│ ├── src/
│ │ ├── app.ts # Express app setup
│ │ ├── server.ts # Server entry point
│ │ ├── config/ # Env, model, system prompt
│ │ ├── controllers/ # HTTP request handlers
│ │ ├── services/ # Anthropic Claude service
│ │ ├── routes/ # API routes
│ │ ├── middleware/ # Error handling
│ │ ├── utils/ # SSE, logging, validation
│ │ ├── types/ # TypeScript interfaces
│ │ └── errors/ # Custom error classes
│ ├── .env.example
│ ├── package.json
│ └── tsconfig.json
│
├── src/ # React frontend
│ ├── components/Chat/ # Chat UI components
│ ├── services/ # Streaming fetch client
│ ├── hooks/ # useAutoScroll
│ ├── utils/ # SSE parser, message helpers
│ ├── types/ # Message interfaces
│ └── config/ # API configuration
│
├── public/ # Static assets
├── index.html
├── vercel.json # Vercel deployment config
├── vite.config.ts # Vite + API proxy (local dev)
├── tailwind.config.js
└── package.json
git clone https://github.com/StagMindVRithul/AI_Chatbot_Vibe_Coded.git
cd AI_Chatbot_Vibe_Coded
cd backend
cp .env.example .env
Edit backend/.env and set your API key:
ANTHROPIC_API_KEY=your_anthropic_api_key_here
PORT=3001
NODE_ENV=development
# Backend
cd backend
npm install
# Frontend (from project root)
cd ..
npm install
Open two terminals:
Terminal 1 — Backend
cd backend
npm run dev
Terminal 2 — Frontend
npm run dev
Open http://localhost:5173 in your browser. The Vite dev server proxies /api requests to the backend on port 3001.
npm run dev:full
The project is configured for one-click Vercel deployment — frontend and API on the same domain.
| Route | Handler |
|---|---|
/ | React app (static) |
POST /api/chat | Serverless SSE streaming |
GET /api/health | Health check |
Ensure your repo is on GitHub (already configured).
StagMindVRithul/AI_Chatbot_Vibe_Codednpm run builddistIn Vercel → Project → Settings → Environment Variables, add:
| Variable | Example | Required |
|---|---|---|
AZURE_ANTHROPIC_RESOURCE | polycode-solutions | Yes (Azure) |
AZURE_ANTHROPIC_API_KEY | your-key | Yes (Azure) |
AZURE_ANTHROPIC_MODEL | your-deployment-name | Yes (Azure) |
Or for direct Anthropic API (instead of Azure):
| Variable | Required |
|---|---|
ANTHROPIC_API_KEY | Yes |
ANTHROPIC_MODEL | No |
Get Azure values from Azure AI Foundry → Build → Models → your deployment → Details tab.
Click Deploy. Vercel builds the frontend and deploys /api/chat as a serverless function.
curl -N -X POST https://your-app.vercel.app/api/chat \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"Hello"}]}'
Test the production setup locally (frontend + serverless API):
npm install -g vercel # once
cp .env.example .env # add your keys
npm run dev:vercel
api/chat is configured for 60s (maxDuration). Hobby plan may limit this; Pro recommended for long responses.VITE_ — they must stay server-side only./api/chat directly — no CORS or VITE_API_URL needed on Vercel.POST /api/chatStreams an AI response using Server-Sent Events.
Request body:
{
"messages": [
{ "role": "user", "content": "What is RAG?" }
],
"systemPrompt": "Optional override for the default system prompt"
}
SSE response stream:
data: {"chunk":"Retrieval"}
data: {"chunk":"-Augmented Generation"}
data: [DONE]
Error (before streaming starts):
{
"error": {
"message": "Validation error message",
"status": 400
}
}
GET /healthReturns { "status": "ok" }.
| Command | Description |
|---|---|
npm run dev | Start Vite dev server |
npm run build | Type-check and build for production |
npm run preview | Preview production build |
npm run lint | Run oxlint |
backend/)| Command | Description |
|---|---|
npm run dev | Start with hot reload (tsx) |
npm run build | Compile TypeScript to dist/ |
npm start | Run compiled production server |
npm run typecheck | Type-check without emitting |
POST /api/chat
│
▼
chat.routes.ts # HTTP wiring
│
▼
chat.controller.ts # Validation, SSE piping, abort handling
│
▼
anthropic.service.ts # client.messages.stream()
│
▼
Anthropic Claude API
User sends message
│
▼
Chat.tsx # State: messages, isStreaming
│
▼
streamChat.ts # fetch + ReadableStream reader
│
▼
sseParser.ts # Parse data: {"chunk":"..."} events
│
▼
appendChunkToMessage # Incremental React state update
│
▼
ChatMessageBubble # Renders with streaming cursor
Claude API → Anthropic SDK → Service (onChunk)
→ Controller (writeSseChunk) → Express res.write()
→ Browser ReadableStream → TextDecoder → SseParser
→ React setState → UI re-render
The backend ships with a default AI Engineering Mentor system prompt (backend/src/config/systemPrompt.ts). It is applied to every request unless overridden via the systemPrompt field in the request body.
The assistant specializes in LLMs, RAG, agentic AI, prompt engineering, LangChain, LangGraph, MCP, MLOps, vector databases, and cloud AI platforms (Azure OpenAI, AWS Bedrock, Anthropic, Hugging Face).
| Variable | Required | Description |
|---|---|---|
AZURE_ANTHROPIC_RESOURCE | Yes* | Resource name (e.g. polycode-solutions) |
AZURE_ANTHROPIC_API_KEY | Yes | API key from deployment Details tab |
AZURE_ANTHROPIC_MODEL | Yes | Deployment name from Azure portal |
AZURE_ANTHROPIC_ENDPOINT | Alt* | Full URL instead of AZURE_ANTHROPIC_RESOURCE |
| Variable | Required | Description |
|---|---|---|
ANTHROPIC_API_KEY | Yes* | Anthropic API key |
ANTHROPIC_MODEL | No | Model ID (default: claude-sonnet-4-20250514) |
* Azure vars take priority. If set, Anthropic vars are ignored.
| Variable | Default | Description |
|---|---|---|
PORT | 3001 | Backend port |
NODE_ENV | development | Environment |
Never commit
.envfiles. Copy.env.exampleas a template.
Features architected for but not yet implemented:
| Layer | Technologies |
|---|---|
| Frontend | React 19, TypeScript 5, Tailwind CSS 3, Vite 8 |
| Backend | Node.js 20, Express 4, TypeScript 5 |
| AI | Anthropic Claude (claude-sonnet-4-20250514) |
| Streaming | Server-Sent Events (SSE), ReadableStream, TextDecoder |
This project is private. All rights reserved.
StagMindVRithul — GitHub
Selected from shared topics, language and repository description—not editorial ratings.
Marve10s /
Scaffold production-ready full-stack apps in TypeScript, Rust, Python, Go, and Java with a visual builder and CLI. Choose your frontend, backend, database, auth, AI, payments, and DevOps integrations, all wired together.
prod-forge /
Prod Forge is an open-source reference that shows how to build and operate a production-ready system: AI-assisted development, quality gates, CI/CD, infrastructure, observability, migrations, and rollback.
benlamiro /
🚀 50 production-ready Generative AI SaaS apps — brand them, ship them, keep 100% of the revenue. Stripe billing · Google OAuth · Vercel deploy · MIT licensed
rajudandigam /
250+ real-world TypeScript AI projects: workflows, agents, and multi-agent systems with production-ready architecture, not chatbot demos.
agentailor /
Production-ready Next.js template for building AI agents with LangGraph.js. Features MCP integration for dynamic tool loading, human-in-the-loop tool approval, persistent conversation memory with PostgreSQL, and real-time streaming responses. Built with TypeScript, React, Prisma, and Tailwind CSS.
MUKE-coder /
Full-stack Go + React meta-framework. Scaffold a production-ready monorepo (API + web + admin + mobile + desktop) in one command — JWT/2FA/OAuth, jobs, mail, AI, file storage, observability, security batteries included.