Skip to content

feat: add rate limiting to feedback API#36

Merged
neonwatty merged 1 commit intomainfrom
feat/rate-limiting
Jan 30, 2026
Merged

feat: add rate limiting to feedback API#36
neonwatty merged 1 commit intomainfrom
feat/rate-limiting

Conversation

@neonwatty
Copy link
Owner

Summary

  • Add IP-based rate limiting: 10 requests per 15 minutes per IP
  • Add repo-based rate limiting: 50 requests per hour per repository
  • Uses Cloudflare KV for distributed rate limit tracking

Test plan

  • Unit tests pass (15 new tests for rate limiter)
  • TypeScript compiles without errors
  • Deployed to production with KV namespace configured

Add IP-based and repo-based rate limiting using Cloudflare KV:
- 10 requests per 15 minutes per IP
- 50 requests per hour per repository

Includes middleware, tests, and documentation.
@neonwatty neonwatty merged commit b3c8f86 into main Jan 30, 2026
6 checks passed
@neonwatty neonwatty deleted the feat/rate-limiting branch January 30, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant