{"id":25884711,"url":"https://github.com/0xradioac7iv/rate-limiter","last_synced_at":"2025-07-10T08:35:33.398Z","repository":{"id":268944302,"uuid":"905783118","full_name":"0xRadioAc7iv/rate-limiter","owner":"0xRadioAc7iv","description":"Rate Limiting Middleware Library for Express \u0026 Fastify","archived":false,"fork":false,"pushed_at":"2025-03-02T13:30:49.000Z","size":873,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T14:28:50.916Z","etag":null,"topics":["express","fastify","fastify-plugin","nodejs","npm","npm-package","rate-limiter","rate-limiting"],"latest_commit_sha":null,"homepage":"https://rate-limiter.0xradioactiv.xyz","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xRadioAc7iv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-19T14:10:24.000Z","updated_at":"2025-03-02T13:30:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e0bacb6-f9b5-493e-a252-652d1163f0d3","html_url":"https://github.com/0xRadioAc7iv/rate-limiter","commit_stats":null,"previous_names":["0xradioac7iv/rate-limiter"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xRadioAc7iv%2Frate-limiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xRadioAc7iv%2Frate-limiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xRadioAc7iv%2Frate-limiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xRadioAc7iv%2Frate-limiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xRadioAc7iv","download_url":"https://codeload.github.com/0xRadioAc7iv/rate-limiter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241541454,"owners_count":19979122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","fastify","fastify-plugin","nodejs","npm","npm-package","rate-limiter","rate-limiting"],"created_at":"2025-03-02T17:18:01.237Z","updated_at":"2025-07-10T08:35:33.382Z","avatar_url":"https://github.com/0xRadioAc7iv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rate Limiter 🚀\n\nA lightweight and efficient rate-limiting library for Node.js, designed to help developers control API request rates and prevent abuse.\n\n## Features\n\n- ✅ In-memory, Redis \u0026 Mongo Support\n- ✅ Dynamic Rate Limiting\n- ✅ Supports Express, Fastify \u0026 NestJS\n\n## Setup\n\n### Installation\n\n```bash\nnpm install @radioac7iv/rate-limiter\n```\n\n### Usage\n\nBasic example using Express:\n\n```typescript\nimport express from \"express\";\nimport { expressRateLimiter } from \"@radioac7iv/rate-limiter\";\n\nconst app = express();\n\nconst rateLimit = expressRateLimiter({\n  limitOptions: () =\u003e {\n    return { max: 5, window: 10 };\n  },\n});\n\napp.use(rateLimit);\n\napp.get(\"/\", (request, response) =\u003e {\n  response.status(200).send({ message: \"Hello!\" });\n});\n\napp.listen(3000, () =\u003e {\n  console.log(\"Server started at PORT: 3000\");\n});\n```\n\n### 📖 Documentation\n\nDetailed usage, configuration options, and examples are available in the official documentation:\n\n[Read the Docs](https://rate-limiter.0xradioactiv.xyz/)\n\n### 🤝 Contributing\n\nContributions are welcome! To get started:\n\n1. Fork the repository\n2. Clone your fork\n\n3. Install dependencies:\n\n```bash\nnpm install\n```\n\n4. Create a new branch:\n\n```bash\ngit checkout -b feature-name\n```\n\n5. Make your changes \u0026 commit:\n\n```bash\ngit commit -m \"Add new feature\"\n```\n\n6. Push \u0026 open a PR:\n\n```bash\ngit push origin feature-name\n```\n\nRead the full Contribution Guidelines [here](./CONTRIBUTING.md)\n\n### 🧪 Testing\n\nTo run the tests:\n\n```bash\ncd package\nnpm test\n```\n\nTo get coverage report:\n\n```bash\nnpm run test:cov\n```\n\n### 📜 License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xradioac7iv%2Frate-limiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xradioac7iv%2Frate-limiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xradioac7iv%2Frate-limiter/lists"}