{"id":13636368,"url":"https://github.com/membphis/lua-resty-limits","last_synced_at":"2025-10-15T22:09:38.047Z","repository":{"id":84899783,"uuid":"38257967","full_name":"membphis/lua-resty-limits","owner":"membphis","description":"nginx limit request every second or minute base on openresty","archived":false,"fork":false,"pushed_at":"2015-06-30T14:34:25.000Z","size":132,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T04:16:32.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/membphis.png","metadata":{"files":{"readme":"README.md","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":"2015-06-29T16:26:40.000Z","updated_at":"2021-01-05T16:12:54.000Z","dependencies_parsed_at":"2023-03-02T19:16:01.490Z","dependency_job_id":null,"html_url":"https://github.com/membphis/lua-resty-limits","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membphis%2Flua-resty-limits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membphis%2Flua-resty-limits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membphis%2Flua-resty-limits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membphis%2Flua-resty-limits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/membphis","download_url":"https://codeload.github.com/membphis/lua-resty-limits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003972,"owners_count":21196793,"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":[],"created_at":"2024-08-02T00:01:00.495Z","updated_at":"2025-10-15T22:09:38.006Z","avatar_url":"https://github.com/membphis.png","language":"Lua","readme":"# lua-resty-limits\nlimit nginx request every seconds base on openresty\n\n# Use exmaple\n\n```lua\nlocal limits = require(\"resty.iresty_limits\")\nlocal limits = limits.new()\n\n-- the rate is 80bytes/seconds, you can input 80K(means 80KB/sec) too.\nlimits:rate(\"80\")\n\n-- \nngx.say(\"check request is allowed: \", \n    limits:reqs_per_range(ngx.var.binary_remote_addr, ngx.var.uri, 1, 2))\n```\n\nprovide by membphis@gmail.com\n\nif you have any question, please let me know. ","funding_links":[],"categories":["Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembphis%2Flua-resty-limits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmembphis%2Flua-resty-limits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembphis%2Flua-resty-limits/lists"}