Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Aggregate-fn library that provides savings when you deal with API eco (github.com/chrvadala)
1 point by chrvadala on Sept 5, 2022 | hide | past | favorite | 1 comment


Hello guys, I'm going to present you my latest Javascript open source project: chrvadala/aggregate-fn. It's a tiny library that can help you when you have to deal with the API economy world.

I found different services that you have to pay for the number of performed api requests. At the same time, they provide you some "bulk" API that returns multiple answers paying just for one request.

I wanted to optimize my project and I made aggregate-fn in order to aggregate together, requests coming in a short window. This library took inspiration from debouncing and throttling methodologies, but with a focus on Node.js and Promise.

I share this project because I think that I found a common pattern that this library can efficiency manage, providing savings even for your project.

Do you think that this project will help you in the same way? LMK in the comments https://github.com/chrvadala/aggregate-fn




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: