# tejaswee-06/hackforge2026 architecture

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

- Interactive diagram: https://gitdiagram.com/tejaswee-06/hackforge2026
- Repository: https://github.com/tejaswee-06/hackforge2026

## Overview

ASTRA turns blockchain transfers and provenance-bearing public-source material into reviewable investigative leads, with a UI for graph, timeline, evidence, hypotheses, and reports. The graph follows the documented workflow and sampled wiring; several intelligence subfeatures are represented at their known module paths, but their internal calls were not sampled, so uncertain links are omitted.

Main entry points: [`backend/astra_intel/engine.py`](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/engine.py) (Investigation engine), [`backend/app/services/ingestion/service.py`](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/ingestion/service.py) (Transfer ingestion), [`backend/app/api/intel_routes.py`](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/api/intel_routes.py) (Analysis endpoints), [`backend/app/main.py`](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/main.py) (FastAPI application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Investigator interface"]
  node_ui["Investigation UI<br/>[main.jsx]"]
  node_frontend_api["API client<br/>[api.js]"]
end

subgraph group_api["API and ingestion"]
  node_backend_app["FastAPI application<br/>[main.py]"]
  node_routes["Investigation routes<br/>[routes.py]"]
  node_intel_routes["Analysis endpoints<br/>[intel_routes.py]"]
  node_ingestion["Transfer ingestion<br/>[service.py]"]
  node_provider["Blockchain provider<br/>[providers.py]"]
  node_normalizer["Transfer normalizer<br/>[normalizer.py]"]
  node_osint_ingest["OSINT collection<br/>[service.py]"]
  node_store[("Investigation store<br/>[store.py]")]
end

subgraph group_intelligence["Intelligence analysis"]
  node_analysis_service["Analysis service<br/>[analysis.py]"]
  node_engine["Investigation engine<br/>[engine.py]"]
  node_graph["Transaction graph<br/>[engine.py]"]
  node_algorithms["Graph algorithms<br/>[dsa.py]"]
  node_osint["OSINT matching<br/>[osint.py]"]
  node_correlation["Evidence correlation<br/>[correlation.py]"]
  node_scoring["Priority scoring<br/>[risk_scoring.py]"]
  node_temporal["Temporal analysis<br/>[temporal.py]"]
  node_falsification["Falsification checks<br/>[falsification.py]"]
  node_simulation["Scenario simulation<br/>[simulation.py]"]
  node_report["Analysis reports<br/>[report.py]"]
end

subgraph group_contracts["Domain contracts"]
  node_contracts["Transfer and intel schemas<br/>[transaction.py]"]
end

node_investigator(("Investigator"))

node_investigator -->|"uses"| node_ui
node_ui -->|"requests data"| node_frontend_api
node_frontend_api -.->|"calls API"| node_backend_app
node_backend_app -->|"registers"| node_routes
node_backend_app -->|"registers"| node_intel_routes
node_routes -->|"ingests transfers"| node_ingestion
node_ingestion -->|"fetches transfers"| node_provider
node_ingestion -->|"normalizes records"| node_normalizer
node_routes -->|"reads and writes"| node_store
node_intel_routes -->|"runs analysis"| node_analysis_service
node_analysis_service -->|"delegates analysis"| node_engine
node_engine -->|"uses algorithms"| node_algorithms
node_engine -->|"extracts indicators"| node_osint
node_engine -->|"correlates evidence"| node_correlation
node_engine -->|"scores leads"| node_scoring
node_engine -.->|"builds graph"| node_graph
node_engine -.->|"analyzes timing"| node_temporal
node_engine -.->|"checks hypotheses"| node_falsification
node_engine -.->|"supports scenarios"| node_simulation
node_intel_routes -->|"serves reports"| node_report
node_osint_ingest -.->|"provides documents"| node_intel_routes
node_ingestion -->|"produces transfers"| node_contracts

click node_ui "https://github.com/tejaswee-06/hackforge2026/blob/main/frontend/src/main.jsx"
click node_frontend_api "https://github.com/tejaswee-06/hackforge2026/blob/main/frontend/src/services/api.js"
click node_backend_app "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/main.py"
click node_routes "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/api/routes.py"
click node_intel_routes "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/api/intel_routes.py"
click node_ingestion "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/ingestion/service.py"
click node_provider "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/ingestion/providers.py"
click node_normalizer "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/ingestion/normalizer.py"
click node_osint_ingest "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/osint_ingest/service.py"
click node_store "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/store.py"
click node_analysis_service "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/analysis.py"
click node_engine "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/engine.py"
click node_graph "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/graph_engine/engine.py"
click node_algorithms "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/dsa.py"
click node_osint "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/osint.py"
click node_correlation "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/correlation.py"
click node_scoring "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/risk_scoring.py"
click node_temporal "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/temporal.py"
click node_falsification "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/falsification.py"
click node_simulation "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/simulation.py"
click node_report "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/report.py"
click node_contracts "https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/schemas/transaction.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_ui,node_frontend_api toneBlue
class node_backend_app,node_routes,node_intel_routes,node_ingestion,node_provider,node_normalizer,node_osint_ingest,node_store toneAmber
class node_analysis_service,node_engine,node_graph,node_algorithms,node_osint,node_correlation,node_scoring,node_temporal,node_falsification,node_simulation,node_report toneMint
class node_contracts toneRose
class node_investigator toneIndigo
```

## Components

### Investigator interface

- [Investigation UI](https://github.com/tejaswee-06/hackforge2026/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [API client](https://github.com/tejaswee-06/hackforge2026/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`

### API and ingestion

- [FastAPI application](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/main.py): `backend/app/main.py`
- [Investigation routes](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/api/routes.py): `backend/app/api/routes.py`
- [Analysis endpoints](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/api/intel_routes.py): `backend/app/api/intel_routes.py`
- [Transfer ingestion](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/ingestion/service.py): `backend/app/services/ingestion/service.py`
- [Blockchain provider](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/ingestion/providers.py): `backend/app/services/ingestion/providers.py`
- [Transfer normalizer](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/ingestion/normalizer.py): `backend/app/services/ingestion/normalizer.py`
- [OSINT collection](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/osint_ingest/service.py): `backend/app/services/osint_ingest/service.py`
- [Investigation store](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/store.py): `backend/app/store.py`

### Intelligence analysis

- [Analysis service](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/analysis.py): `backend/app/services/analysis.py`
- [Investigation engine](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/engine.py): `backend/astra_intel/engine.py`
- [Transaction graph](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/services/graph_engine/engine.py): `backend/app/services/graph_engine/engine.py`
- [Graph algorithms](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/dsa.py): `backend/astra_intel/dsa.py`
- [OSINT matching](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/osint.py): `backend/astra_intel/osint.py`
- [Evidence correlation](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/correlation.py): `backend/astra_intel/correlation.py`
- [Priority scoring](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/risk_scoring.py): `backend/astra_intel/risk_scoring.py`
- [Temporal analysis](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/temporal.py): `backend/astra_intel/temporal.py`
- [Falsification checks](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/falsification.py): `backend/astra_intel/falsification.py`
- [Scenario simulation](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/simulation.py): `backend/astra_intel/simulation.py`
- [Analysis reports](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/astra_intel/report.py): `backend/astra_intel/report.py`

### Domain contracts

- [Transfer and intel schemas](https://github.com/tejaswee-06/hackforge2026/blob/main/backend/app/schemas/transaction.py): `backend/app/schemas/transaction.py`

### Other components

- **Investigator**

## Connections

- Investigator → Investigation UI: uses
- Investigation UI → API client: requests data (evidence: `frontend/src/main.jsx`)
- API client → FastAPI application: calls API
- FastAPI application → Investigation routes: registers (evidence: `backend/app/main.py`)
- FastAPI application → Analysis endpoints: registers (evidence: `backend/app/main.py`)
- Investigation routes → Transfer ingestion: ingests transfers (evidence: `backend/app/api/routes.py`)
- Transfer ingestion → Blockchain provider: fetches transfers (evidence: `backend/app/services/ingestion/service.py`)
- Transfer ingestion → Transfer normalizer: normalizes records (evidence: `backend/app/services/ingestion/service.py`)
- Investigation routes → Investigation store: reads and writes (evidence: `backend/app/api/routes.py`)
- Analysis endpoints → Analysis service: runs analysis (evidence: `backend/app/api/intel_routes.py`)
- Analysis service → Investigation engine: delegates analysis (evidence: `backend/app/services/analysis.py`)
- Investigation engine → Graph algorithms: uses algorithms (evidence: `backend/astra_intel/engine.py`)
- Investigation engine → OSINT matching: extracts indicators (evidence: `backend/astra_intel/engine.py`)
- Investigation engine → Evidence correlation: correlates evidence (evidence: `backend/astra_intel/engine.py`)
- Investigation engine → Priority scoring: scores leads (evidence: `backend/astra_intel/engine.py`)
- Investigation engine → Transaction graph: builds graph
- Investigation engine → Temporal analysis: analyzes timing
- Investigation engine → Falsification checks: checks hypotheses
- Investigation engine → Scenario simulation: supports scenarios
- Analysis endpoints → Analysis reports: serves reports (evidence: `backend/app/api/intel_routes.py`)
- OSINT collection → Analysis endpoints: provides documents (evidence: `backend/app/api/intel_routes.py`)
- Transfer ingestion → Transfer and intel schemas: produces transfers (evidence: `backend/app/services/ingestion/service.py`)
