{"id":17278836,"url":"https://github.com/thewawar/bucket-limiter-rs","last_synced_at":"2025-08-27T04:09:09.356Z","repository":{"id":62438614,"uuid":"109391155","full_name":"TheWaWaR/bucket-limiter-rs","owner":"TheWaWaR","description":"Token bucket like limiter library based on redis storage (Rust version)","archived":false,"fork":false,"pushed_at":"2018-02-06T03:00:40.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T06:08:34.629Z","etag":null,"topics":["bucket","limiter","redis","rust","token"],"latest_commit_sha":null,"homepage":"https://docs.rs/bucket-limiter/","language":"Rust","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/TheWaWaR.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-03T12:07:25.000Z","updated_at":"2021-11-05T16:50:37.000Z","dependencies_parsed_at":"2022-11-01T21:16:24.157Z","dependency_job_id":null,"html_url":"https://github.com/TheWaWaR/bucket-limiter-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheWaWaR/bucket-limiter-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWaWaR%2Fbucket-limiter-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWaWaR%2Fbucket-limiter-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWaWaR%2Fbucket-limiter-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWaWaR%2Fbucket-limiter-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheWaWaR","download_url":"https://codeload.github.com/TheWaWaR/bucket-limiter-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheWaWaR%2Fbucket-limiter-rs/sbom","scorecard":{"id":140599,"data":{"date":"2025-08-04","repo":{"name":"github.com/TheWaWaR/bucket-limiter-rs","commit":"173b58eddc72d193f517c9be087e33a4413f1ed6"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/18 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T07:59:40.728Z","repository_id":62438614,"created_at":"2025-08-16T07:59:40.728Z","updated_at":"2025-08-16T07:59:40.728Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272289291,"owners_count":24907796,"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-08-27T02:00:09.397Z","response_time":76,"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":["bucket","limiter","redis","rust","token"],"created_at":"2024-10-15T09:14:04.098Z","updated_at":"2025-08-27T04:09:09.301Z","avatar_url":"https://github.com/TheWaWaR.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"* bucket-limiter-rs\nToken bucket like limiter library based on redis storage\n\n[[https://github.com/TheWaWaR/bucket-limiter-py][Python version]]\n\n* Example (use case)\nAssume you have a API service, and want to limit user request rate like:\n\n- 10,000 requests/day\n- 600 requests/1-hour\n- 10 requests/10-seconds\n\n\nYou can do this:\n\n#+BEGIN_SRC rust\nlet limiter = RedisLimiter::default();\nlet key = format!(\"{}:{}\", request.endpoint, request.method);\n// Once one request has come\nif limiter.consume(vec![\n    (key.as_str(), 10, 10, 1),\n    (key.as_str(), 3600, 600, 1),\n    (key.as_str(), 24*3600, 10000, 1)]).is_ok() {\n    // Process the request\n} else {\n    // Reject the request\n}\n#+END_SRC\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewawar%2Fbucket-limiter-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthewawar%2Fbucket-limiter-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewawar%2Fbucket-limiter-rs/lists"}