a457b9d96f
CI / Lint, typecheck, test, build (pull_request) Failing after 10s
- 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.
35 lines
929 B
JSON
35 lines
929 B
JSON
{
|
|
"name": "@kerbal-rt/api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Backend API: REST + WebSocket gateway to the KSP telemetry pipeline",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"start": "node --import tsx src/index.ts",
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "echo 'no linter yet'",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@hono/node-server": "^1.13.0",
|
|
"@hono/node-ws": "^1.1.0",
|
|
"@hono/zod-validator": "^0.4.0",
|
|
"@kerbal-rt/db": "workspace:*",
|
|
"@kerbal-rt/shared-types": "workspace:*",
|
|
"@kerbal-rt/orbital-math": "workspace:*",
|
|
"hono": "^4.6.0",
|
|
"ws": "^8.18.0",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.5.0",
|
|
"@types/ws": "^8.5.12",
|
|
"tsx": "^4.19.1",
|
|
"typescript": "^5.6.2",
|
|
"vitest": "^2.1.1"
|
|
}
|
|
}
|