Full-stack real-time group chat with Rust/Axum backend and Riot.js frontend. Features: - Auth (register/login/JWT), rooms, invites, WebSocket messaging - AI responses via OpenRouter with tool calling (Brave Search + web fetch) - Real-time tool usage indicators (searching/reading page) - Collapsible tool results in message bubbles - AI stats bar (model, tokens, speed, response time) persisted to DB - Room soft-delete, /clear command, dynamic model fetching - Markdown rendering with code highlighting and copy buttons Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
203 B
Plaintext
13 lines
203 B
Plaintext
# Server
|
|
BIND_ADDR=0.0.0.0:3001
|
|
RUST_LOG=info
|
|
|
|
# Database
|
|
DATABASE_URL=sqlite:chat.db?mode=rwc
|
|
|
|
# Auth
|
|
JWT_SECRET=change-me-to-a-random-secret
|
|
|
|
# OpenRouter API
|
|
OPENROUTER_API_KEY=sk-or-v1-your-key-here
|