LICHTREICH /API GATEWAYv1.0
SOURCE OF TRUTH
GET /api/v1/context — Maschinenlesbare Gesamtübersicht. Jede AI-Session beginnt hier.
curl https://api.lichtreich.info/api/v1/context | jq .staffelstab
BASE URL
https://api.lichtreich.info
Auth: Authorization: Bearer <API_TOKEN> (nur für schreibende Endpunkte)
ENDPUNKTE
GET/api/v1/health
Service health check
GET/api/v1/projects
Alle lichtreich.info Projekte. ?status=live|wip|planned &tag=
{"count":18,"projects":[...]}
GET/api/v1/dns
DNS-Mapping vollständig (webgo)
{"domain":"lichtreich.info","records":[...]}
GET/api/v1/context
Source of Truth — Session-Start für AI-Provider. ?section=staffelstab|ai|db|projects|dns
{"version":"1.0","staffelstab":{...},"aiProviders":{...}}
GET/api/v1/prompts
Prompt-Bibliothek. ?category=system|legal|code &provider=claude|gemini|openai
{"prompts":[...]}
POST/api/v1/prompts🔑 token
Prompt hinzufügen/updaten
{"id":"...","content":"...","provider":"claude","category":"system"}
⚠ DB STRATEGY — OPEN
Current: BOB (demo), SchuleOS (MongoDB Atlas), Herr Künstler (VPS-local)
Target: Neon Postgres — shared + per-service schemas
Next step: vercel integration add neon → DATABASE_URL → migrate all projects
QUICK START — AI PROVIDER SESSION
# Neue Session starten (any provider):
curl https://api.lichtreich.info/api/v1/context | jq .

# Nur Staffelstab:
curl https://api.lichtreich.info/api/v1/context?section=staffelstab

# Provider-Routing:
curl https://api.lichtreich.info/api/v1/context?section=ai

# Mit gemini-cli:
gemini "$(curl -s https://api.lichtreich.info/api/v1/context?section=staffelstab) — was sind die nächsten Todos?"

# Mit claude:
claude "Context: $(curl -s https://api.lichtreich.info/api/v1/context?section=staffelstab | jq -r .rule)"
api.lichtreich.info · LICHTREICH.HUB · MrYueHang