Spacy logo - Dyson Sphere

Spacy

Conquer the galaxy, one empire at a time

A real-time multiplayer space strategy browser game, started on February 11, 2026. Full-stack TypeScript monorepo architecture with a procedural universe of 10 galaxies, tick-based combat and complex economy.

Project overview

Spacy is a space empire MMO where each player builds, researches, explores and battles in a persistent universe. The project showcases full-stack expertise with monorepo architecture, shared types via GitHub Packages, real-time Socket.IO communication and automated CI/CD.

10
Galaxies
15
Buildings
14
Technologies
17
Ships
10
Defenses
9
Fleet missions
Player Frontend

Nuxt 4 SSR app with Vuetify 4, TresJS galactic 3D rendering and real-time Socket.IO

Nuxt 4
Vue 3.5
Vuetify 4
TresJS
Three.js
Pinia 3
Backend API

Express + Prisma 7 API with PostgreSQL, Redis, OAuth Google/Discord, Stripe and 61 game services

Express
Prisma 7
PostgreSQL
Redis
Socket.IO
Stripe
Tick-Worker

Dedicated Node 22 service for game ticks (combat, expedition, mining, recycling, colonization). Horizontally scalable via FNV-1a sharding, communication through Redis Streams

Node 22
Redis Streams
Sharding FNV-1a
tsup
Sentry
Admin Backoffice

Vue 3 + Vite SPA with ECharts and Vue Flow visual editor for the DAG tech tree

Vue 3
Vite 7
ECharts
Vue Flow
ELK.js
SpacyTypes

Shared TypeScript package published on GitHub Packages: Socket.IO events, game and API types

TypeScript
GitHub Packages
npm workspaces

System architecture

A modern monorepo architecture with shared types and real-time communication

Loading...

Gameplay preview

Empire & Economy

Complete empire management: resources, installations and research tree

Dashboard

Player account overview with stats, rankings and real-time notifications

Empire view

Centralized management of all your colonized planets and their production queues

Resource production

Metal, Silicon, Deuterium and Energy: real-time economy balancing

Planetary installations

Build mines, refineries, power plants and specialized buildings (16 types)

Research tree

14 technologies with DAG dependency tree and cumulative bonuses per level

Construction & Combat

Build your fleet and defend your planets against other empires

Shipyard

Build 11 ship types: recon, frigates, cruisers, destroyers, bombers...

Orbital defenses

Turrets, lasers, missiles and planetary shields to repel attacks

Galactic exploration

Massive procedural universe: 10 galaxies × 100-500 systems × 1-8 planets randomly generated

Universe map

Navigate the 10 galaxies of the persistent universe with progressive discovery

Galactic view

Explore systems per galaxy with espionage probes and discovery missions

Solar system

1 to 8 planets per system, 5 star types with realistic habitable zones

Empire bestiary

Ships, buildings and defenses — every asset is designed to deliver a coherent visual experience.

Choose a category

Key features

A complete MMO with economy, research, ship construction, tick-based combat and procedural universe

Economy & Production

Complex economic system with 3 resources and energy balance

3 main resources: Metal, Silicon, Deuterium
Energy: solar plants + fusion reactors
Fully configurable exponential production
Limited storage with dedicated hangar buildings
15 planetary buildings (resources, storage, facilities)
Parallel construction queues with cost prediction
Technology research

DAG (Directed Acyclic Graph) tech tree with visual admin editor

14 technologies with dependency tree
5 categories: economy, exploration, propulsion, combat, logistics
Cumulative bonuses with exponential progression
Server-side prerequisite validation
Visual editor Vue Flow + ELK.js in backoffice
Anti-cycle graphology validation with Graphology
Naval construction

17 ship types: 6 utility, 10 military and 1 superweapon

Recon & exploration: Recon Drone, Scout
Logistics: Freighter, Salvager, Asteroid Miner, Ark, Solar Satellite
Light combat: Fighter, Interceptor, Frigate
Heavy combat: Cruiser, Battleship, Bomber, Destroyer, Tracker
Support: Supplier (heals allied units in combat)
Superweapon: P.A.S. (Strategic Annihilation Platform)
Tick-based combat & horizontal scaling

Real-time combat engine offloaded to horizontally scalable Tick-Workers

Shots proportional to fleet composition
Ballistic vs energy vs shield vs armor vs EMP mitigation
Recoverable debris fields after combat (configurable rate)
Dedicated Tick-Workers: FNV-1a 32-bit sharding, horizontal scaling without coordination
Asynchronous communication via Redis Streams (XADD/XREADGROUP)
9 missions: Attack, Transport, Deploy, Espionage, Colonize, Harvest, Expedition, Support, Mine
Procedural universe

Realistic procedural generation with stellar orbits, planet classes and habitable zones

10 galaxies × 100-500 systems × 1-8 planets (random generation)
5 star types with physically realistic habitable zones
3 planet classes: Dwarf, Rocky, Super-Earth
Progressive discovery through espionage and colonization
Combat-generated debris fields
Alcubierre engines for inter-galactic jumps (level 3+)
Diplomacy & Community

Alliances, chats, rankings and bounty system for a vibrant community

Alliance system with dedicated chat
Player-to-player private messaging
Multi-category rankings: global, economy, military, research, honor
Bounty system on enemies
Multi-language Codex documentation built-in
Real-time notifications via Socket.IO

Tech stack

End-to-end TypeScript, npm workspaces monorepo and shared types via GitHub Packages

Player Frontend
Nuxt 4.3
Vue 3.5
Vuetify 4
TresJS
Three.js
Pinia 3
Socket.IO Client
@nuxtjs/i18n
@nuxtjs/seo
TipTap 3
Embla Carousel
Sentry
Vitest 4
Backend API
Node 22
Express 4
Prisma 7
PostgreSQL 16
Redis 7
ioredis
Redlock
Socket.IO 4
JWT
OAuth2 Google
OAuth2 Discord
OTPAuth (TOTP 2FA)
Sharp
Stripe 20
Helmet
Graphology
Swagger + Scalar
Admin Backoffice
Vue 3.5
Vite 7
Vuetify 3.12
ECharts 6
Vue ChartJS
Vue Flow
ELK.js
Pinia
Tick-Worker
Node 22
TypeScript 5.3
tsup
tsx
ioredis
Redis Streams
Sharding FNV-1a
Sentry
@spacy-games/types
Infrastructure
PostgreSQL 16
Redis 7
MinIO S3
Cloudflare Turnstile
Sentry
DevOps & CI/CD
Docker Compose
Nginx
GitHub Actions
Harbor Registry
Multi-stage builds
GitHub Packages
npm workspaces
Git submodules

Metrics & impact

An ambitious and well-structured project, in active development for 2 months

Technical performance

Commits since Feb 11
373+ commits
Prisma models
99 models
Backend services
61 game services
Vue components
240+ components
Architecture
5 submodules + shared types
CI/CD
GitHub Actions → Harbor

Technical achievements

Procedural universe
10 random galaxies
Buildings + Technologies
15 + 14 (DAG)
Ship types
17 ships
Fleet missions
9 types
Internationalization
Multi-language (i18n)
Tick-Worker
Horizontal Redis Streams sharding

Ready to conquer the galaxy?

Join the Spacy community and build your space empire today