# siddhartha1011/novo architecture

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

- Interactive diagram: https://gitdiagram.com/siddhartha1011/novo
- Repository: https://github.com/siddhartha1011/novo

## Overview

Novo is a FastAPI backend for a social application. Clients enter through the API, where authentication routes handle signup, login, password recovery, and verification; protected profile routes authenticate requests before reading or updating profiles. Services use a Supabase client configured from environment-backed settings for authentication and profile storage. The excerpts show these main flows, but the README is empty and do not document broader social features.

Main entry points: [`backend/app/services/supabase.py`](https://github.com/siddhartha1011/novo/blob/main/backend/app/services/supabase.py) (Supabase client), [`backend/app/api/users/routes.py`](https://github.com/siddhartha1011/novo/blob/main/backend/app/api/users/routes.py) (Profile endpoints), [`backend/app/main.py`](https://github.com/siddhartha1011/novo/blob/main/backend/app/main.py) (FastAPI app), [`backend/app/api/auth/routes.py`](https://github.com/siddhartha1011/novo/blob/main/backend/app/api/auth/routes.py) (Auth endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API entrypoints"]
  node_app["FastAPI app<br/>[main.py]"]
  node_auth_router["Auth router export<br/>[__init__.py]"]
  node_user_router["User router export<br/>[__init__.py]"]
end

subgraph group_identity["Identity and access"]
  node_auth_routes["Auth endpoints<br/>[routes.py]"]
  node_auth_schema["Auth schemas<br/>[auth.py]"]
  node_auth_service["Auth service<br/>[auth_service.py]"]
  node_token_auth["Token verification<br/>[dependencies.py]"]
end

subgraph group_profiles["User profiles"]
  node_user_routes["Profile endpoints<br/>[routes.py]"]
  node_user_schema["Profile schemas<br/>[user.py]"]
  node_user_service["Profile service<br/>[user_service.py]"]
end

subgraph group_platform["Supabase integration"]
  node_supabase_adapter["Supabase client<br/>[supabase.py]"]
  node_settings["Runtime settings<br/>[config.py]"]
end

node_client(("API client"))
node_supabase[("Supabase platform")]

node_client -.->|"sends requests"| node_app
node_app -->|"mounts router"| node_auth_router
node_app -->|"mounts router"| node_user_router
node_auth_router -->|"exports router"| node_auth_routes
node_user_router -->|"exports router"| node_user_routes
node_auth_routes -->|"validates requests"| node_auth_schema
node_auth_routes -->|"calls"| node_auth_service
node_user_routes -->|"validates requests"| node_user_schema
node_user_routes -->|"authenticates via"| node_token_auth
node_user_routes -->|"calls"| node_user_service
node_auth_service -->|"uses client"| node_supabase_adapter
node_token_auth -->|"verifies token"| node_supabase_adapter
node_user_service -->|"uses client"| node_supabase_adapter
node_supabase_adapter -->|"reads credentials"| node_settings
node_supabase_adapter -->|"creates client"| node_supabase

click node_app "https://github.com/siddhartha1011/novo/blob/main/backend/app/main.py"
click node_auth_router "https://github.com/siddhartha1011/novo/blob/main/backend/app/api/auth/__init__.py"
click node_user_router "https://github.com/siddhartha1011/novo/blob/main/backend/app/api/users/__init__.py"
click node_auth_routes "https://github.com/siddhartha1011/novo/blob/main/backend/app/api/auth/routes.py"
click node_auth_schema "https://github.com/siddhartha1011/novo/blob/main/backend/app/schemas/auth.py"
click node_auth_service "https://github.com/siddhartha1011/novo/blob/main/backend/app/services/auth_service.py"
click node_token_auth "https://github.com/siddhartha1011/novo/blob/main/backend/app/api/auth/dependencies.py"
click node_user_routes "https://github.com/siddhartha1011/novo/blob/main/backend/app/api/users/routes.py"
click node_user_schema "https://github.com/siddhartha1011/novo/blob/main/backend/app/schemas/user.py"
click node_user_service "https://github.com/siddhartha1011/novo/blob/main/backend/app/services/user_service.py"
click node_supabase_adapter "https://github.com/siddhartha1011/novo/blob/main/backend/app/services/supabase.py"
click node_settings "https://github.com/siddhartha1011/novo/blob/main/backend/app/config.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_auth_router,node_user_router,node_client toneBlue
class node_auth_routes,node_auth_schema,node_auth_service,node_token_auth,node_supabase toneAmber
class node_user_routes,node_user_schema,node_user_service toneMint
class node_supabase_adapter,node_settings toneRose
```

## Components

### API entrypoints

- [FastAPI app](https://github.com/siddhartha1011/novo/blob/main/backend/app/main.py): `backend/app/main.py`
- [Auth router export](https://github.com/siddhartha1011/novo/blob/main/backend/app/api/auth/__init__.py): `backend/app/api/auth/__init__.py`
- [User router export](https://github.com/siddhartha1011/novo/blob/main/backend/app/api/users/__init__.py): `backend/app/api/users/__init__.py`

### Identity and access

- [Auth endpoints](https://github.com/siddhartha1011/novo/blob/main/backend/app/api/auth/routes.py): `backend/app/api/auth/routes.py`
- [Auth schemas](https://github.com/siddhartha1011/novo/blob/main/backend/app/schemas/auth.py): `backend/app/schemas/auth.py`
- [Auth service](https://github.com/siddhartha1011/novo/blob/main/backend/app/services/auth_service.py): `backend/app/services/auth_service.py`
- [Token verification](https://github.com/siddhartha1011/novo/blob/main/backend/app/api/auth/dependencies.py): `backend/app/api/auth/dependencies.py`

### User profiles

- [Profile endpoints](https://github.com/siddhartha1011/novo/blob/main/backend/app/api/users/routes.py): `backend/app/api/users/routes.py`
- [Profile schemas](https://github.com/siddhartha1011/novo/blob/main/backend/app/schemas/user.py): `backend/app/schemas/user.py`
- [Profile service](https://github.com/siddhartha1011/novo/blob/main/backend/app/services/user_service.py): `backend/app/services/user_service.py`

### Supabase integration

- [Supabase client](https://github.com/siddhartha1011/novo/blob/main/backend/app/services/supabase.py): `backend/app/services/supabase.py`
- [Runtime settings](https://github.com/siddhartha1011/novo/blob/main/backend/app/config.py): `backend/app/config.py`

### Other components

- **API client**
- **Supabase platform**

## Connections

- API client → FastAPI app: sends requests
- FastAPI app → Auth router export: mounts router (evidence: `backend/app/main.py`)
- FastAPI app → User router export: mounts router (evidence: `backend/app/main.py`)
- Auth router export → Auth endpoints: exports router (evidence: `backend/app/api/auth/__init__.py`)
- User router export → Profile endpoints: exports router (evidence: `backend/app/api/users/__init__.py`)
- Auth endpoints → Auth schemas: validates requests (evidence: `backend/app/api/auth/routes.py`)
- Auth endpoints → Auth service: calls (evidence: `backend/app/api/auth/routes.py`)
- Profile endpoints → Profile schemas: validates requests (evidence: `backend/app/api/users/routes.py`)
- Profile endpoints → Token verification: authenticates via (evidence: `backend/app/api/users/routes.py`)
- Profile endpoints → Profile service: calls (evidence: `backend/app/api/users/routes.py`)
- Auth service → Supabase client: uses client (evidence: `backend/app/services/auth_service.py`)
- Token verification → Supabase client: verifies token (evidence: `backend/app/api/auth/dependencies.py`)
- Profile service → Supabase client: uses client (evidence: `backend/app/services/user_service.py`)
- Supabase client → Runtime settings: reads credentials (evidence: `backend/app/services/supabase.py`)
- Supabase client → Supabase platform: creates client (evidence: `backend/app/services/supabase.py`)
