{
  "id": "task_libraries:rate-limiting/javascript",
  "path": "/exapedia/javascript-rate-limiting-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript rate limiting libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript rate limiting libraries cap how often a client can call an endpoint or how fast a program starts outgoing work. A limiter counts requests per key in a time window or token bucket and rejects or delays any request over the budget. These libraries protect APIs from abuse and keep AI agents inside third-party API quotas."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript rate limiting libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#express-rate-limit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F133"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#limiter",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F30"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bottleneck",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F55"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nestjs-throttler",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F178"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fastify-rate-limit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rate-limiter-flexible",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F81"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#upstash-ratelimit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#koatwo-ratelimit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#express-rate-limit",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F2"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Shared quota backend",
            "Automatic HTTP quota headers",
            "Task callback scheduling"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#express-rate-limit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F133"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#limiter",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bottleneck",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nestjs-throttler",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F178"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fastify-rate-limit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rate-limiter-flexible",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#upstash-ratelimit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#koatwo-ratelimit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "express-rate-limit",
          "name": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/express-rate-limit/express-rate-limit"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/express-rate-limit"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/express-rate-limit@8.7.5/readme.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F10"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/express-rate-limit@8.7.5/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F133"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F11"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/evershopcommerce/evershop",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function rateLimiter(\n  request: Request,\n  response: Response,\n  next: NextFunction\n): void {\n  const tier = classifyRequest(request.method, request.path);\n  if (tier === 'exempt') {\n    next();\n    return;\n  }\n  limiters[tier](request, response, next);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/evershopcommerce/evershop/blob/25cf1e804996e32f0aae95e1593d934b77c3c0c5/packages/evershop/src/modules/base/services/rateLimit.ts#L153-L164",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20express-rate-limit%20for%20request%20quotas%2C%20API%20pacing%20and%20bandwidth%20limits&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F133"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import express from 'express';\nimport { rateLimit } from 'express-rate-limit';\nconst app = express();\napp.use(rateLimit({ windowMs: 60_000, limit: 10 }));\napp.get('/', (_req, res) => res.send('hello'));\napp.listen(3000);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/express-rate-limit@8.7.5/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F138"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "limiter",
          "name": [
            {
              "t": "fact",
              "fact": "F148"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/jhurliman/node-rate-limiter"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/limiter"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/limiter@4.1.0/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F35"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F30"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/limiter@4.1.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F148"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/rejetto/hfs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "updateLimit(kBs: number) {\n        if (kBs < 0)\n            throw Error('invalid bytesPerSecond')\n        kBs *= 1000\n        return this.bucket = new TokenBucket({\n            bucketSize: kBs,\n            tokensPerInterval: kBs,\n            interval: 'second',\n        })\n    }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/rejetto/hfs/blob/528086e24718413dd14e2031834e2d26203def5a/src/ThrottledStream.ts#L76-L85",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20limiter%20for%20request%20quotas%2C%20API%20pacing%20and%20bandwidth%20limits&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F148"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { RateLimiter } from 'limiter';\nconst limiter = new RateLimiter({ tokensPerInterval: 1, interval: 'second' });\nconsole.log(await limiter.removeTokens(1));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/limiter@4.1.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "bottleneck",
          "name": [
            {
              "t": "fact",
              "fact": "F163"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/SGrondin/bottleneck"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/bottleneck"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/bottleneck@2.19.5/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F61"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F55"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/bottleneck@2.19.5/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F163"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/octokit/plugin-throttling.js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "const createGroups = function (\n  Bottleneck: typeof TBottleneck,\n  common: CreateGroupsCommon,\n) {\n  groups.global = new Bottleneck.Group({\n    id: \"octokit-global\",\n    maxConcurrent: 10,\n    ...common,\n  });\n  groups.auth = new Bottleneck.Group({\n    id: \"octokit-auth\",\n    maxConcurrent: 1,\n    ...common,\n  });\n  groups.search = new Bottleneck.Group({\n    id: \"octokit-search\",\n    maxConcurrent: 1,\n    minTime: 2000,\n    ...common,\n  });\n  groups.write = new Bottleneck.Group({\n    id: \"octokit-write\",\n    maxConcurrent: 1,\n    minTime: 1000,\n    ...common,\n  });\n  groups.notifications = new Bottleneck.Group({\n    id: \"octokit-notifications\",\n    maxConcurrent: 1,\n    minTime: 3000,\n    ...common,\n  });\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/octokit/plugin-throttling.js/blob/eb4215edcd97f20ade800b18d964bf798e0d70b7/src/index.ts#L24-L56",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F175"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20bottleneck%20for%20request%20quotas%2C%20API%20pacing%20and%20bandwidth%20limits&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F163"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import Bottleneck from 'bottleneck';\nconst limiter = new Bottleneck({ minTime: 100, maxConcurrent: 1 });\nconsole.log(await limiter.schedule(() => Promise.resolve('hello')));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/bottleneck@2.19.5/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F168"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "nestjs-throttler",
          "name": [
            {
              "t": "fact",
              "fact": "F178"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/nestjs/throttler"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@nestjs/throttler"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/@nestjs/throttler@6.8.0/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F185"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@nestjs/throttler@6.8.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F178"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/hoppscotch/hoppscotch",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "@Subscription(() => String, {\n    description: 'Subscription for infra config update',\n    resolve: (value) => value,\n  })\n  @SkipThrottle()\n  @UseGuards(GqlAuthGuard)\n  infraConfigUpdate(\n    @Args({\n      name: 'configName',\n      description: 'Infra config key',\n      type: () => InfraConfigEnum,\n    })\n    configName: string,\n  ) {\n    return this.pubsub.asyncIterator(`infra_config/${configName}/updated`);\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/hoppscotch/hoppscotch/blob/55908a76a1d0555c9bbb5d74244c14173df95b06/packages/hoppscotch-backend/src/infra-config/infra-config.resolver.ts#L55-L70",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40nestjs/throttler%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F178"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import 'reflect-metadata';\nimport { Controller, Get, Module } from '@nestjs/common';\nimport { APP_GUARD, NestFactory } from '@nestjs/core';\nimport { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler';\n\n@Controller()\nclass HelloController {\n  @Get() hello() { return 'hello'; }\n}\n@Module({\n  imports: [ThrottlerModule.forRoot([{ ttl: 60_000, limit: 10 }])],\n  controllers: [HelloController],\n  providers: [{ provide: APP_GUARD, useClass: ThrottlerGuard }],\n})\nclass AppModule {}\nconst app = await NestFactory.create(AppModule);\nawait app.listen(3000);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@nestjs/throttler@6.8.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F183"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fastify-rate-limit",
          "name": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/fastify/fastify-rate-limit"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@fastify/rate-limit"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/@fastify/rate-limit@11.2.2/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@fastify/rate-limit@11.2.2/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import Fastify from 'fastify';\nimport rateLimit from '@fastify/rate-limit';\nconst app = Fastify();\nawait app.register(rateLimit, { max: 10, timeWindow: '1 minute' });\napp.get('/', async () => 'hello');\nawait app.listen({ port: 3000 });\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@fastify/rate-limit@11.2.2/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40fastify/rate-limit%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "rate-limiter-flexible",
          "name": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/animir/node-rate-limiter-flexible"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/rate-limiter-flexible"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/rate-limiter-flexible@11.5.0/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F86"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F81"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/rate-limiter-flexible@11.5.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { RateLimiterMemory } from 'rate-limiter-flexible';\nconst limiter = new RateLimiterMemory({ points: 10, duration: 60 });\nconsole.log(await limiter.consume('example-user'));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/rate-limiter-flexible@11.5.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20rate-limiter-flexible%20for%20request%20quotas%2C%20API%20pacing%20and%20bandwidth%20limits&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "upstash-ratelimit",
          "name": [
            {
              "t": "fact",
              "fact": "F219"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/upstash/ratelimit-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@upstash/ratelimit"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/@upstash/ratelimit@2.2.1/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@upstash/ratelimit@2.2.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F219"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/a16z-infra/companion-app",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F234"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function rateLimit(identifier: string) {\n  // Rate limit through Upstash\n  const ratelimit = new Ratelimit({\n    redis: Redis.fromEnv(),\n    limiter: Ratelimit.slidingWindow(10, \"10 s\"),\n    analytics: true,\n    prefix: \"@upstash/ratelimit\",\n  });\n  return await ratelimit.limit(identifier);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/a16z-infra/companion-app/blob/a50c9371816440196049cca0eba9b1373341600e/src/app/utils/rateLimit.ts#L4-L13",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F233"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40upstash/ratelimit%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F219"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Ratelimit } from '@upstash/ratelimit';\nimport { Redis } from '@upstash/redis';\nconst limiter = new Ratelimit({ redis: Redis.fromEnv(), limiter: Ratelimit.slidingWindow(10, '10 s') });\nconsole.log(await limiter.limit('example-user'));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@upstash/ratelimit@2.2.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F224"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "koatwo-ratelimit",
          "name": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ysocorp/koa2-ratelimit"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/koa2-ratelimit"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/koa2-ratelimit@1.1.3/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/koa2-ratelimit@1.1.3/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const Koa = require('koa');\nconst { RateLimit } = require('koa2-ratelimit');\nconst app = new Koa();\napp.use(RateLimit.middleware({ interval: { min: 1 }, max: 10 }));\napp.use(ctx => { ctx.body = 'hello'; });\napp.listen(3000);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/koa2-ratelimit@1.1.3/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=koa2-ratelimit%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F241"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript rate limiting library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#express-rate-limit",
          "label": [
            {
              "t": "text",
              "text": "express-rate-limit"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits Express servers that limit incoming requests. "
        },
        {
          "t": "link",
          "href": "#rate-limiter-flexible",
          "label": [
            {
              "t": "text",
              "text": "rate-limiter-flexible"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that need per-key quotas in a shared store. "
        },
        {
          "t": "link",
          "href": "#bottleneck",
          "label": [
            {
              "t": "text",
              "text": "Bottleneck"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits code that paces its own outgoing calls to another API."
        }
      ]
    },
    {
      "q": "What is the token bucket algorithm?",
      "a": [
        {
          "t": "text",
          "text": "A token bucket refills tokens at a steady rate up to a set capacity, and each request spends one token. A full bucket allows a short burst, while an empty bucket makes requests wait or fail. "
        },
        {
          "t": "link",
          "href": "#limiter",
          "label": [
            {
              "t": "text",
              "text": "limiter"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#upstash-ratelimit",
          "label": [
            {
              "t": "text",
              "text": "@upstash/ratelimit"
            }
          ]
        },
        {
          "t": "text",
          "text": " implement token buckets."
        }
      ]
    },
    {
      "q": "How do I share rate limits across servers?",
      "a": [
        {
          "t": "text",
          "text": "A shared store such as Redis keeps one count for every server instance. "
        },
        {
          "t": "link",
          "href": "#rate-limiter-flexible",
          "label": [
            {
              "t": "text",
              "text": "rate-limiter-flexible"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#fastify-rate-limit",
          "label": [
            {
              "t": "text",
              "text": "@fastify/rate-limit"
            }
          ]
        },
        {
          "t": "text",
          "text": " support Redis directly, and "
        },
        {
          "t": "link",
          "href": "#express-rate-limit",
          "label": [
            {
              "t": "text",
              "text": "express-rate-limit"
            }
          ]
        },
        {
          "t": "text",
          "text": " uses a store plugin."
        }
      ]
    },
    {
      "q": "What is Bottleneck?",
      "a": [
        {
          "t": "link",
          "href": "#bottleneck",
          "label": [
            {
              "t": "text",
              "text": "Bottleneck"
            }
          ]
        },
        {
          "t": "text",
          "text": " queues jobs and controls how fast and how many run at once. It can share limits across processes through Redis clustering."
        }
      ]
    },
    {
      "q": "What is sliding window rate limiting?",
      "a": [
        {
          "t": "text",
          "text": "A sliding window counts requests over the most recent interval rather than a fixed calendar window. "
        },
        {
          "t": "link",
          "href": "#upstash-ratelimit",
          "label": [
            {
              "t": "text",
              "text": "@upstash/ratelimit"
            }
          ]
        },
        {
          "t": "text",
          "text": " documents window and token bucket algorithms for serverless hosts."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, express-rate-limit",
      "display": "express-rate-limit",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, express-rate-limit",
      "display": "365.8M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, express-rate-limit",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, express-rate-limit",
      "display": "8.7.4",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, express-rate-limit",
      "display": "v8.7.4",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, express-rate-limit",
      "display": "3.3K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Keyed limits, express-rate-limit",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Shared process limits, express-rate-limit",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Install, express-rate-limit",
      "display": "npm install express-rate-limit",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "What it does, express-rate-limit",
      "display": "Adds request-count limits to Express routes and middleware.",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "strengths lead, express-rate-limit",
      "display": "Limits public endpoints directly",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths, express-rate-limit",
      "display": "Mount the middleware on password-reset routes or an entire API.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, express-rate-limit",
      "display": "Shares counters through store adapters",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, express-rate-limit",
      "display": "Use an external store across multiple processes or servers.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "limitations lead, express-rate-limit",
      "display": "Default counters reset on restart",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations, express-rate-limit",
      "display": "Use an external store when request counts must survive restarts.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, express-rate-limit",
      "display": "One limiter uses one window",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, express-rate-limit",
      "display": "Create separate limiters for multiple time windows.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Quickstart, express-rate-limit",
      "display": "import { rateLimit } from 'express-rate-limit'\n\nconst limiter = rateLimit({\n\twindowMs: 15 * 60 * 1000, // 15 minutes\n\tlimit: 100, // Limit each IP to 100 requests per `window` (here, per 15 minutes).\n\tstandardHeaders: 'draft-8', // draft-6: `RateLimit-*` headers; draft-7 & draft-8: combined `RateLimit` header\n\tlegacyHeaders: false, // Disable the `X-RateLimit-*` headers.\n\tipv6Subnet: 56, // Set to 60 or 64 to be less aggressive, or 52 or 48 to be more aggressive\n\t// store: ... , // Redis, Memcached, etc. See below.\n})\n\n// Apply the rate limiting middleware to all requests.\napp.use(limiter)\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project function, express-rate-limit",
      "display": "export function rateLimiter(\n  request: Request,\n  response: Response,\n  next: NextFunction\n): void {\n  const tier = classifyRequest(request.method, request.path);\n  if (tier === 'exempt') {\n    next();\n    return;\n  }\n  limiters[tier](request, response, next);\n}\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function reference, express-rate-limit",
      "display": "rateLimit.ts · rateLimiter()",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project repository, express-rate-limit",
      "display": "evershopcommerce/evershop",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project stars, evershopcommerce/evershop",
      "display": "10.6K",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project push date, evershopcommerce/evershop",
      "display": "Nov 2026",
      "asOf": "2026-11-09"
    },
    "F25": {
      "label": "Library name, limiter",
      "display": "limiter",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Monthly downloads, limiter",
      "display": "87.4M",
      "asOf": "2026-11-15"
    },
    "F27": {
      "label": "License, limiter",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Package release, limiter",
      "display": "4.1.0",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Undated package release, limiter",
      "display": "v4.1.0",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Repository stars, limiter",
      "display": "1.6K",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Queues excess work, limiter",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Shared process limits, limiter",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "In-flight concurrency, limiter",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Install, limiter",
      "display": "npm install limiter",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "What it does, limiter",
      "display": "Paces work with interval limits and hierarchical token buckets.",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "strengths lead, limiter",
      "display": "Waits or rejects immediately",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths, limiter",
      "display": "Use removeTokens to wait and tryRemoveTokens to check capacity immediately.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, limiter",
      "display": "Shares parent and child budgets",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, limiter",
      "display": "A successful token removal charges the child and its finite ancestors.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "limitations lead, limiter",
      "display": "Counters stay within one instance",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations, limiter",
      "display": "Processes, workers, and machines need a separate shared-limit solution.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, limiter",
      "display": "Limits starts rather than concurrency",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, limiter",
      "display": "Use a separate limiter to cap simultaneous in-flight work.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Quickstart, limiter",
      "display": "import { createServer } from \"node:http\";\nimport { RateLimiter } from \"limiter\";\n\nconst limiter = new RateLimiter({ tokensPerInterval: 10, interval: \"second\" });\n\ncreateServer((request, response) => {\n  if (!limiter.tryRemoveTokens(1)) {\n    const seconds = Math.max(1, Math.ceil(limiter.getWaitTime(1) / 1000));\n    response.writeHead(429, { \"Retry-After\": String(seconds) });\n    response.end(\"Too many requests\\n\");\n    return;\n  }\n  response.end(\"Accepted\\n\");\n}).listen(3000);\n",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project function, limiter",
      "display": "updateLimit(kBs: number) {\n        if (kBs < 0)\n            throw Error('invalid bytesPerSecond')\n        kBs *= 1000\n        return this.bucket = new TokenBucket({\n            bucketSize: kBs,\n            tokensPerInterval: kBs,\n            interval: 'second',\n        })\n    }\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function reference, limiter",
      "display": "ThrottledStream.ts · updateLimit()",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project repository, limiter",
      "display": "rejetto/hfs",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project stars, rejetto/hfs",
      "display": "4.0K",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project push date, rejetto/hfs",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F50": {
      "label": "Library name, bottleneck",
      "display": "Bottleneck",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Monthly downloads, bottleneck",
      "display": "57.6M",
      "asOf": "2026-11-15"
    },
    "F52": {
      "label": "License, bottleneck",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Package release, bottleneck",
      "display": "2.19.5",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Undated package release, bottleneck",
      "display": "v2.19.5",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Repository stars, bottleneck",
      "display": "2.0K",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Keyed limits, bottleneck",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Queues excess work, bottleneck",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Shared process limits, bottleneck",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "In-flight concurrency, bottleneck",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Install, bottleneck",
      "display": "npm install bottleneck",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "What it does, bottleneck",
      "display": "Queues jobs and controls their start rate and simultaneous execution.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths lead, bottleneck",
      "display": "Controls simultaneous work",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths, bottleneck",
      "display": "Set maxConcurrent alongside minTime to pace jobs and cap concurrency.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, bottleneck",
      "display": "Creates separate limits per key",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, bottleneck",
      "display": "Use Group to manage independent limiters for different clients.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations lead, bottleneck",
      "display": "Queued jobs disappear on exit",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations, bottleneck",
      "display": "Redis shares limiter state, but queued jobs remain in the process.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, bottleneck",
      "display": "Retries keep concurrency slots occupied",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, bottleneck",
      "display": "A waiting retry still counts toward maxConcurrent.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Quickstart, bottleneck",
      "display": "import Bottleneck from \"bottleneck\";\nconst limiter = new Bottleneck();\n\n// Listen to the \"failed\" event\nlimiter.on(\"failed\", async (error, jobInfo) => {\n  const id = jobInfo.options.id;\n  console.warn(`Job ${id} failed: ${error}`);\n\n  if (jobInfo.retryCount === 0) { // Here we only retry once\n    console.log(`Retrying job ${id} in 25ms!`);\n    return 25;\n  }\n});\n\n// Listen to the \"retry\" event\nlimiter.on(\"retry\", (error, jobInfo) => console.log(`Now retrying ${jobInfo.options.id}`));\n\nconst main = async function () {\n  let executions = 0;\n\n  // Schedule one job\n  const result = await limiter.schedule({ id: 'ABC123' }, async () => {\n    executions++;\n    if (executions === 1) {\n      throw new Error(\"Boom!\");\n    } else {\n      return \"Success!\";\n    }\n  });\n\n  console.log(`Result: ${result}`);\n}\n\nmain();\n",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project function, bottleneck",
      "display": "const createGroups = function (\n  Bottleneck: typeof TBottleneck,\n  common: CreateGroupsCommon,\n) {\n  groups.global = new Bottleneck.Group({\n    id: \"octokit-global\",\n    maxConcurrent: 10,\n    ...common,\n  });\n  groups.auth = new Bottleneck.Group({\n    id: \"octokit-auth\",\n    maxConcurrent: 1,\n    ...common,\n  });\n  groups.search = new Bottleneck.Group({\n    id: \"octokit-search\",\n    maxConcurrent: 1,\n    minTime: 2000,\n    ...common,\n  });\n  groups.write = new Bottleneck.Group({\n    id: \"octokit-write\",\n    maxConcurrent: 1,\n    minTime: 1000,\n    ...common,\n  });\n  groups.notifications = new Bottleneck.Group({\n    id: \"octokit-notifications\",\n    maxConcurrent: 1,\n    minTime: 3000,\n    ...common,\n  });\n};\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function reference, bottleneck",
      "display": "index.ts · createGroups()",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project repository, bottleneck",
      "display": "octokit/plugin-throttling.js",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project stars, octokit/plugin-throttling.js",
      "display": "128",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project push date, octokit/plugin-throttling.js",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F76": {
      "label": "Library name, rate-limiter-flexible",
      "display": "rate-limiter-flexible",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Monthly downloads, rate-limiter-flexible",
      "display": "17.6M",
      "asOf": "2026-11-15"
    },
    "F78": {
      "label": "License, rate-limiter-flexible",
      "display": "ISC",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Package release, rate-limiter-flexible",
      "display": "11.5.0",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Undated package release, rate-limiter-flexible",
      "display": "v11.5.0",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Repository stars, rate-limiter-flexible",
      "display": "3.6K",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Keyed limits, rate-limiter-flexible",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Queues excess work, rate-limiter-flexible",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Shared process limits, rate-limiter-flexible",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Install, rate-limiter-flexible",
      "display": "npm install rate-limiter-flexible socket.io",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "What it does, rate-limiter-flexible",
      "display": "Enforces per-key quotas using memory, clustered workers, or shared stores.",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths lead, rate-limiter-flexible",
      "display": "Limits users or API keys",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths, rate-limiter-flexible",
      "display": "Consume points against an IP, user ID, or another string key.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, rate-limiter-flexible",
      "display": "Coordinates workers through IPC",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, rate-limiter-flexible",
      "display": "RateLimiterCluster sends worker requests to one process that handles limits.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations lead, rate-limiter-flexible",
      "display": "Store clients need separate setup",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations, rate-limiter-flexible",
      "display": "Create a database or cache connection before using its store limiter.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, rate-limiter-flexible",
      "display": "Distributed queues can reorder requests",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, rate-limiter-flexible",
      "display": "Strict FIFO is guaranteed only with Memory and Cluster limiters.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Quickstart, rate-limiter-flexible",
      "display": "const app = require('http').createServer();\nconst io = require('socket.io')(app);\nconst { RateLimiterMemory } = require('rate-limiter-flexible');\n\napp.listen(3000);\n\nconst rateLimiter = new RateLimiterMemory(\n  {\n    points: 5, // 5 points\n    duration: 1, // per second\n  });\n\nio.on('connection', (socket) => {\n  socket.on('bcast', async (data) => {\n    try {\n      await rateLimiter.consume(socket.handshake.address); // consume 1 point per event from IP\n      socket.emit('news', { 'data': data });\n      socket.broadcast.emit('news', { 'data': data });\n    } catch(rejRes) {\n      // no available points to consume\n      // emit error or warning message\n      socket.emit('blocked', { 'retry-ms': rejRes.msBeforeNext });\n    }\n  });\n});\n",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project function, rate-limiter-flexible",
      "display": "export function createRateLimiter(\n\tconfigPrefix = 'RATE_LIMITER',\n\tconfigOverrides?: IRateLimiterOptionsOverrides,\n): RateLimiterAbstract {\n\tconst env = useEnv();\n\n\tswitch (env.RATE_LIMITER_STORE) {\n\t\tcase 'redis':\n\t\t\treturn new RateLimiterRedis(getConfig('redis', configPrefix, configOverrides));\n\t\tcase 'memory':\n\t\tdefault:\n\t\t\treturn new RateLimiterMemory(getConfig('memory', configPrefix, configOverrides));\n\t}\n}\n",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project function reference, rate-limiter-flexible",
      "display": "rate-limiter.ts · createRateLimiter()",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project repository, rate-limiter-flexible",
      "display": "directus/directus",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project stars, directus/directus",
      "display": "38.7K",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Project push date, directus/directus",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F101": {
      "label": "Developer need",
      "display": "Protecting Express endpoints",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose express-rate-limit",
      "display": "route-level request limits",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "protecting Express endpoints",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "When to consider bottleneck",
      "display": "outgoing jobs need pacing and concurrency control",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need",
      "display": "Pacing queued API work",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Why choose bottleneck",
      "display": "start-rate and simultaneous-work controls",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need in introduction",
      "display": "pacing queued API work",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "When to consider rate-limiter-flexible",
      "display": "per-user request quotas are the priority",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Budgeting bytes or token costs",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose limiter",
      "display": "parent and child token buckets",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "budgeting bytes or token costs",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "When to consider rate-limiter-flexible",
      "display": "multiple workers need coordinated quotas",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need",
      "display": "Coordinating clustered workers",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Why choose rate-limiter-flexible",
      "display": "IPC-coordinated quotas",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Developer need in introduction",
      "display": "coordinating clustered workers",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "When to consider express-rate-limit",
      "display": "Express route middleware is the main requirement",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Page introduction",
      "display": "JavaScript rate limiting libraries let backend developers limit how often operations can run.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Which library fits an Express API?",
      "display": "express-rate-limit mounts directly as middleware for repeated endpoint requests.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Which library can pace queued API jobs?",
      "display": "Bottleneck queues jobs and exposes maxConcurrent together with minTime.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Does a rate limit also cap simultaneous requests?",
      "display": "limiter explicitly limits work starts rather than simultaneous in-flight work.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Does a rate limit also cap simultaneous requests?",
      "display": "RateLimiterQueue also explicitly excludes concurrency limiting.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can Express counters be shared across servers?",
      "display": "Use an external store; the default memory store does not synchronize instances.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: What happens to Express limits after a restart?",
      "display": "The default MemoryStore resets its limits when the Node process restarts.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does Bottleneck Redis clustering preserve queued jobs?",
      "display": "Queued jobs remain local and are lost when their Node process exits.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Do Bottleneck retries release concurrency slots?",
      "display": "A retry stays in the executing state and counts against maxConcurrent while waiting.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does limiter enforce a rolling window?",
      "display": "Its interval counter is not a rolling-window limit, so boundary traffic can exceed the configured count in a sliding window.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can limiter share parent and child budgets?",
      "display": "A successful hierarchical removal charges the child and all finite ancestors together.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Does clustered limiting require Redis?",
      "display": "RateLimiterCluster coordinates workers through IPC with a master process.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Does clustered limiting require Redis?",
      "display": "Bottleneck clustering uses Redis and an added Redis client dependency.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Do distributed queues guarantee strict request order?",
      "display": "RateLimiterQueue guarantees strict FIFO only with Memory and Cluster limiters; distributed queues can reorder requests.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Can in-memory quota state be saved as JSON?",
      "display": "RateLimiterMemory dump returns a JSON-safe snapshot that can be serialized to a file.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Can in-memory quota state be saved as JSON?",
      "display": "Snapshot persistence is best effort and does not replace a shared backend.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "Library name, express-rate-limit",
      "display": "express-rate-limit",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Monthly downloads, express-rate-limit",
      "display": "374.0M",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "License, express-rate-limit",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Package release, express-rate-limit",
      "display": "8.7.5",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Package release date, express-rate-limit",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Install, express-rate-limit",
      "display": "npm install express-rate-limit@8.7.5 express",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Quickstart, express-rate-limit",
      "display": "import express from 'express';\nimport { rateLimit } from 'express-rate-limit';\nconst app = express();\napp.use(rateLimit({ windowMs: 60_000, limit: 10 }));\napp.get('/', (_req, res) => res.send('hello'));\napp.listen(3000);\n",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Shared quota backend, express-rate-limit",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Automatic HTTP quota headers, express-rate-limit",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Task callback scheduling, express-rate-limit",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Quota integration and runtime model, express-rate-limit",
      "display": "Express request-admission middleware with configurable standard/legacy headers and a default process-memory store; shared quotas use an external store adapter.",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project function, express-rate-limit",
      "display": "export function rateLimiter(\n  request: Request,\n  response: Response,\n  next: NextFunction\n): void {\n  const tier = classifyRequest(request.method, request.path);\n  if (tier === 'exempt') {\n    next();\n    return;\n  }\n  limiters[tier](request, response, next);\n}\n",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project source file, express-rate-limit",
      "display": "packages/evershop/src/modules/base/services/rateLimit.ts",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project full_name, express-rate-limit",
      "display": "evershopcommerce/evershop",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Project stargazers_count, express-rate-limit",
      "display": "10.6K",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Library name, limiter",
      "display": "limiter",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Monthly downloads, limiter",
      "display": "89.9M",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "License, limiter",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release, limiter",
      "display": "4.1.0",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Package release date, limiter",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Install, limiter",
      "display": "npm install limiter@4.1.0",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Quickstart, limiter",
      "display": "import { RateLimiter } from 'limiter';\nconst limiter = new RateLimiter({ tokensPerInterval: 1, interval: 'second' });\nconsole.log(await limiter.removeTokens(1));\n",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Shared quota backend, limiter",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Automatic HTTP quota headers, limiter",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Task callback scheduling, limiter",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Quota integration and runtime model, limiter",
      "display": "In-process token-bucket budgets with asynchronous waiting or immediate attempts,including separate burst/refill capacity and parent buckets.",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project function, limiter",
      "display": "updateLimit(kBs: number) {\n        if (kBs < 0)\n            throw Error('invalid bytesPerSecond')\n        kBs *= 1000\n        return this.bucket = new TokenBucket({\n            bucketSize: kBs,\n            tokensPerInterval: kBs,\n            interval: 'second',\n        })\n    }\n",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project source file, limiter",
      "display": "src/ThrottledStream.ts",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project full_name, limiter",
      "display": "rejetto/hfs",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project stargazers_count, limiter",
      "display": "4.0K",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Library name, bottleneck",
      "display": "bottleneck",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Monthly downloads, bottleneck",
      "display": "59.2M",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "License, bottleneck",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Package release, bottleneck",
      "display": "2.19.5",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Package release date, bottleneck",
      "display": "Aug 2019",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Install, bottleneck",
      "display": "npm install bottleneck@2.19.5",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Quickstart, bottleneck",
      "display": "import Bottleneck from 'bottleneck';\nconst limiter = new Bottleneck({ minTime: 100, maxConcurrent: 1 });\nconsole.log(await limiter.schedule(() => Promise.resolve('hello')));\n",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Shared quota backend, bottleneck",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Automatic HTTP quota headers, bottleneck",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Task callback scheduling, bottleneck",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Quota integration and runtime model, bottleneck",
      "display": "Dispatches queued job callbacks with time-spacing/concurrency controls and optional Redis clustering; queued job payloads remain local to the process.",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Project function, bottleneck",
      "display": "const createGroups = function (\n  Bottleneck: typeof TBottleneck,\n  common: CreateGroupsCommon,\n) {\n  groups.global = new Bottleneck.Group({\n    id: \"octokit-global\",\n    maxConcurrent: 10,\n    ...common,\n  });\n  groups.auth = new Bottleneck.Group({\n    id: \"octokit-auth\",\n    maxConcurrent: 1,\n    ...common,\n  });\n  groups.search = new Bottleneck.Group({\n    id: \"octokit-search\",\n    maxConcurrent: 1,\n    minTime: 2000,\n    ...common,\n  });\n  groups.write = new Bottleneck.Group({\n    id: \"octokit-write\",\n    maxConcurrent: 1,\n    minTime: 1000,\n    ...common,\n  });\n  groups.notifications = new Bottleneck.Group({\n    id: \"octokit-notifications\",\n    maxConcurrent: 1,\n    minTime: 3000,\n    ...common,\n  });\n};\n",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project source file, bottleneck",
      "display": "src/index.ts",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project full_name, bottleneck",
      "display": "octokit/plugin-throttling.js",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project stargazers_count, bottleneck",
      "display": "128",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Library name, @nestjs/throttler",
      "display": "@nestjs/throttler",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Monthly downloads, @nestjs/throttler",
      "display": "24.8M",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "License, @nestjs/throttler",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Package release, @nestjs/throttler",
      "display": "6.8.0",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Package release date, @nestjs/throttler",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Install, @nestjs/throttler",
      "display": "npm install @nestjs/throttler@6.8.0 @nestjs/common@^11 @nestjs/core@^11 @nestjs/platform-express@^11 reflect-metadata rxjs",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Quickstart, @nestjs/throttler",
      "display": "import 'reflect-metadata';\nimport { Controller, Get, Module } from '@nestjs/common';\nimport { APP_GUARD, NestFactory } from '@nestjs/core';\nimport { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler';\n\n@Controller()\nclass HelloController {\n  @Get() hello() { return 'hello'; }\n}\n@Module({\n  imports: [ThrottlerModule.forRoot([{ ttl: 60_000, limit: 10 }])],\n  controllers: [HelloController],\n  providers: [{ provide: APP_GUARD, useClass: ThrottlerGuard }],\n})\nclass AppModule {}\nconst app = await NestFactory.create(AppModule);\nawait app.listen(3000);\n",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Official description, @nestjs/throttler",
      "display": "Adds endpoint quotas to NestJS through a guard, module, and decorators.",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Quickstart source file, @nestjs/throttler",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Shared quota backend, @nestjs/throttler",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Automatic HTTP quota headers, @nestjs/throttler",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Task callback scheduling, @nestjs/throttler",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Quota integration and runtime model, @nestjs/throttler",
      "display": "Nest guard/module/decorator integration for endpoint quotas; memory storage is built in,and distributed storage providers are separate integrations.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project function, @nestjs/throttler",
      "display": "@Subscription(() => String, {\n    description: 'Subscription for infra config update',\n    resolve: (value) => value,\n  })\n  @SkipThrottle()\n  @UseGuards(GqlAuthGuard)\n  infraConfigUpdate(\n    @Args({\n      name: 'configName',\n      description: 'Infra config key',\n      type: () => InfraConfigEnum,\n    })\n    configName: string,\n  ) {\n    return this.pubsub.asyncIterator(`infra_config/${configName}/updated`);\n  }\n",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project source file, @nestjs/throttler",
      "display": "packages/hoppscotch-backend/src/infra-config/infra-config.resolver.ts",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project full_name, @nestjs/throttler",
      "display": "hoppscotch/hoppscotch",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project stargazers_count, @nestjs/throttler",
      "display": "80.9K",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Library name, @fastify/rate-limit",
      "display": "@fastify/rate-limit",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Monthly downloads, @fastify/rate-limit",
      "display": "19.6M",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "License, @fastify/rate-limit",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Package release, @fastify/rate-limit",
      "display": "11.2.2",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release date, @fastify/rate-limit",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Install, @fastify/rate-limit",
      "display": "npm install @fastify/rate-limit@11.2.2 fastify@^5",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Quickstart, @fastify/rate-limit",
      "display": "import Fastify from 'fastify';\nimport rateLimit from '@fastify/rate-limit';\nconst app = Fastify();\nawait app.register(rateLimit, { max: 10, timeWindow: '1 minute' });\napp.get('/', async () => 'hello');\nawait app.listen({ port: 3000 });\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Official description, @fastify/rate-limit",
      "display": "Limits Fastify routes with optional Redis integration and custom request keys.",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Quickstart source file, @fastify/rate-limit",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Shared quota backend, @fastify/rate-limit",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Automatic HTTP quota headers, @fastify/rate-limit",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Task callback scheduling, @fastify/rate-limit",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Quota integration and runtime model, @fastify/rate-limit",
      "display": "Fastify route/global admission limits with native optional Redis integration,custom request keys,and automatic quota response headers.",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Library name, rate-limiter-flexible",
      "display": "rate-limiter-flexible",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Monthly downloads, rate-limiter-flexible",
      "display": "18.2M",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "License, rate-limiter-flexible",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Package release, rate-limiter-flexible",
      "display": "11.5.0",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Package release date, rate-limiter-flexible",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Install, rate-limiter-flexible",
      "display": "npm install rate-limiter-flexible@11.5.0",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Quickstart, rate-limiter-flexible",
      "display": "import { RateLimiterMemory } from 'rate-limiter-flexible';\nconst limiter = new RateLimiterMemory({ points: 10, duration: 60 });\nconsole.log(await limiter.consume('example-user'));\n",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Shared quota backend, rate-limiter-flexible",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Automatic HTTP quota headers, rate-limiter-flexible",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Task callback scheduling, rate-limiter-flexible",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Quota integration and runtime model, rate-limiter-flexible",
      "display": "Programmatic quota counters for memory and several backing stores,with consume/reward/penalty and a separate token-permission queue; callers decide HTTP responses.",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Library name, @upstash/ratelimit",
      "display": "@upstash/ratelimit",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Monthly downloads, @upstash/ratelimit",
      "display": "12.8M",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "License, @upstash/ratelimit",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Package release, @upstash/ratelimit",
      "display": "2.2.1",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Package release date, @upstash/ratelimit",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Install, @upstash/ratelimit",
      "display": "npm install @upstash/ratelimit@2.2.1 @upstash/redis",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Quickstart, @upstash/ratelimit",
      "display": "import { Ratelimit } from '@upstash/ratelimit';\nimport { Redis } from '@upstash/redis';\nconst limiter = new Ratelimit({ redis: Redis.fromEnv(), limiter: Ratelimit.slidingWindow(10, '10 s') });\nconsole.log(await limiter.limit('example-user'));\n",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Official description, @upstash/ratelimit",
      "display": "Checks quotas through Redis REST calls from HTTP and serverless hosts.",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Quickstart source file, @upstash/ratelimit",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Shared quota backend, @upstash/ratelimit",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Automatic HTTP quota headers, @upstash/ratelimit",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Task callback scheduling, @upstash/ratelimit",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Quota integration and runtime model, @upstash/ratelimit",
      "display": "Redis REST quota checks for HTTP/serverless hosts,with documented window/token-bucket algorithms; returns a quota result rather than an HTTP server response.",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Project function, @upstash/ratelimit",
      "display": "export async function rateLimit(identifier: string) {\n  // Rate limit through Upstash\n  const ratelimit = new Ratelimit({\n    redis: Redis.fromEnv(),\n    limiter: Ratelimit.slidingWindow(10, \"10 s\"),\n    analytics: true,\n    prefix: \"@upstash/ratelimit\",\n  });\n  return await ratelimit.limit(identifier);\n}\n",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Project source file, @upstash/ratelimit",
      "display": "src/app/utils/rateLimit.ts",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Project full_name, @upstash/ratelimit",
      "display": "a16z-infra/companion-app",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Project stargazers_count, @upstash/ratelimit",
      "display": "6.0K",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Library name, koa2-ratelimit",
      "display": "koa2-ratelimit",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Monthly downloads, koa2-ratelimit",
      "display": "1.1M",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "License, koa2-ratelimit",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Package release, koa2-ratelimit",
      "display": "1.1.3",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Package release date, koa2-ratelimit",
      "display": "Mar 2023",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Install, koa2-ratelimit",
      "display": "npm install koa2-ratelimit@1.1.3 koa",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Quickstart, koa2-ratelimit",
      "display": "const Koa = require('koa');\nconst { RateLimit } = require('koa2-ratelimit');\nconst app = new Koa();\napp.use(RateLimit.middleware({ interval: { min: 1 }, max: 10 }));\napp.use(ctx => { ctx.body = 'hello'; });\napp.listen(3000);\n",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Official description, koa2-ratelimit",
      "display": "Adds rate limiting middleware to Koa with optional Redis, Sequelize, or Mongoose stores.",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Quickstart source file, koa2-ratelimit",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Shared quota backend, koa2-ratelimit",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Automatic HTTP quota headers, koa2-ratelimit",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Task callback scheduling, koa2-ratelimit",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Quota integration and runtime model, koa2-ratelimit",
      "display": "Koa admission middleware with optional headers,custom handlers,and native Redis/Sequelize/Mongoose store integrations.",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript rate limiting libraries code examples Express Bottleneck limiter rate-limiter-flexible",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
