Development
Requirements: Go, Node.js and Docker; kind and Helm for the demo cluster.
Local stack
Section titled “Local stack”make dev KUBE_CONTEXT=kind-dev # PostgreSQL, API, agent and UI in one terminal; Ctrl+C stops itThe parts can also run on their own:
| Command | |
|---|---|
make dev-db |
PostgreSQL in Docker on 127.0.0.1:55499 (make dev-db-stop) |
make dev-api |
API on 127.0.0.1:28090, reading the published feed |
make dev-agent KUBE_CONTEXT=<ctx> |
Agent reporting that kubeconfig context (read-only). There is no default, so it never reports a cluster by accident. |
make dev-ui |
UI with hot reload on http://127.0.0.1:5180 |
make feed |
Build the feed locally, then make dev-api FEED_URL=file://$PWD/dist/feed/ |
make test # unit testsmake test-db # + PostgreSQL integration testsmake lintReact, Tailwind CSS v4, shadcn/ui and Lucide. Add a component with npx shadcn@latest add <name> -y from apps/ui, then check that its imports use @/lib/utils.
The site is Starlight in docs/, published to GitHub Pages on every push to main that touches it.
cd docs && bun install && bun run devThe demo GIF and screenshots come from a kind cluster with well-known software:
make demo-cluster CHART=../charts/stable/cvedetector # kind cluster + workloads + Helm install, UI on :28180make demo # docs/public/demo.gif and docs/public/screenshots/make demo-cluster-deletedemo-cluster keeps its kubeconfig in .demo/kubeconfig and never touches your current context.