← games

ZENTHARYS

A multiplayer space strategy game where n8n and AI run the galaxy — AI empires, pirate raids, galactic events and battle stories.

status
Live
uptime
online · 190 ms · checked 13 minutes ago by n8n
year
2026
stack
n8n · LLM · PHP 8.3 · PostgreSQL · Docker · Vanilla JS (SVG) · Tailwind · PWA · Web Push · PHPUnit
built with
Claude Code
live
zentharys.georgiyyordanov.com
Zentharys Cyan Metallic Wordmark

Zentharys is my biggest project: a browser-based space strategy game where players build planets, research technologies, send fleets, fight, trade and form alliances. Seasons have a start, an end and a Hall of Fame.

The galaxy is run by n8n and AI. The game engine is in PHP, while n8n workflows decide when things happen and AI writes what players read:

  • AI empires – bot civilisations with their own planets and personalities (aggressive, trader, defender). They grow over time, and an n8n “Bot Director” decides when they attack. AI writes their threats and trade offers.
  • Pirate raids – n8n picks targets and builds the pirate fleet to counter the player’s strongest unit type.
  • Galactic events – n8n launches events that change the economy and the market for a limited time.
  • AI battle reports – every battle gets a short story in Bulgarian and English.
  • AI-named universe – each new season the galaxy, its stars and the black hole get their names from AI in a single request.
  • Season Manager – n8n closes the season, fills the Hall of Fame and starts a new galaxy.

Under the hood: a deterministic combat engine with seeded randomness and an in-game battle simulator, a drag-and-zoom galaxy map with real distances that set flight times, a Cartography range system, outposts to plunder, protectorates that pay tax, and a quest chain that guides new players. The game server never calls AI directly: events go through an outbox to n8n, so the game keeps running even if a workflow fails. The n8n workflows are generated from code, and the game logic is covered by unit and integration tests.

It runs in Docker on my TrueNAS server, in Bulgarian and English, and installs on a phone as a PWA with push alerts for incoming attacks. Registration is invite-only during playtesting.