# vinay-ampera/sentinel-ai architecture

> Architecture diagram of the GitHub repository vinay-ampera/sentinel-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vinay-ampera/sentinel-ai
- Repository: https://github.com/vinay-ampera/sentinel-ai

## Overview

Sentinel AI is currently a Stage 1 scaffold, not yet the evidence-driven quality platform described by its roadmap. The implemented user-facing workflow is only a React page that renders a placeholder; the backend separately exposes a liveness check returning `{status: "ok"}`. The README lists planned analysis, test planning and execution, security/accessibility checks, observability, investigation, regression proposals, and fix verification, but states these features do not exist yet. The graph therefore shows only implemented runtime components; no source for additional product stages was sampled.

Main entry points: [`backend/src/sentinel_ai/api/health.py`](https://github.com/vinay-ampera/sentinel-ai/blob/main/backend/src/sentinel_ai/api/health.py) (Health endpoint), [`backend/src/sentinel_ai/main.py`](https://github.com/vinay-ampera/sentinel-ai/blob/main/backend/src/sentinel_ai/main.py) (FastAPI app), [`frontend/src/app/App.jsx`](https://github.com/vinay-ampera/sentinel-ai/blob/main/frontend/src/app/App.jsx) (Placeholder page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_app["Placeholder page<br/>[App.jsx]"]
end

subgraph group_backend["Backend"]
  node_api["FastAPI app<br/>[main.py]"]
  node_health["Health endpoint<br/>[health.py]"]
end

node_user(("User"))
node_client(("HTTP client"))

node_user -.->|"views placeholder"| node_app
node_api -->|"registers router"| node_health
node_client -->|"requests health"| node_health

click node_app "https://github.com/vinay-ampera/sentinel-ai/blob/main/frontend/src/app/App.jsx"
click node_api "https://github.com/vinay-ampera/sentinel-ai/blob/main/backend/src/sentinel_ai/main.py"
click node_health "https://github.com/vinay-ampera/sentinel-ai/blob/main/backend/src/sentinel_ai/api/health.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_user,node_client toneBlue
class node_api,node_health toneAmber
```

## Components

### Frontend

- [Placeholder page](https://github.com/vinay-ampera/sentinel-ai/blob/main/frontend/src/app/App.jsx): `frontend/src/app/App.jsx`

### Backend

- [FastAPI app](https://github.com/vinay-ampera/sentinel-ai/blob/main/backend/src/sentinel_ai/main.py): `backend/src/sentinel_ai/main.py`
- [Health endpoint](https://github.com/vinay-ampera/sentinel-ai/blob/main/backend/src/sentinel_ai/api/health.py): `backend/src/sentinel_ai/api/health.py`

### Other components

- **User**
- **HTTP client**

## Connections

- User → Placeholder page: views placeholder (evidence: `README.md`)
- FastAPI app → Health endpoint: registers router (evidence: `backend/src/sentinel_ai/main.py`)
- HTTP client → Health endpoint: requests health (evidence: `backend/src/sentinel_ai/api/health.py`)
