# suhelbhatari/europath-prod architecture

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

- Interactive diagram: https://gitdiagram.com/suhelbhatari/europath-prod
- Repository: https://github.com/suhelbhatari/europath-prod

## Overview

Europath is presented as a European immigration intelligence platform, but the sampled runtime is largely a scaffold: the frontend displays a feature summary, the Django API exposes health and an empty policy registry, the Node API exposes health and an empty events endpoint, and the worker only logs readiness. The README describes broader policy monitoring, eligibility, recommendations, and evidence-backed AI capabilities; their implementations and wiring are not shown, so they are not expanded into speculative components.

Main entry points: [`apps/django-api/api/urls.py`](https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/api/urls.py) (API routes), [`apps/django-api/config/urls.py`](https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/config/urls.py) (Django routing), [`apps/django-api/config/settings.py`](https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/config/settings.py) (Django configuration), [`apps/frontend/src/main.jsx`](https://github.com/suhelbhatari/europath-prod/blob/main/apps/frontend/src/main.jsx) (Intelligence dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Presentation"]
  node_frontend["Intelligence dashboard<br/>[main.jsx]"]
end

subgraph group_services["API services"]
  node_django_routes["Django routing<br/>[urls.py]"]
  node_api_routes["API routes<br/>[urls.py]"]
  node_django_views["Health and policies<br/>[views.py]"]
  node_django_config["Django configuration<br/>[settings.py]"]
  node_node_api["Events API<br/>[server.js]"]
end

subgraph group_operations["Event processing"]
  node_worker["Event worker<br/>[worker.js]"]
end

node_user(("Platform user"))
node_postgres[("PostgreSQL")]

node_user -->|"views"| node_frontend
node_django_routes -->|"routes to"| node_api_routes
node_api_routes -->|"dispatches"| node_django_views
node_django_config -->|"configures"| node_postgres

click node_frontend "https://github.com/suhelbhatari/europath-prod/blob/main/apps/frontend/src/main.jsx"
click node_django_routes "https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/config/urls.py"
click node_api_routes "https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/api/urls.py"
click node_django_views "https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/api/views.py"
click node_django_config "https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/config/settings.py"
click node_node_api "https://github.com/suhelbhatari/europath-prod/blob/main/apps/node-api/src/server.js"
click node_worker "https://github.com/suhelbhatari/europath-prod/blob/main/apps/worker/src/worker.js"

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_frontend,node_user toneBlue
class node_django_routes,node_api_routes,node_django_views,node_django_config,node_node_api,node_postgres toneAmber
class node_worker toneMint
```

## Components

### Presentation

- [Intelligence dashboard](https://github.com/suhelbhatari/europath-prod/blob/main/apps/frontend/src/main.jsx): `apps/frontend/src/main.jsx`

### API services

- [Django routing](https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/config/urls.py): `apps/django-api/config/urls.py`
- [API routes](https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/api/urls.py): `apps/django-api/api/urls.py`
- [Health and policies](https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/api/views.py): `apps/django-api/api/views.py`
- [Django configuration](https://github.com/suhelbhatari/europath-prod/blob/main/apps/django-api/config/settings.py): `apps/django-api/config/settings.py`
- [Events API](https://github.com/suhelbhatari/europath-prod/blob/main/apps/node-api/src/server.js): `apps/node-api/src/server.js`

### Event processing

- [Event worker](https://github.com/suhelbhatari/europath-prod/blob/main/apps/worker/src/worker.js): `apps/worker/src/worker.js`

### Other components

- **Platform user**
- **PostgreSQL**

## Connections

- Platform user → Intelligence dashboard: views (evidence: `apps/frontend/src/main.jsx`)
- Django routing → API routes: routes to (evidence: `apps/django-api/config/urls.py`)
- API routes → Health and policies: dispatches (evidence: `apps/django-api/api/urls.py`)
- Django configuration → PostgreSQL: configures (evidence: `apps/django-api/config/settings.py`)
