rsocials-online/api/src/middleware
Jeff Emmett a536a9bc0f feat: add Phase 4 x402 metering and Phase 5 hardening
Phase 4: Usage metrics service (container stats, post count, storage),
billing calculator with pro-rated monthly pricing, usage + payment
routes, x402 middleware wired to provisioning endpoint.

Phase 5: In-memory rate limiter (general 10/min + provision 2/hour),
admin routes (force teardown, suspend/resume), Dockerfile hardened
with non-root user and healthcheck. Suspended instance status added.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 21:45:55 -08:00
..
auth.ts feat: add Phase 1 provisioning API (Hono/Bun) 2026-02-24 21:16:40 -08:00
rate-limit.ts feat: add Phase 4 x402 metering and Phase 5 hardening 2026-02-24 21:45:55 -08:00
siwe-auth.ts feat: remove Sablier + add Phase 2 SIWE auth and CRDT token gating 2026-02-24 21:30:28 -08:00
token-gate.ts feat: remove Sablier + add Phase 2 SIWE auth and CRDT token gating 2026-02-24 21:30:28 -08:00
x402.ts feat: remove Sablier + add Phase 2 SIWE auth and CRDT token gating 2026-02-24 21:30:28 -08:00