Files
History/presets/index.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

33 lines
1.0 KiB
JSON

[
{
"id": "wwii-1939",
"title": "World War II",
"startDate": "1939-09-01",
"summary": "The guns of September. Lead a major power through the greatest conflict in history."
},
{
"id": "coldwar-1955",
"title": "The Cold War",
"startDate": "1955-01-01",
"summary": "Two superpowers, one world. Proxy wars, space races, and the ever-present shadow of the bomb."
},
{
"id": "modern-2025",
"title": "Modern Day",
"startDate": "2025-01-01",
"summary": "A multipolar world of blocs, sanctions, and tech supremacy. Manage statecraft in the 21st century."
},
{
"id": "no-wwii-1940",
"title": "The Great Power Balance",
"startDate": "1940-01-01",
"summary": "A 1939 Anglo-German pact averted total war. Will the tense peace hold, or fracture into something worse?"
},
{
"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."
}
]