# vsspowerlifting/stratellar architecture

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

- Interactive diagram: https://gitdiagram.com/vsspowerlifting/stratellar
- Repository: https://github.com/vsspowerlifting/stratellar

## Overview

Stratellar is a source-linked strategic-materials policy and research product. Readers browse sourced policy measures, framing, finance, controls and reported industrial activity; compare capital and legal status; inspect project and source records; and retrieve data through downloads and APIs. Its local, read-only seed-data access layer supports the domain analytics and site views. The README documents the major capabilities and their distinctions; sampled source references confirm selected page-to-library and API-to-library links, but not every route’s implementation.

Main entry points: [`lib/data.ts`](https://github.com/vsspowerlifting/stratellar/blob/main/lib/data.ts) (Seed data access), [`app/projects/[id]/page.tsx`](https://github.com/vsspowerlifting/stratellar/blob/main/app/projects/%5Bid%5D/page.tsx) (Projects), [`app/api/v1/projects/[id]/route.ts`](https://github.com/vsspowerlifting/stratellar/blob/main/app/api/v1/projects/%5Bid%5D/route.ts) (Versioned API), [`app/capital/page.tsx`](https://github.com/vsspowerlifting/stratellar/blob/main/app/capital/page.tsx) (Financial commitments)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_evidence["Evidence records"]
  node_events["Policy events<br/>[page.tsx]"]
  node_framing["Official framing<br/>[page.tsx]"]
  node_capital["Financial commitments<br/>[page.tsx]"]
  node_controls["Legal controls<br/>[page.tsx]"]
  node_projects["Projects<br/>[page.tsx]"]
  node_sources["Source register<br/>[page.tsx]"]
  node_materials["Material records<br/>[page.tsx]"]
  node_market["Market series<br/>[page.tsx]"]
end

subgraph group_analysis["Policy analysis"]
  node_data["Seed data access<br/>[data.ts]"]
  node_capital_logic["Capital-control analytics<br/>[capital-control.ts]"]
  node_capital_intel["Capital intelligence"]
  node_industrial["Industrial response"]
  node_market_lib["Market data layer<br/>[markets.ts]"]
end

subgraph group_experience["Research experience"]
  node_research["Applied research<br/>[page.tsx]"]
  node_coverage["Coverage analysis<br/>[page.tsx]"]
end

subgraph group_access["Data access"]
  node_api["Versioned API<br/>[route.ts]"]
  node_exports["Data exports<br/>[page.tsx]"]
  node_manifest["Dataset manifest"]
  node_citations["Citation formats<br/>[route.ts]"]
end

node_reader(("Reader"))

node_reader -->|"browses"| node_events
node_reader -->|"compares framing"| node_framing
node_reader -->|"explores finance"| node_capital
node_reader -->|"reviews controls"| node_controls
node_reader -->|"inspects projects"| node_projects
node_reader -->|"checks provenance"| node_sources
node_reader -->|"explores materials"| node_materials
node_reader -->|"views series"| node_market
node_reader -->|"reads research"| node_research
node_events -.->|"reads records"| node_data
node_capital -->|"loads records"| node_data
node_capital -->|"derives totals"| node_capital_logic
node_controls -->|"loads records"| node_data
node_projects -->|"loads records"| node_data
node_projects -->|"derives capital"| node_capital_logic
node_projects -->|"derives intelligence"| node_capital_intel
node_projects -.->|"shows response"| node_industrial
node_coverage -->|"computes footprint"| node_data
node_data -->|"derives report"| node_coverage
node_market -->|"loads series"| node_market_lib
node_api -->|"loads records"| node_data
node_api -->|"derives controls"| node_capital_logic
node_api -->|"derives finance"| node_capital_intel
node_exports -->|"presents manifest"| node_manifest
node_exports -.->|"exports dataset"| node_data
node_reader -->|"requests data"| node_api
node_reader -->|"downloads data"| node_exports
node_reader -.->|"requests citations"| node_citations

click node_events "https://github.com/vsspowerlifting/stratellar/blob/main/app/events/page.tsx"
click node_framing "https://github.com/vsspowerlifting/stratellar/blob/main/app/framing/page.tsx"
click node_capital "https://github.com/vsspowerlifting/stratellar/blob/main/app/capital/page.tsx"
click node_controls "https://github.com/vsspowerlifting/stratellar/blob/main/app/controls/page.tsx"
click node_projects "https://github.com/vsspowerlifting/stratellar/blob/main/app/projects/%5Bid%5D/page.tsx"
click node_sources "https://github.com/vsspowerlifting/stratellar/blob/main/app/sources/%5Bid%5D/page.tsx"
click node_materials "https://github.com/vsspowerlifting/stratellar/blob/main/app/materials/page.tsx"
click node_market "https://github.com/vsspowerlifting/stratellar/blob/main/app/markets/page.tsx"
click node_data "https://github.com/vsspowerlifting/stratellar/blob/main/lib/data.ts"
click node_capital_logic "https://github.com/vsspowerlifting/stratellar/blob/main/lib/capital-control.ts"
click node_capital_intel "https://github.com/vsspowerlifting/stratellar/blob/main/lib/capital-intelligence.ts"
click node_industrial "https://github.com/vsspowerlifting/stratellar/blob/main/lib/industrial-response.ts"
click node_research "https://github.com/vsspowerlifting/stratellar/blob/main/app/research/page.tsx"
click node_coverage "https://github.com/vsspowerlifting/stratellar/blob/main/app/coverage/page.tsx"
click node_market_lib "https://github.com/vsspowerlifting/stratellar/blob/main/lib/markets.ts"
click node_api "https://github.com/vsspowerlifting/stratellar/blob/main/app/api/v1/projects/%5Bid%5D/route.ts"
click node_exports "https://github.com/vsspowerlifting/stratellar/blob/main/app/data/page.tsx"
click node_manifest "https://github.com/vsspowerlifting/stratellar/blob/main/lib/dataset-manifest.ts"
click node_citations "https://github.com/vsspowerlifting/stratellar/blob/main/app/api/cite/bibtex/route.ts"

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_events,node_framing,node_capital,node_controls,node_projects,node_sources,node_materials,node_market toneBlue
class node_data,node_capital_logic,node_capital_intel,node_industrial,node_market_lib toneAmber
class node_research,node_coverage toneMint
class node_api,node_exports,node_manifest,node_citations toneRose
class node_reader toneIndigo
```

## Components

### Evidence records

- [Policy events](https://github.com/vsspowerlifting/stratellar/blob/main/app/events/page.tsx): `app/events/page.tsx`
- [Official framing](https://github.com/vsspowerlifting/stratellar/blob/main/app/framing/page.tsx): `app/framing/page.tsx`
- [Financial commitments](https://github.com/vsspowerlifting/stratellar/blob/main/app/capital/page.tsx): `app/capital/page.tsx`
- [Legal controls](https://github.com/vsspowerlifting/stratellar/blob/main/app/controls/page.tsx): `app/controls/page.tsx`
- [Projects](https://github.com/vsspowerlifting/stratellar/blob/main/app/projects/%5Bid%5D/page.tsx): `app/projects/[id]/page.tsx`
- [Source register](https://github.com/vsspowerlifting/stratellar/blob/main/app/sources/%5Bid%5D/page.tsx): `app/sources/[id]/page.tsx`
- [Material records](https://github.com/vsspowerlifting/stratellar/blob/main/app/materials/page.tsx): `app/materials/page.tsx`
- [Market series](https://github.com/vsspowerlifting/stratellar/blob/main/app/markets/page.tsx): `app/markets/page.tsx`

### Policy analysis

- [Seed data access](https://github.com/vsspowerlifting/stratellar/blob/main/lib/data.ts): `lib/data.ts`
- [Capital-control analytics](https://github.com/vsspowerlifting/stratellar/blob/main/lib/capital-control.ts): `lib/capital-control.ts`
- [Capital intelligence](https://github.com/vsspowerlifting/stratellar/blob/main/lib/capital-intelligence.ts): `lib/capital-intelligence.ts`
- [Industrial response](https://github.com/vsspowerlifting/stratellar/blob/main/lib/industrial-response.ts): `lib/industrial-response.ts`
- [Market data layer](https://github.com/vsspowerlifting/stratellar/blob/main/lib/markets.ts): `lib/markets.ts`

### Research experience

- [Applied research](https://github.com/vsspowerlifting/stratellar/blob/main/app/research/page.tsx): `app/research/page.tsx`
- [Coverage analysis](https://github.com/vsspowerlifting/stratellar/blob/main/app/coverage/page.tsx): `app/coverage/page.tsx`

### Data access

- [Versioned API](https://github.com/vsspowerlifting/stratellar/blob/main/app/api/v1/projects/%5Bid%5D/route.ts): `app/api/v1/projects/[id]/route.ts`
- [Data exports](https://github.com/vsspowerlifting/stratellar/blob/main/app/data/page.tsx): `app/data/page.tsx`
- [Dataset manifest](https://github.com/vsspowerlifting/stratellar/blob/main/lib/dataset-manifest.ts): `lib/dataset-manifest.ts`
- [Citation formats](https://github.com/vsspowerlifting/stratellar/blob/main/app/api/cite/bibtex/route.ts): `app/api/cite/bibtex/route.ts`

### Other components

- **Reader**

## Connections

- Reader → Policy events: browses (evidence: `README.md`)
- Reader → Official framing: compares framing (evidence: `README.md`)
- Reader → Financial commitments: explores finance (evidence: `README.md`)
- Reader → Legal controls: reviews controls (evidence: `README.md`)
- Reader → Projects: inspects projects (evidence: `README.md`)
- Reader → Source register: checks provenance (evidence: `README.md`)
- Reader → Material records: explores materials (evidence: `README.md`)
- Reader → Market series: views series (evidence: `README.md`)
- Reader → Applied research: reads research (evidence: `README.md`)
- Policy events → Seed data access: reads records
- Financial commitments → Seed data access: loads records (evidence: `app/capital/page.tsx`)
- Financial commitments → Capital-control analytics: derives totals (evidence: `app/capital/page.tsx`)
- Legal controls → Seed data access: loads records (evidence: `app/controls/page.tsx`)
- Projects → Seed data access: loads records (evidence: `app/projects/[id]/page.tsx`)
- Projects → Capital-control analytics: derives capital (evidence: `app/projects/[id]/page.tsx`)
- Projects → Capital intelligence: derives intelligence (evidence: `app/projects/[id]/page.tsx`)
- Projects → Industrial response: shows response
- Coverage analysis → Seed data access: computes footprint (evidence: `app/coverage/page.tsx`)
- Seed data access → Coverage analysis: derives report (evidence: `lib/data.ts`)
- Market series → Market data layer: loads series (evidence: `app/markets/page.tsx`)
- Versioned API → Seed data access: loads records (evidence: `app/api/v1/projects/[id]/route.ts`)
- Versioned API → Capital-control analytics: derives controls (evidence: `app/api/v1/projects/[id]/route.ts`)
- Versioned API → Capital intelligence: derives finance (evidence: `app/api/v1/projects/[id]/route.ts`)
- Data exports → Dataset manifest: presents manifest (evidence: `app/data/page.tsx`)
- Data exports → Seed data access: exports dataset (evidence: `app/data/page.tsx`)
- Reader → Versioned API: requests data (evidence: `README.md`)
- Reader → Data exports: downloads data (evidence: `README.md`)
- Reader → Citation formats: requests citations
