{"id":19763062,"url":"https://github.com/exhammer/hammer-plug","last_synced_at":"2025-05-16T13:04:04.667Z","repository":{"id":32629955,"uuid":"137606418","full_name":"ExHammer/hammer-plug","owner":"ExHammer","description":"A plug to apply rate-limiting with Hammer","archived":false,"fork":false,"pushed_at":"2025-05-12T07:45:29.000Z","size":69,"stargazers_count":70,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T08:23:18.184Z","etag":null,"topics":["elixir","elixir-lang","elixir-library","phoenix","plug","rate-limiting","throttling"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/ExHammer/hammer-plug","language":"Elixir","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/ExHammer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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}},"created_at":"2018-06-16T19:47:57.000Z","updated_at":"2025-02-26T16:04:29.000Z","dependencies_parsed_at":"2023-01-14T22:00:32.996Z","dependency_job_id":"fbe0fdcd-c022-4b58-91eb-17c7d91339ad","html_url":"https://github.com/ExHammer/hammer-plug","commit_stats":{"total_commits":46,"total_committers":7,"mean_commits":6.571428571428571,"dds":"0.21739130434782605","last_synced_commit":"4d3668bc16a59bc276998da4f7c8953032059129"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExHammer%2Fhammer-plug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExHammer%2Fhammer-plug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExHammer%2Fhammer-plug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExHammer%2Fhammer-plug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExHammer","download_url":"https://codeload.github.com/ExHammer/hammer-plug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535826,"owners_count":22087398,"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":["elixir","elixir-lang","elixir-library","phoenix","plug","rate-limiting","throttling"],"created_at":"2024-11-12T04:07:53.882Z","updated_at":"2025-05-16T13:04:04.614Z","avatar_url":"https://github.com/ExHammer.png","language":"Elixir","readme":"# Hammer.Plug\n\n\u003e [!WARNING - End-of-Life - 2024-12-20]\n\u003e This library is End-of-Life. With the 7.x release, it s much easier to create your own\n\u003e rate limiters. But shipping a common plug do not make sense anymore. Please consider\n\u003e using custom function plugs. See the [Hammer documentation](https://hexdocs.pm/hammer/7.0.0-rc.3/tutorial.html#using-hammer-as-a-plug-in-phoenix) for more information.\n\u003e\n\n---\n[![Build Status](https://github.com/ExHammer/hammer-plug/actions/workflows/ci.yml/badge.svg)](https://github.com/ExHammer/hammer-plug/actions/workflows/ci.yml) [![Hex.pm](https://img.shields.io/hexpm/v/hammer_plug.svg)](https://hex.pm/packages/hammer_plug) [![Documentation](https://img.shields.io/badge/documentation-gray)](https://hexdocs.pm/hammer_plug)\n[![Total Download](https://img.shields.io/hexpm/dt/hammer_plug.svg)](https://hex.pm/packages/hammer_plug)\n[![License](https://img.shields.io/hexpm/l/hammer_plug.svg)](https://github.com/ExHammer/hammer-plug/blob/master/LICENSE.md)\n\n[Hammer](https://github.com/ExHammer/hammer) is a rate-limiter for Elixir, with pluggable storage backends.\n\nThis library is a [plug](https://hexdocs.pm/plug/readme.html) helper, to easily add rate-limiting to Phoenix applications,\nor any Elixir system that uses plug.\n\nExample:\n\n```elixir\n# Allow ten uploads per 60 seconds\nplug Hammer.Plug, [\n  rate_limit: {\"video:upload\", 60_000, 10},\n  by: {:session, :user_id}\n] when action == :upload_video_file\n\ndef upload_video_file(conn, _opts) do\n  # ...\nend\n```\n\n## Documentation\n\nSee the [Hammer documentation page](https://hexdocs.pm/hammer) for more info on Hammer itself.\n\nSee the [Hammer.Plug docs](https://hexdocs.pm/hammer_plug) for more info about this library and how to use it, specifically the [Hammer.Plug](https://hexdocs.pm/hammer_plug/Hammer.Plug.html#content) module.\n\n\n## Installation\n\nHammer-Plug is avaliable [available in Hex](https://hex.pm/docs/publish), the package can be installed by adding `hammer_plug` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:hammer, \"~\u003e 6.0\"},\n    {:hammer_plug, \"~\u003e 3.0\"}\n  ]\nend\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexhammer%2Fhammer-plug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexhammer%2Fhammer-plug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexhammer%2Fhammer-plug/lists"}