System & site architecture

Loreverse, the clear picture

Every section is a lens onto one graph. Below: the runtime stack (bottom → top) and the full route map grouped by area, with rendering strategy and build status.

101 entities16 relationships3 statements20 predicates15 traditions0 sourceslivenextplanned

Runtime stack

6. Client
SSR HTML for content + lazy client islands (graph · timeline · map · search)
5. Next.js (App Router)
RSC · ISR · structured data · route handlers
4. Caches
CDN edge · Redis (ego-networks, comparison matrices) · materialized views
3. Source of truth
PostgreSQL (+PostGIS) · Typesense (search) · Cloudflare R2 (media)
2. Editorial
Payload CMS, schema · drafts/versions · RBAC · media
1. Pipeline
Wikidata/DBpedia ingest → AI-assisted draft → human review → publish

Route map

Discovery

Entry surfaces, the doors in.

  • /ISR
  • /exploreISR
  • /searchSSR
  • /randomRedirect
  • /inspirationsISR
Home (cinematic, rails, continue)
Discovery hub
Universal search
Random discovery
Media inspirations

Explorers

One faceted-browse pattern, filtered by entity type.

  • /charactersSSR
  • /booksSSR
  • /relicsSSR
  • /religionsSSR
  • /conceptsSSR
Figure Explorer (gods · sages · adversaries)
Sacred-text Explorer
Relics Explorer (sacred & cursed objects)
Tradition Explorer
Concept & symbol Explorer

Entity (the atom)

One universal URL for all 28 types, both modes.

  • /e/[slug]ISR
  • /e/[slug]/graphIsland
  • /e/[slug]/timelineIsland
Encyclopedia Mode (universal page)
Entity-centered ego-network
Entity-centered timeline

Story Mode

Read an entity as an illustrated novel.

  • /storiesISR
  • /stories/[slug]ISR
  • /stories/[slug]/[chapter]ISR
Story Library
Story landing
Chapter reader (block-based)

Global Views

The same graph through temporal / spatial / network lenses.

  • /timelineIsland
  • /mapIsland
  • /graphIsland
Period/event timeline (Sumer→now)
Map explorer (MapLibre)
Knowledge graph (Sigma.js)

Comparison

Driven by tradition-scoped statements & equivalence edges.

  • /compareSSR
Compare religions & figures

User

Tasteful, depth-oriented progression.

  • /meSSR
  • /me/collectionsSSR
  • /me/bookmarksSSR
  • /me/achievementsSSR
Progress & knowledge map
Collections
Bookmarks
Achievements

System

Editorial factory + machine interfaces.

  • /adminCMS
  • /api/*API
  • /architectureSSR
Payload editorial CMS
REST + GraphQL (auto-generated)
This live architecture map

Full written spec with diagrams: docs/10-site-architecture-and-routes.md. Canonical entity URL is the universal /e/[slug]; explorers are browse facets that link into it.

← Back home