How bdubdesigns/runespace works
RuneSpace is a browser-first sci-fi RPG built as a server-authoritative modular monolith. A player creates a character, enters Play, and performs activities whose outcomes and progression are resolved and persisted on the server; the Play server composes activity state for the client shell. The graph also preserves account access, social, moderation, and public-world capabilities documented or represented in the tree. Some subsystem links are documented only at a high level; unsampled implementation details are not inferred.
Main entry points: actions.ts Server actions · rune-space.ts PostgreSQL data · PlayContext.tsx Play client shell · play.ts Play orchestration and state
Components 23
Player experience
- Registration and sign-in
features/auth/SignInForm.tsx - Character management
features/characters/CreateCharacterForm.tsx - Play client shell
features/play/PlayContext.tsx - Storage transfers
features/storage/StorageTransferSurface.tsx
Gameplay systems
- Travel and scavenging
features/travel/JourneyPanel.tsx - Mining
features/mining/MiningActivity.tsx - Refining
features/refining/RefiningConsole.tsx - Fabrication and tinkering
features/fabrication/FabricationStation.tsx - Welding and repair
features/welding/RepairWorkPanel.tsx - Inventory and equipment
features/inventory/InventoryPanel.tsx - Missions and progression
features/missions/MissionLogPanel.tsx - Locations and NPCs
features/location-scene/LocationSurface.tsx - Play orchestration and state
server/play.ts - Server actions
server/actions.ts - Player and NPC trade
server/trade.ts
Accounts and social
- Authentication
server/auth.ts - Gameplay access and ownership
server/gameplay-access.ts - Chat and realtime
server/chat.ts
Operations and content
- Moderation
server/moderation-notices.ts - Admin console
features/admin/AdminModerationPanel.tsx - Wiki and updates
features/public-site/PublicWikiPage.tsx
Persistence
- PostgreSQL data
db/rune-space.ts
Other components
- Player
Connections 24
- Player → Registration and sign-in: registers
README.md - Player → Character management: creates character
README.md - Player → Play client shell: plays
README.md - Play client shell → Play orchestration and state: loads state
features/play/PlayContext.tsx - Play client shell → Server actions: submits commands
features/inventory/useEquipCommand.ts - Server actions → Play orchestration and state: dispatches gameplay
server/actions.ts - Play orchestration and state → PostgreSQL data: reads and persists
server/play.ts - Server actions → Travel and scavenging: resolves activity
- Server actions → Mining: resolves activity
server/actions.ts - Server actions → Refining: resolves activity
server/actions.ts - Server actions → Fabrication and tinkering: dispatches commands
server/actions.ts - Server actions → Welding and repair: dispatches commands
server/actions.ts - Server actions → Missions and progression: completes missions
server/actions.ts - Play client shell → Storage transfers: renders storage
- Storage transfers → Inventory and equipment: moves items
- Character management → Gameplay access and ownership: checks access
- Gameplay access and ownership → PostgreSQL data: reads access state
server/gameplay-access.ts - Gameplay access and ownership → Authentication: uses identity
- Chat and realtime → PostgreSQL data: stores messages
- Moderation → PostgreSQL data: reads sanctions
server/moderation-notices.ts - Admin console → Moderation: manages cases
- Player and NPC trade → PostgreSQL data: persists trades
- Locations and NPCs → Play orchestration and state: uses world state
- Wiki and updates → Player: presents game info