e7d93198a75508c3e2a53aee0f7097dada569354
platform-gateway
Bun + Hono service for mobility platform access control.
This service is intentionally separate from LMS APIs. LMS decides education-domain eligibility, while this gateway owns platform access grants, session ownership, agent command proxying, connection status, monitoring events, release, and emergency-stop workflows.
Run
bun install
bun run dev
Default URL: http://localhost:4500
Core APIs
GET /healthGET /api/platformsGET /api/platforms/:id/statusGET /api/connectionsPOST /api/platform-access-grantsDELETE /api/platform-access-grants/:grantIdPOST /api/platform-sessionsPOST /api/platforms/:id/commandsPOST /api/platforms/:id/releasePOST /api/platforms/:id/emergency-stopGET /api/events
Network Model
Students and instructors never connect directly to Headscale/Tailscale device endpoints. Clients call this gateway only. The gateway verifies auth, checks platform grants/session ownership, records audit context, and proxies allowed operations to the mobility agent running on each platform node.
Description
Languages
TypeScript
99.5%
Dockerfile
0.5%