How ancientnerds/ancientmap works
Ancient Nerds is a research platform that combines archaeological records from many sources, serves them through a spatial API, and presents them on an interactive globe. The central workflow is source ingestion and normalization into PostgreSQL/PostGIS, then API delivery to the frontend for map exploration. Separate product branches provide Lyra research assistance, automated news and radar discovery, and a card game. The README documents the broad system flow; available source excerpts are incomplete, so edges are limited to documented relationships and clear excerpted calls.
Main entry points: routes.py Card game API · main.py REST API · database.py Unified spatial data · public_v1.py Public API v1
Components 24
Data ingestion
- Ingestion runner
pipeline/main.py - Source ingesters
pipeline/ingesters - Normalize records
pipeline/normalizers
Platform services
- Unified spatial data
pipeline/database.py - Public site scope
pipeline/utils/public_sites.py - REST API
api/main.py - Public API v1
api/routes/public_v1.py - API caching
api/cache.py - Authentication
api/routes/auth.py
Globe experience
- Research web app
ancient-nerds-map/src/App.tsx - Interactive 3D globe
ancient-nerds-map/src/components/Globe.tsx - Offline map support
ancient-nerds-map/src/services/OfflineStorage.ts
Research discovery
- Lyra research tools
api/services/lyra_tools.py - Theo research worker
api/services/theo_worker.py - Knowledge graph
pipeline/lyra/research_graph.py - Graph ingestion
pipeline/lyra/graph_full_ingest.py - Radar proposals
pipeline/lyra/prospector/pipeline.py - Pipeline status view
ancient-nerds-map/src/components/nerv/usePipelineStatus.ts
Community features
- Card game API
api/cardgame/routes.py - Card game models
api/cardgame/models.py - Card achievements
api/cardgame/achievements.py - Card packs
api/cardgame/packs.py
Other components
- Researcher
- Open data sources
Connections 23
- Open data sources → Source ingesters: supplies data
README.md - Ingestion runner → Source ingesters: runs ingesters
pipeline/main.py - Source ingesters → Normalize records: ingests records
README.md - Normalize records → Unified spatial data: stores records
README.md - Unified spatial data → REST API: serves data
README.md - REST API → Public API v1: mounts routes
api/main.py - Public API v1 → Unified spatial data: queries sites
api/routes/public_v1.py - Public API v1 → Public site scope: filters sites
api/routes/public_v1.py - REST API → API caching: uses cache
api/main.py - Researcher → Research web app: explores
README.md - Research web app → Interactive 3D globe: renders map
README.md - Interactive 3D globe → REST API: requests site data
README.md - Research web app → Offline map support: supports offline use
- Researcher → Lyra research tools: asks research questions
README.md - Theo research worker → Lyra research tools: runs research tools
- Theo research worker → Knowledge graph: builds research graph
api/services/theo_worker.py - Graph ingestion → Knowledge graph: writes graph data
pipeline/lyra/graph_full_ingest.py - Radar proposals → Unified spatial data: writes proposals
pipeline/lyra/prospector/pipeline.py - Pipeline status view → Researcher: reports pipeline status
- Researcher → Card game API: plays card game
README.md - Card game API → Card game models: reads card data
api/cardgame/routes.py - Card game API → Card packs: opens packs
api/cardgame/routes.py - Card game API → Card achievements: checks achievements
api/cardgame/routes.py