Files
History/presets/aegis-2400.json
kamilkrzywdaandOpenCode e2936e85bb History: AI-driven alternate-history simulator
Pax Historia-style sim where the LLM is the world engine.

- React 19 + Vite 6 + Tailwind v4 + shadcn/ui frontend
- Express single-port backend (/api + /sse + built client + SPA fallback)
- SQLite (better-sqlite3) persistence, one row per game
- MapLibre choropleth map (OpenFreeMap dark + ISO_A3 regions)
- Defensive turn loop: strip fences, balanced-{} extract, parse, clamp 0-100,
  retry-once nudge, generic 'unclear' fallback; never crashes on bad output
- 5 seed presets (wwii-1939, coldwar-1955, modern-2025, no-wwii-1940, aegis-2400)
- LLM client over native fetch w/ injectable transport (mesh-bot pattern);
  LLM_STUB=1 deterministic transport for tests/e2e
- Unit (vitest, 19) + deterministic Playwright e2e
- Multi-stage node:22-slim Docker + Traefik (history.dev.kkhost.pl:4321)

Co-Authored-By: OpenCode <opencode@users.noreply.github.com>
2026-10-10 21:20:23 +00:00

59 lines
3.4 KiB
JSON

{
"id": "aegis-2400",
"title": "The Stellar Concord",
"startDate": "2400-01-01",
"summary": "Humanity spans the solar system in five warring polities. Rule a faction in the far-future cold war.",
"worldBackground": "The year is 2400. Four centuries after the first orbital colonies, humanity is no longer a single species of Earth but a family of polities spread across the solar system. The Stellar Concord — a fragile truce brokered after the Collapse of 2361 — binds them together more by mutual interest than by love. Each polity guards its own domain, its own economy, and its own vision of what humanity should become.\n\nEarth's Union holds the ancestral world and its teeming population. The Orbital Ring dominates the cislunar economy and the fold-gate transit lanes. The Red Collective of Mars has turned the desert into a forge and dreams of independence. The Outer Reach commands the ice-moons and the helium-3 that powers everything. The Deep Void, the most remote and the strangest, watches from the outer dark and plays long games. You are the ruler of one of these powers — and the Concord is only as strong as its weakest treaty.",
"simulationRules": [
"Science-fiction tone, but grounded and strategic: treat it like a cold war among space-faring civilizations.",
"Prefer gradual change: 1-4 events per turn; polities rise and fall over generations, not weeks.",
"Respect each polity's domain (its claimed regions) unless a decisive war or trade shift changes ownership.",
"No single polity may dominate the entire solar system; the Concord keeps the balance.",
"Resources — helium-3, fold-gates, shipbuilding — are the true currency of power.",
"Diplomacy, espionage, and economic leverage are the primary tools; full war is last and costly.",
"Keep all stat values between 0 and 100."
],
"nations": [
{
"id": "terra",
"name": "Earth Union",
"type": "major",
"stats": { "military": 80, "economy": 90, "stability": 85, "population": 100 },
"territory": ["GBR", "FRA", "DEU", "ITA", "ESP", "RUS", "UKR", "CHN", "IND"],
"relations": { "orbital": "ally", "mars": "rival", "outer": "hostile", "deep": "hostile" }
},
{
"id": "orbital",
"name": "The Orbital Ring",
"type": "major",
"stats": { "military": 70, "economy": 95, "stability": 80, "population": 60 },
"territory": ["USA", "CAN", "MEX", "BRA"],
"relations": { "terra": "ally", "mars": "ally", "outer": "rival", "deep": "hostile" }
},
{
"id": "mars",
"name": "Red Collective",
"type": "faction",
"stats": { "military": 75, "economy": 70, "stability": 75, "population": 40 },
"territory": ["AUS", "NZL", "SAU"],
"relations": { "terra": "rival", "orbital": "ally", "outer": "neutral", "deep": "rival" }
},
{
"id": "outer",
"name": "The Outer Reach",
"type": "major",
"stats": { "military": 60, "economy": 80, "stability": 70, "population": 30 },
"territory": ["JPN", "KOR", "MNG", "EGY"],
"relations": { "terra": "hostile", "orbital": "rival", "mars": "neutral", "deep": "ally" }
},
{
"id": "deep",
"name": "The Deep Void",
"type": "faction",
"stats": { "military": 50, "economy": 55, "stability": 65, "population": 20 },
"territory": ["ZAF", "NGA", "KEN"],
"relations": { "terra": "hostile", "orbital": "hostile", "mars": "rival", "outer": "ally" }
}
]
}