Open & self-hostable No hardcoded ruleset No-code game builder

Build your own space-strategy game.
No engine code required.

AstroWebEngine is a data-driven engine for browser-based, multiplayer space-strategy games. Every rule — units, economy, combat, resources, the map itself — lives in a game definition you compose in a GUI. One engine, endlessly different games.

What it is

A whole game, defined — not hardcoded

The engine ships with zero baked-in ruleset. Units, buildings, research, defenses, the combat model, the resource economy, and the map layout are all a game definition (JSON or Python) — loaded at startup and hot-swappable at runtime. Compose one in the admin GUI, or author your own.

🎛️

No-code Build Game

Pick a base game, snap on rule fragments, edit ship / building / research stats, and activate — all from the admin panel, no code.

🧬

Fully data-driven

Resource model, combat, defenses, map depth, entire rosters — it's all one definition. Change the game without touching the engine.

🪐

One engine, many games

Flip single ↔ multi-resource, simultaneous ↔ round combat, level ↔ count defenses, hierarchical ↔ flat maps. Same code, different worlds.

🧩

Mods & prebuilt games

Package a ruleset as a mod, layer content and behaviour overlays on top, and ship your game for others to run.

🌌

Multiplayer & persistent

Procedural spiral galaxies, fleets, real combat, trade, and configurable NPC factions in a living, shared universe.

Self-host in minutes

FastAPI + SQLite, no frontend build step. docker compose up or python run.py and you're live on :8000.

Proof

One engine → two very different games

These aren't forks. They're the same engine running two different definitions — every axis below is a config choice, not a code change.

Classic

Classic Empire

Persistent 4X, AE-style
  • Economy Single resource
  • Combat Simultaneous
  • Defenses Upgrade levels
  • Map Galaxy → region → system → orbit
OGame-style

Stellar Conquest

Resource-race, OGame-style
  • Economy Metal / crystal / deuterium
  • Combat Round-based
  • Defenses Count-built
  • Map Galaxy → system → slot

Switch between them — or your own game — with one click in the admin panel.

Get started

Running in a couple of commands

# clone it
git clone https://github.com/StevenG916/AstroGameEngine
cd AstroGameEngine

# option A — Docker
docker compose up

# option B — Python
pip install -r requirements.txt
python run.py

# then open
http://localhost:8000

The first account you register is the admin. From there, open Build Game to pick a prebuilt ruleset, tweak the content, and launch a universe — or point the engine at a definition of your own.