Run the docmgr Search Web UI (React SPA) against the local docmgr HTTP API.
docmgr includes a web UI (React SPA) intended for local developer workflows: workspace browsing, search, ticket views, and a growing set of write operations.
It talks to the same HTTP API as other clients (see docmgr help http-api for the full route list), including:
GET /api/v1/search/docs (cursor pagination) / GET /api/v1/search/filesGET /api/v1/docs/get (doc viewer: frontmatter + markdown body)GET /api/v1/files/get (file viewer: text-only, safe roots) / GET /api/v1/files/raw (raw bytes, used for images)POST /api/v1/docs/meta, POST /api/v1/docs/relate, POST /api/v1/tickets/changelog, task add/check (write paths)GET /api/v1/workspace/status, GET /api/v1/workspace/doctorPOST /api/v1/index/refreshUI routes:
/workspace home (also /workspace/tickets, /workspace/topics, /workspace/topics/:topic, /workspace/recent)/workspace/health workspace health page (doctor report)/search search (docs / reverse lookup / files modes)/ticket/:ticket ticket detail with tabs: overview, documents, tasks, graph, changelog timeline/doc?path=... document viewer (markdown rendering)/file?root=repo|docs&path=... file viewer (syntax highlighted)Rendering and editing features:
mermaid code fences as diagrams, resolve relative links between docs, and load relative images (via the raw-file endpoint).RelatedFiles entries; changelog entries can be added from the ticket's changelog timeline tab.tasks.md section or create a new one).Search URL parameters (useful for sharing links):
sel=<docRelPath> selects a result (opens the desktop preview sidebar)preview=true opens the preview modal on mobileTwo-process loop:
http://localhost:3000http://127.0.0.1:3001The frontend proxies /api/* to the backend (no CORS setup needed).
make dev-backend
cd ui
pnpm install
pnpm dev
Open:
http://localhost:3000In embedded mode, docmgr api serve serves both:
/api/v1/* (JSON API)/ + /assets/* (SPA + assets, with SPA fallback routing)go generate ./internal/web
go build -tags "sqlite_fts5,embed" ./cmd/docmgr
./docmgr api serve --addr 127.0.0.1:8787 --root ttmp
Open:
http://127.0.0.1:8787// returns 404: run go generate ./internal/web (dev disk-serving) or build with -tags embed (embedded).fts_not_available: build/run with -tags sqlite_fts5./ focus search? open shortcuts modal↑/↓ select resultEnter open selected docAlt+1/2/3 switch Docs/Reverse/Files modeCtrl/Cmd+R refresh indexCtrl/Cmd+K copy selected doc path