Files
aether-chronicles/backend
arch_agent face8023a4 v0.2.0 — M7: LLM Integration Frontend ↔ Backend
- api.js: API bridge to FastAPI backend
- Dynamic NPC dialogues via gemma4:12b (cached 30s)
- Periodic world event generation (every ~10s)
- Event validation (no soft-lock)
- Backend health check on startup
- Fallback to static dialogue if LLM offline
- Tested: events , dialogues 
2026-07-17 20:24:58 +02:00
..

Aether Chronicles — Backend

FastAPI server for LLM integration, game state persistence, and world event generation.

Setup

python3 -m venv venv
source venv/bin/activate
pip install fastapi uvicorn ollama
uvicorn main:app --reload --port 8000

Endpoints

  • GET /api/player — Get player state
  • POST /api/player/move — Update player position
  • GET /api/events/{map_id} — Get active events for a map
  • POST /api/llm/event — Generate a new event via LLM
  • POST /api/llm/dialogue — Generate NPC dialogue via LLM