lite-oc: an orchestration server that starts with a double-click
There was a server that tied people, robots, tablets and AI companions together at a showroom. It ran well, but starting it took a database, a message queue, storage and observability tools in a long chain. To make it something anyone can run on their own laptop for learning, I rebuilt the same flow as a single file.
- Executable
- 1
- Build time
- 12days
- Commits
- 92
- Admin screens
- 27
What I cut
18services
lite-oc
- Go server
- SQLite file
- Built-in UI
Eighteen services that used to run separately — PostgreSQL, MQTT, S3, SQS, nginx, Grafana and the rest — collapse into a single executable.
The original system was a Docker Compose bundle: two layers of entry nginx, the Go server, PostgreSQL, an MQTT broker, S3 storage, an SQS queue, and observability tools such as Jaeger, Prometheus, Loki and Grafana. lite-oc removed them or folded them into a single process.
| Job | Before | lite-oc |
|---|---|---|
| Data | PostgreSQL container | One SQLite file |
| Realtime delivery | MQTT broker | SSE sent straight from the server |
| Images and video | S3 storage | Embedded in the binary + a local folder |
| Screens | Two containers, tablet and back office | Next.js static build embedded in Go |
| Robots | A real SPOT, robot arm and companion robot | Simulated inside the server |
| Distribution | Deploy with Compose on a server | Mac dmg, Windows zip, Docker |
How the AI runs
The agent is a simple loop built with Eino. The model calls a tool, the server runs it, hands the result back to the model, and answers once there is nothing left to call. No values are stuffed into the prompt; the model pulls the data it needs with tools.
- Question
- Model call
- Run tool
- Result to model
- Answer
You choose the model in the admin. Pick one of local Ollama, an OpenAI-compatible API, Claude or an in-house gateway and save, and the next call uses it without a restart. Answers stream over SSE as the tokens arrive.
A look around the screens
Stack
- Go 1.25
- Gin
- Eino
- SQLite (modernc)
- sqlc
- Next.js 16
- React 19
- Tailwind 4
- SSE
- systray
- Docker
The repository is private, so there is no link. If you’re curious, ask me by email.
Comments