How arifkoyani/uconnect-ai-model works
UConnect AI is a browser-based chat interface for Ollama. A user opens the app, chooses a model and sends messages; the UI posts them to a Next.js API route, which forwards the request to Ollama and supports JSON or streamed responses. Separately, a status indicator polls a status route that checks Ollama availability. The excerpts show these routes and calls; other UI behavior is not fully sampled.
Main entry points: uconnect-webui.tsx Chat interface · page.tsx Home page · OlamaStatus.tsx Status indicator · route.ts Chat API
Components 7
Web interface
- Home page
app/page.tsx - Chat interface
components/uconnect-webui/uconnect-webui.tsx - Status indicator
components/uconnect-webui/OlamaStatus/OlamaStatus.tsx
API routes
- Chat API
app/api/uconnect/v2/api/route.ts - Status API
app/api/ollama-status/route.ts
Ollama integration
- Ollama service
Other components
- User
Connections 7
- User → Home page: opens app
README.md - Home page → Chat interface: renders
app/page.tsx - Chat interface → Chat API: posts messages
components/uconnect-webui/uconnect-webui.tsx - Chat interface → Status indicator: renders
components/uconnect-webui/uconnect-webui.tsx - Status indicator → Status API: polls status
components/uconnect-webui/OlamaStatus/OlamaStatus.tsx - Chat API → Ollama service: forwards chat
app/api/uconnect/v2/api/route.ts - Status API → Ollama service: checks availability
app/api/ollama-status/route.ts