// GAME · in development
Cosmic Horizon
A browser-native MMO where every asset is on-chain, every withdrawal is ZK-proven, and the economy runs on a separate simulation engine that auto-balances itself.
// CLIENT
Web client
Vite + TypeScript. Panel-based UI (Activity Bar + pixel-sprite icons), galaxy map with sector navigation, mission system, inventory, real-time chat. Hot-reload during dev.
// SERVER
Node.js / TypeScript game server
Stateful game loop, JWT-authed sessions, Socket.IO for live events. Behind Caddy at coho.mabus.ai. K8s deployment on a homelab cluster, namespace zaphod.
Blockchain integration
All assets live on chain — ERC-20 for resources, ERC-721 for ships and planets. The game server doesn't custody balances; it acts on signed transactions and observes chain state. Withdrawals use ZK proofs so on-chain ledger never sees in-game movement history. The Member Contract pattern lets players hold their own identity across sessions without server-side accounts.
Contracts are Foundry-built (Solidity 0.8.28, OpenZeppelin 5.6.1) in a private repo. 24/24 tests passing including the PlanetNFT.
Companion projects
- →Nexus — the economy simulation that tunes Cosmic Horizon's market dynamics offline. Monte Carlo + auto-balancing.
- →cosmic-horizon-matrix — the Element/Matrix widget that lets players embed the game in any Matrix room.
- →cosmic-horizon-youtube (ARIA) — lore narration pipeline. ElevenLabs voice (Edward + 21 NPC voices), ffmpeg assembly, headed for n8n automation.
- →cosmic-horizon-marketing — Astro + GSAP landing page, separate deployment.
Most blockchain games inherit web2 economy patterns and bolt tokens on top. Cosmic Horizon flips it: the economy IS the chain, the game is a UX on top of verifiable state.