Lightweight rate limiter plugin for Elysia.js
MIT License
Bot releases are visible (Hide)
responseCode
, and responseMessage
in favor of new errorResponse
option. please consult with documentation for more detailsinjectServer
optionPublished by github-actions[bot] 6 months ago
Published by github-actions[bot] 6 months ago
Published by github-actions[bot] 6 months ago
Published by github-actions[bot] 6 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
getNextResetTime
implementation are now moved into defaultContext
generator
function now accepts server
option as non-nullable. the plugin also checks if elysia server is initialized first.Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 11 months ago
any
, so you can actually return response as anything (i.e. object)Published by github-actions[bot] 11 months ago
generator
now determine IP address natively via server.requestIP()
function. This is a breaking change for those who use Bun version 1.0.3 or below. Please update your code to support Bun version 1.0.4 or above.Published by github-actions[bot] 11 months ago
Published by github-actions[bot] about 1 year ago
Published by rayriffy over 1 year ago
countFailedRequest
to change default plugin behaviorcontext
for writing your own custom context (i.e. use database or filesystem to store request count instead of memory)skip
function to determine this Request
should be counted into rate limiter or notPublished by rayriffy over 1 year ago