Phase 1: data pipeline (Postgres+Redis with in-memory fallback, mock telemetry publisher, WebSocket fan-out, hub /debug page) #1

Merged
Arnike merged 1 commits from phase-1 into main 2026-06-02 19:02:28 +00:00
Owner
  • packages/db: postgres.js + ioredis wrapper, StateStore interface with
    InMemory + Postgres implementations, schema migration runner
  • apps/api: refactored to use @kerbal-rt/db; live WebSocket hub subscribes
    to store changes and broadcasts to all clients
  • apps/tools/mock-telemetry: Node script that generates realistic KSP
    state and POSTs to /api/v1/ingest at 1Hz (uses same keplerian math
    as the live-map renderer)
  • apps/hub: new /debug page that connects to /api/v1/live and shows
    the live state
  • ksp/README.md: documents Phase 1c (real kRPC bridge) and the two
    implementation options
  • Tests: 17 total (5 kepler math, 5 db store, 5 API health/state,
    2 API WebSocket fan-out)

End-to-end verified: mock publisher → API → hub /debug page,
11 snapshots/5s over WebSocket, vessels advancing in mean anomaly.

- packages/db: postgres.js + ioredis wrapper, StateStore interface with InMemory + Postgres implementations, schema migration runner - apps/api: refactored to use @kerbal-rt/db; live WebSocket hub subscribes to store changes and broadcasts to all clients - apps/tools/mock-telemetry: Node script that generates realistic KSP state and POSTs to /api/v1/ingest at 1Hz (uses same keplerian math as the live-map renderer) - apps/hub: new /debug page that connects to /api/v1/live and shows the live state - ksp/README.md: documents Phase 1c (real kRPC bridge) and the two implementation options - Tests: 17 total (5 kepler math, 5 db store, 5 API health/state, 2 API WebSocket fan-out) End-to-end verified: mock publisher → API → hub /debug page, 11 snapshots/5s over WebSocket, vessels advancing in mean anomaly.
Arnike added 1 commit 2026-06-02 19:02:15 +00:00
- packages/db: postgres.js + ioredis wrapper, StateStore interface with
  InMemory + Postgres implementations, schema migration runner
- apps/api: refactored to use @kerbal-rt/db; live WebSocket hub subscribes
  to store changes and broadcasts to all clients
- apps/tools/mock-telemetry: Node script that generates realistic KSP
  state and POSTs to /api/v1/ingest at 1Hz (uses same keplerian math
  as the live-map renderer)
- apps/hub: new /debug page that connects to /api/v1/live and shows
  the live state
- ksp/README.md: documents Phase 1c (real kRPC bridge) and the two
  implementation options
- Tests: 17 total (5 kepler math, 5 db store, 5 API health/state,
  2 API WebSocket fan-out)

End-to-end verified: mock publisher → API → hub /debug page,
11 snapshots/5s over WebSocket, vessels advancing in mean anomaly.
Arnike merged commit 10b5927ecc into main 2026-06-02 19:02:28 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Arnike/KSP-MissionControl#1