A minimal, standalone chat interface for Hypery.
- 🚀 Lightweight Next.js app
- 💬 Real-time streaming responses
- 📝 Chat history persistence
- 🔑 API key authentication
- 🎨 Clean, minimal UI
- 📱 Responsive design
- Install dependencies:
npm install- Create
.env.local:
cp .env.local.example .env.local- Start development server:
npm run devThe app will run on http://localhost:3002
Set these environment variables in .env.local:
NEXT_PUBLIC_API_URL- Hypery API URL (default: http://localhost:3001/api/v1)NEXT_PUBLIC_APP_NAME- App name (default: Hypery Chat)
This is a pure frontend client that communicates with the main Hypery API. All data (chat history, messages, etc.) is stored in the main backend.
POST /api/v1/chats- Create chatGET /api/v1/chats- List chatsGET /api/v1/chats/:id- Get chat with messagesPATCH /api/v1/chats/:id- Update chatDELETE /api/v1/chats/:id- Delete chatPOST /api/v1/chats/:id/messages- Save messagePOST /api/v1/chat/completions- AI completionsGET /api/v1/models- Available models
Build for production:
npm run build
npm startThe app outputs a standalone build that can be deployed independently.