{"id":22931390,"url":"https://github.com/errm/millrace","last_synced_at":"2025-08-12T15:32:07.814Z","repository":{"id":241794444,"uuid":"807664831","full_name":"errm/millrace","owner":"errm","description":"Rate limiting on rails","archived":false,"fork":false,"pushed_at":"2024-08-15T20:31:05.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-28T03:48:20.215Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/errm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2024-05-29T14:35:57.000Z","updated_at":"2024-09-17T13:43:16.000Z","dependencies_parsed_at":"2025-06-07T20:44:41.533Z","dependency_job_id":null,"html_url":"https://github.com/errm/millrace","commit_stats":null,"previous_names":["errm/millrace"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/errm/millrace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/errm%2Fmillrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/errm%2Fmillrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/errm%2Fmillrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/errm%2Fmillrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/errm","download_url":"https://codeload.github.com/errm/millrace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/errm%2Fmillrace/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270086842,"owners_count":24524658,"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-12T02:00:09.011Z","response_time":80,"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-12-14T10:38:57.011Z","updated_at":"2025-08-12T15:32:07.454Z","avatar_url":"https://github.com/errm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Millrace\n\n[![Gem Version](https://badge.fury.io/rb/millrace.svg)](https://badge.fury.io/rb/millrace)\n[![codecov](https://codecov.io/github/errm/millrace/graph/badge.svg?token=OG8LNDOUVO)](https://codecov.io/github/errm/millrace)\n\n## Usage\n\n```\nclass UsersController\n\n  before_action Millrace::RateLimit.new(\n    name: \"follows\",\n    rate: 1/60.0, # 1 request per minute\n    window: 1.minute,\n    penalty: 10.minutes,\n  ), only: :create\n\n  rescue_from Millrace::RateLimited do |error|\n    # perhaps record metrics here\n    response.set_header \"Retry-After\", error.retry_after\n    head :too_many_requests\n  end\n\n...\n\nend\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/errm/millrace. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/errm/millrace/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Millrace project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/errm/millrace/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferrm%2Fmillrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferrm%2Fmillrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferrm%2Fmillrace/lists"}