MCPcopy
hub / github.com/tashfeenahmed/freellmapi / WindowState

Interface WindowState

server/src/middleware/rateLimit.ts:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19const MAX_TRACKED_IPS = 10_000;
20
21interface WindowState {
22 count: number;
23 resetAt: number;
24}
25
26function parseLimit(): number {
27 const raw = process.env.PROXY_RATE_LIMIT_RPM;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected