A minimal web chatbot built with:
- Vercel AI SDK (React + server actions)
- AiMo Network (as the model provider layer)
This repo demonstrates a simple chat UI with streaming responses and a lightweight Next.js 15 app setup.
- Node.js 18.17+ (or 20+ recommended)
- pnpm 8+ installed globally
To install pnpm: corepack enable corepack prepare pnpm@latest --activate
-
Clone and enter the project: git clone cd vercel-chatbot-example
-
Create your environment file from the example: cp .env.example .env
-
Fill in the required keys in
.env:- API key for AiMo Network
- Any base URLs as required by your setup
- Refer to
.env.examplefor the full list of variables
-
Install dependencies: pnpm install
-
Start the dev server: pnpm dev
Open http://localhost:3000 to use the chatbot.
-
Development: pnpm dev
-
Production build: pnpm build
-
Start production server (after build): pnpm start
-
Lint and format (Biome): pnpm lint pnpm format
- This project uses Next.js App Router and React 19.
- The chat endpoint leverages Vercel AI SDK for streaming and toolable responses.