Online space strategy game

Spacy

Conquer the galaxy, one empire at a time

A real-time multiplayer space strategy game, in the browser, with a Steam client. One account plays on several independent servers, in a procedural universe of 10 galaxies.

Conceived, designed and coded by one person

Empire dashboard in Spacy

Project overview

Each player builds, researches, explores and fights in a persistent universe, with alliances and rankings. The project brings together a public site, an account service, isolated game servers, scaled-out game engines, a Discord bot and a centralised administration.

  • 10 Galaxies
  • 18 Buildings
  • 14 Technologies
  • 17 Ships
  • 10 Defenses
  • 14 Fleet missions

Public site

Presentation, account, server selection and Codex

  • Nuxt 4
  • Vuetify 4
  • Three.js

Game client

The game in the browser: Nuxt 4, Vuetify 4, 3D rendering and real time

  • Nuxt 4
  • Vue 3.5
  • Vuetify 4
  • Three.js
  • Socket.IO

Steam client

The game on desktop, distributed by Steam

  • Electron
  • Vue 3
  • Vuetify

Accounts

One identity for every server, with two-step verification

  • Express 5
  • Prisma 7
  • Passport
  • PostgreSQL

Game server

One isolated server per universe: game rules, dated events and live broadcast

  • Express 5
  • Prisma 7
  • PostgreSQL
  • Redis
  • Socket.IO

Game engines

Combat, recycling, mining, colonisation and expedition, scaled on the fly

  • Node 22
  • Redis Streams

Communication

Discord bot and social posts

  • Express 5
  • discord.js 14
  • Prisma 7

Administration

All servers from one console, with explained settings

  • Vue 3.5
  • Vite 8
  • Vuetify 4
  • ECharts 6
  • Vue Flow

Shared code

Types, pure rules and translations shared by every service

  • TypeScript

System architecture

A public site, shared accounts and isolated game servers, linked by events

Loading...

Hover a component: its links light up in the diagram.

Applications 4 components

  • Public siteNuxt 4, Vuetify 4Public pages, account and server selection
  • Game clientNuxt 4, Three.jsThe game, in the browser, one client per server
  • Steam clientElectron, Vue 3The game on desktop, distributed by Steam
  • Back officeVue 3, Vite 8Administers every game server

Services 4 components

  • AccountsExpress 5, Prisma 7Identity shared by every server
  • Game serverExpress 5, Socket.IOGame rules and real time, one per server
  • Game enginesNode.js, Redis StreamsCombat, mining and expeditions, scaled out
  • CommunicationExpress 5, discord.jsDiscord bot and posts

Shared code and messages 1 component

  • Shared codeTypeScriptTypes, rules and translations shared by the services

Data 5 components

  • Accounts PostgreSQLPostgreSQL 16Accounts and purchases
  • Game PostgreSQLPostgreSQL 16One database per game server
  • RedisRedis 7Events, streams and cache
  • Object storageMinIO (S3)Avatars, images and game visuals
  • Communication PostgreSQLPostgreSQL 16Posts and tickets

Partners and third-party services 5 components

  • Third-party sign-inDiscord, GoogleSign-in with an existing account
  • StripePaymentStore purchases
  • SteamPlatformClient distribution
  • DiscordCommunityOnboarding, tickets and announcements
  • Social networksFacebook, Instagram, Threads, BlueskyGame posts

Gameplay preview

Empire bestiary

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

Key features

A complete game: economy, research, fleets, combat, exploration and social life

Economy & Production

Three resources, energy and construction queues

  • Metal, silicon and deuterium
  • Energy, storage and particle accelerator
  • 18 buildings: 15 planetary, 3 at headquarters
  • Construction queue extended by research
  • Settings fully configurable per server
  • Pioneer's guide for the first steps

Research and equipment

Technologies, modules and patents that shape the game

  • 14 technologies and their prerequisites
  • Equipment modules for ships
  • Bureau patents and Commander talents
  • Daily contracts and daily signal
  • Scientific surveys of stellar phenomena
  • Dependency tree visible in the administration

Fleets and missions

17 ships, 10 defences and 14 missions

  • Attack, transport, deployment and support
  • Espionage, Discovery and scientific survey
  • Colonisation, expedition and asteroid mining
  • Debris field recycling
  • Alliance bank deposit
  • Assault and guard of a Dyson sphere

Real-time combat

A dedicated engine, followed live and replayable

  • Turn-by-turn real-time combat, surrender and retreat threshold
  • Debris fields to salvage
  • Detailed reports and replays
  • Engines distributed and scaled on the fly
  • Asynchronous exchanges through Redis Streams
  • Attack plans coordinated between allies

Procedural universe

A persistent universe to discover

  • 10 galaxies, up to 500 systems, 15 positions
  • Fog of war lifted by Discovery or colonisation
  • Navigation from the universe down to the planet
  • Asteroid belts and expeditions
  • Alliance Dyson spheres
  • Several independent servers for one account

Diplomacy & Community

Alliances, rankings and a game that tells its story

  • Alliances: bank, Dyson sphere, coordinated attacks
  • Messaging, chat, friends and military relations
  • Category rankings and bounty bureau
  • Polls and live notifications
  • Discord bot: onboarding, tickets and announcements
  • Online Codex, in French and English

Tech stack

End-to-end TypeScript, one repository per service and shared code between them

Player Frontend
Nuxt 4Vue 3.5Vuetify 4Pinia 3Three.jsECharts 6Socket.IOVue Flowi18n FR/EN
Servers and accounts
Node 22TypeScriptExpress 5Prisma 7ZodSocket.IOPassportStripediscord.js 14
Game engines
Node 22Redis Streamsioredis
Administration and Steam client
Vue 3.5Vite 8Vuetify 4ECharts 6Vue FlowElectron
Infrastructure
PostgreSQL 16Redis 7MinIODockerSentry
DevOps & CI/CD
GitHub ActionsVitestSonarQubeGit submodules

The project in numbers

In active development since February 2026

Construction

Project repositories
10 repositories
Services
8 applications and services
Databases
PostgreSQL per game server
Quality
SonarQube on each repository
Tests
Vitest in each repository
CI/CD
GitHub Actions, automatic deployment

The game

Procedural universe
10 galaxies
Buildings + Technologies
18 + 14
Ship types
17 ships, 10 defences
Fleet missions
14 missions
Internationalization
French and English
Platforms
Browser and Steam

Ready to conquer the galaxy?

Join the Spacy community and build your space empire today