Felt - Go/Svelte project
Find a file
Mikkel Georgsen 16caa12d64 feat(01-01): implement core infrastructure — NATS, LibSQL, WebSocket hub, HTTP server
- Embedded NATS server with JetStream (sync_interval=always per Jepsen 2025)
- AUDIT and STATE JetStream streams for tournament event durability
- NATS publisher with UUID validation to prevent subject injection
- WebSocket hub with JWT auth (query param), tournament-scoped broadcasting
- Origin validation and slow-consumer message dropping
- chi HTTP router with middleware (logger, recoverer, request ID, CORS, body limits)
- Server timeouts: ReadHeader 10s, Read 30s, Write 60s, Idle 120s, MaxHeader 1MB
- MaxBytesReader middleware for request body limits (1MB default)
- JWT auth middleware with HMAC-SHA256 validation
- Role-based access control (admin > floor > viewer)
- Health endpoint reporting all subsystem status (DB, NATS, WebSocket)
- SvelteKit SPA served via go:embed with fallback routing
- Signal-driven graceful shutdown in reverse startup order
- 9 integration tests covering all verification criteria

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:42:42 +01:00
.planning docs(01-02): complete database schema + migrations plan 2026-03-01 03:39:59 +01:00
cmd/leaf feat(01-01): implement core infrastructure — NATS, LibSQL, WebSocket hub, HTTP server 2026-03-01 03:42:42 +01:00
docs Initial docs/project description including financial models 2026-02-28 15:37:21 +01:00
frontend feat(01-01): initialize Go module, dependency tree, and project scaffold 2026-03-01 03:34:44 +01:00
internal feat(01-01): implement core infrastructure — NATS, LibSQL, WebSocket hub, HTTP server 2026-03-01 03:42:42 +01:00
.gitignore feat(01-01): initialize Go module, dependency tree, and project scaffold 2026-03-01 03:34:44 +01:00
go.mod feat(01-01): implement core infrastructure — NATS, LibSQL, WebSocket hub, HTTP server 2026-03-01 03:42:42 +01:00
go.sum feat(01-01): implement core infrastructure — NATS, LibSQL, WebSocket hub, HTTP server 2026-03-01 03:42:42 +01:00
Makefile feat(01-01): initialize Go module, dependency tree, and project scaffold 2026-03-01 03:34:44 +01:00