{"id":18084720,"url":"https://github.com/coderofsalvation/dpd-ratelimit","last_synced_at":"2025-10-23T17:05:24.701Z","repository":{"id":57215813,"uuid":"74230925","full_name":"coderofsalvation/dpd-ratelimit","owner":"coderofsalvation","description":"ratelimit incoming requests based on ip or user","archived":false,"fork":false,"pushed_at":"2020-05-28T18:49:07.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-23T23:55:03.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderofsalvation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://gumroad.com/l/hGYGh"}},"created_at":"2016-11-19T19:35:57.000Z","updated_at":"2021-01-08T00:12:08.000Z","dependencies_parsed_at":"2022-08-26T13:41:58.344Z","dependency_job_id":null,"html_url":"https://github.com/coderofsalvation/dpd-ratelimit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coderofsalvation/dpd-ratelimit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fdpd-ratelimit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fdpd-ratelimit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fdpd-ratelimit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fdpd-ratelimit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderofsalvation","download_url":"https://codeload.github.com/coderofsalvation/dpd-ratelimit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fdpd-ratelimit/sbom","scorecard":{"id":297580,"data":{"date":"2025-08-11","repo":{"name":"github.com/coderofsalvation/dpd-ratelimit","commit":"d994a97dd5b0db0473f72c78202b5b0eae54df51"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T19:55:28.907Z","repository_id":57215813,"created_at":"2025-08-17T19:55:28.907Z","updated_at":"2025-08-17T19:55:28.907Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280657109,"owners_count":26368263,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-31T15:07:52.872Z","updated_at":"2025-10-23T17:05:24.659Z","avatar_url":"https://github.com/coderofsalvation.png","language":"JavaScript","readme":"ratelimit incoming requests based on ip or user\n\n![Build Status](https://travis-ci.org/coderofsalvation/dpd-ratelimit.svg?branch=master)\n\n\u003cimg src=\"https://media.giphy.com/media/GzS9F4X206zle/giphy.gif\" width=\"150\" style=\"width:150px\"/\u003e\n\n## Usage \n\n\t\t$ npm install dpd-ratelimit dpd-event\n\nNow in the dashboard add an event-resource called `/ratelimit` \n\n\u003cimg src=\"https://raw.githubusercontent.com/coderofsalvation/dpd-ratelimit/master/screenshot.png\"/\u003e\n\nand add this config (`resources/ratelimit/config.json`):\n\n    {\n      \"ip\":true,\n      \"rate\": 0.1,\n      \"burst\": 1,\n      \"overrides\": {\n        \"192.345.345.1\": {\n          \"rate\": 0,\n          \"burst\": 0\n        }\n      }\n    }\n\n\u003e Voila! You have automatic ratelimiting based on ip\n\nIn case you have a frontend (`/public`), specify an `urls`-section as described below.\n\nsee [here](https://github.com/defunctzombie/ratelimit-middleware) for all ratelimiting options\n\n## Userbased ratelimiting\n\nUse a config like this, to allow certain usernames to override the default settings (0=unlimited):\n\n    {\n      \"username\":true,\n      \"rate\": 0.1,\n      \"burst\": 1,\n      \"overrides\": {\n        \"john\": {\n          \"rate\": 0,\n          \"burst\": 0\n        }\n      }\n    }\n\n## Ratelimiting specific url regexes \n\nBy defaults ratelimiting is applied to *everything* .\nYou'll probably agree that a frontend (`/public`) is not suitable for rateliming.\nIn those cases you want to add `urls` to your config, to specify which urls should be ratelimited:\n\n    {\n      \"username\":true,\n      \"urls\": [ \"^/foo($|/)\" ], \n      \"rate\": 0.1,\n      \"burst\": 1,\n      \"overrides\": {\n        \"john\": {\n          \"rate\": 0,\n          \"burst\": 0\n        }\n      }\n    }\n\n`urls` reverses ratelimiting behaviour: it ratelimits only those resources which match the regexes. In this case:\n\n* `/foo`\n* `/foo/`\n* `/foo/123`\n\n## Why \n\n* api-clients killing my database/cpu with requests? aint got no time for that!\n\n","funding_links":["https://gumroad.com/l/hGYGh"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fdpd-ratelimit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderofsalvation%2Fdpd-ratelimit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fdpd-ratelimit/lists"}