# Graph **Container(s):** stellaops-graph-api **Slot:** 20 | **Port:** 8080 | **Consumer Group:** graph **Resource Tier:** medium > **Note:** Cartographer (Slot 21) has been merged into graph-api. The `cartographer.stella-ops.local` > hostname is now a network alias on the graph-api container for backwards compatibility. > The Scheduler's `Cartographer.BaseAddress` config now points to `http://graph.stella-ops.local`. ## Purpose The Graph API service provides a dependency and service graph for the Stella Ops platform. It supports graph search, path queries, diff computation, lineage tracking, overlay projections, saved views, and export functionality. It serves as the central topology store for understanding relationships between components, images, and services. It also hosts the Graph Indexer pipeline (SBOM ingestion, analytics, incremental change-stream processing) and the Cartographer-compatible build/overlay endpoints consumed by the Scheduler Worker. ## API Surface - `graph` (via Router) — graph search, path queries, diff, lineage, overlay, saved views, export (GEXF/DOT/JSON), edge metadata, audit log, rate-limited access - `/api/graphs/builds` (POST, GET) — Cartographer-compatible build endpoints (Scheduler contract) - `/api/graphs/overlays` (POST, GET) — Cartographer-compatible overlay endpoints (Scheduler contract) ## Storage PostgreSQL (via `Postgres:Graph` for saved views and graph data); falls back to in-memory repository when no Postgres connection is configured. Graph Indexer Persistence writes to `graph.graph_nodes` and `graph.graph_edges` tables. ## Background Workers - `GraphSavedViewsMigrationHostedService` — migrates saved views on startup - `GraphAnalyticsHostedService` — runs graph analytics pipeline (centrality, clustering) - `GraphChangeStreamProcessor` — processes incremental graph change events