From c9bcb82a898f423b576085c71d9ce5a8e2fc80cf Mon Sep 17 00:00:00 2001 From: wb Date: Wed, 6 May 2026 15:35:54 +0200 Subject: [PATCH] docs(diarization-ui): add CLAUDE.md with architecture and dev commands Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..1e5c77b --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,57 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Commands + +**Build and run (Docker):** +```bash +cp .env.example .env # first time only +docker compose up -d --build +``` +UI available at `http://127.0.0.1:8094/` + +**Run locally without Docker:** +```bash +pip install -r requirements.txt +API_BASE=http://... OLLAMA_BASE_URL=http://... DB_PATH=./ui.db uvicorn app:app --host 0.0.0.0 --port 8094 --reload +``` + +**Publish container:** +```bash +docker build -t registry.aquantico.lan/claw/diarization-ui:latest . +docker push registry.aquantico.lan/claw/diarization-ui:latest +``` + +There are no tests and no linter configured. + +## Architecture + +The entire application lives in a single file: `app.py` (~1550 lines). There are no templates, no separate frontend build, and no additional modules. + +### Request handling +All routes are FastAPI endpoints. HTML is returned as server-rendered Python f-strings using Bootstrap 5.3 (CDN) for layout. Inline `