A minimal local chat web app that replaces the n8n chat interface with a clean ChatGPT/Claude-style UI backed by Ollama.
- Node.js 18+
- Ollama installed and running locally
- The
llama3.2:1bmodel
ollama pull llama3.2:1b
npm install
npm startOpen http://localhost:3000.
Copy .env.example to .env to change the port, Ollama URL, or model:
PORT=3000
OLLAMA_URL=http://127.0.0.1:11434
OLLAMA_MODEL=llama3.2:1bFor development with Node’s built-in file watcher:
npm run devlocal-ai-chat/
├── server/server.js # Express API and Ollama proxy
├── public/index.html # Chat markup
├── public/style.css # Responsive light/dark UI
├── public/app.js # Chat behavior and Markdown rendering
├── .env.example # Local configuration template
└── docs/ # Architecture, About, and release notes
The browser sends messages only to Express. Express forwards them to Ollama and returns { "reply": "..." }. Ollama is never called directly by the frontend. Each page refresh starts a clean conversation; starter prompts rotate automatically.
- Unable to connect: confirm Ollama is running with
ollama serve. - Model not found: run
ollama pull llama3.2:1bor setOLLAMA_MODELin.env. - Port in use: change
PORTin.env. - Slow responses: the backend waits up to 45 seconds before returning a friendly timeout error.
See ABOUT.md, docs/architecture.md, docs/release.md, and CHANGELOG.md.