Git Product home page Git Product logo

Comments (15)

tunnckoCore avatar tunnckoCore commented on July 20, 2024 1

Finally, v3 will come maximum at the end of the week. After I finish helapkg/hela#34.

from koa-better-ratelimit.

tunnckoCore avatar tunnckoCore commented on July 20, 2024

Yea, i see that when PR appears in koa-ratelimit and i'm thinking of it.

from koa-better-ratelimit.

tunnckoCore avatar tunnckoCore commented on July 20, 2024

It would be great if you can PR also with tests.

from koa-better-ratelimit.

tunnckoCore avatar tunnckoCore commented on July 20, 2024

Its not so easy because of using ipchecker's checks here

Hm.. okey, I'll look what can I create, as soon as possible. PRs welcome.

from koa-better-ratelimit.

tunnckoCore avatar tunnckoCore commented on July 20, 2024

@jedahan why you want to use koa-better-body?

from koa-better-ratelimit.

jedahan avatar jedahan commented on July 20, 2024

I'm confused what does koa-better-body has to do with my request. Unfortunately I don't have the time to submit a pull request, though I would like to. This is a request from a friend of mine, just trying to help him out :)

from koa-better-ratelimit.

tunnckoCore avatar tunnckoCore commented on July 20, 2024

Right.

I'm confused what does koa-better-body has to do with my request

It's simple, just limiting the requests per ip. And if he dont need to define custom error msgs, blacklisting ips, dont need db saving and etc, he should use some other simpler middleware

from koa-better-ratelimit.

tunnckoCore avatar tunnckoCore commented on July 20, 2024

Im thinking of to decouple it to separate modules at some point or concept for adding middleware to this middleware - i think it would be good. At this point we have tj's node-ratelimiter, but i believe it can be simpler.

from koa-better-ratelimit.

jedahan avatar jedahan commented on July 20, 2024

Ahh yes. That makes sense. Any middleware that can take a function, and yield a 429 ratelimit would do. Much simpler. Thanks for being patient explaining this to me.

from koa-better-ratelimit.

tunnckoCore avatar tunnckoCore commented on July 20, 2024

No worries. Try middlewares such as koa-ratelimit and koa-limit

from koa-better-ratelimit.

tunnckoCore avatar tunnckoCore commented on July 20, 2024

@jedahan I'll do this tonight and will release v3.0.0, because significant refactoring of the codebase and following ferver version scheme.

I'll start in clear v3 branch, stay tuned. Thank you guys!

from koa-better-ratelimit.

bishtawi avatar bishtawi commented on July 20, 2024

@tunnckoCore Do you have an ETA on when you plan on making v3 live? I need this feature as my server is sitting behind a load balancer and the IP address I need to rate limit is stored in X-Forwarded-For header.

from koa-better-ratelimit.

tunnckoCore avatar tunnckoCore commented on July 20, 2024

Do you have an ETA on when you plan on making v3 live

maximum the end of the week.

you may want to review https://github.com/tunnckoCore/koa-ip-filter

from koa-better-ratelimit.

apisurfer avatar apisurfer commented on July 20, 2024

+1. Would love to see this feature.

from koa-better-ratelimit.

tunnckoCore avatar tunnckoCore commented on July 20, 2024

@bishtawi @Popc0rn sorry guys but I have a bad cold. Try koa-ip-filter. :)

from koa-better-ratelimit.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.