How xand0dev/eden-zero works
EDEN//0 is an artificial-life simulation observatory and emergent-world game. The main workflow is to configure a world, run its simulation in a worker, and inspect the resulting settlement, individuals, brains, and history. The graph also preserves the documented campaign, crisis, atlas, and metaprogression branches. Some game subsystems are represented at directory level because their implementation files were not sampled; their links are limited to references shown in the SOURCE INDEX or README.
Main entry points: world.ts World engine · WorldScreen.tsx World screen · game.ts Game progression · client.ts Simulation client
Components 19
Player experience
- App shell
src/app/App.tsx - World setup
src/components/Genesis.tsx - World screen
src/components/WorldScreen.tsx
Simulation runtime
- Simulation client
src/worker/client.ts - Simulation worker
src/worker/sim.worker.ts - World engine
src/simulation/world.ts - Shared server
server/index.ts
World and life
- Terrain generation
src/simulation/environment/terrain.ts - Human entities
src/simulation/entities/human.ts - Spiking brain
src/simulation/brain/network.ts - Genome and evolution
src/simulation/genetics/genome.ts
Game systems
- World game systems
src/simulation/game - Behavior atlas
src/simulation/game/atlas.ts - Game progression
src/ui/game.ts
Observation and records
- World renderer
src/render/renderer.ts - Journal
src/components/game/Journal.tsx - Player profile
src/meta/profile.ts - World saves
src/simulation/persistence/save.ts
Other components
- Player
Connections 23
- Player → App shell: opens
- App shell → World setup: shows setup
src/app/App.tsx - App shell → World screen: shows world
src/app/App.tsx - World setup → Simulation client: configures simulation
- World screen → Simulation client: controls simulation
src/components/WorldScreen.tsx - Simulation client → Simulation worker: sends messages
src/worker/client.ts - Simulation worker → World engine: runs world
src/worker/sim.worker.ts - Simulation worker → World engine: applies commands
src/worker/sim.worker.ts - World engine → Terrain generation: generates terrain
src/simulation/world.ts - World engine → World game systems: uses game systems
src/simulation/world.ts - World engine → Human entities: updates entities
src/simulation/world.ts - Human entities → Spiking brain: runs neural activity
src/simulation/entities/human.ts - Human entities → Genome and evolution: uses inherited traits
src/simulation/entities/human.ts - World engine → Simulation client: publishes snapshots
- World screen → World renderer: renders world
src/components/WorldScreen.tsx - World screen → World saves: saves and restores
src/components/WorldScreen.tsx - World game systems → Behavior atlas: classifies behaviors
src/simulation/game/atlas.ts - World screen → Game progression: shows game state
src/components/WorldScreen.tsx - Game progression → Behavior atlas: tracks discoveries
src/ui/game.ts - Game progression → Player profile: updates progress
src/ui/game.ts - Journal → Game progression: reads game state
src/components/game/Journal.tsx - Journal → Behavior atlas: shows atlas
src/components/game/Journal.tsx - Player → Shared server: may join shared play