GitSpy
GitSpy — GitHub API Middleware
GitSpy is an intermediary API that centralizes and optimizes GitHub API calls through a multi-layer caching system, event queue, and intelligent rate limit control. It includes webhook handlers, Prometheus metrics, and a comprehensive test suite.
Highlights
- Express Server with endpoints for webhooks, repositories, and metrics.
- GitHub Integration via adapter with rate limit handling.
- Redis Caching with Fail-open Strategy: Transparently bypasses Redis on connection failure to maintain availability.
- Proactive Invalidation: Removes stale keys after successful mutations, prioritizing eventual consistency.
- Hard Limits: Webhook payloads capped at 1MB to protect memory stability.
- Event Queue with BullMQ and workers for asynchronous processing.
- Metrics and monitoring (Prometheus) and 70+ tests strategy.
- Non-Custodial Architecture: Auth tokens are passed via encrypted headers and never persisted to disk.
Tecnologías
Construido con TypeScript, Node.js (Express), Redis, BullMQ, SQLite y Docker.