Hacker News new | ask | show | jobs
by dominicr 2277 days ago
I had a need for an API middleman, recording and replaying API messages between an application and provider APIs, without setting up a local proxy. So I decided to built something myself instead of another product. As with many side projects, I'm using it to learn new skills and brush up old ones.

With working from home and schools closed, I don't have much extra time, but the restructured day does mean I have pockets of time where I'd usually be out and about but can now be used at home.

1 comments

Did you end up building it? I would be interested to see your solution. Also "Api Middleman" would be a great name!

I asked this [1] a few months ago and have wanted to this for a long time now. I was thinking of it kind of like a caching proxy layer for 3rd party API's, to mainly get around rate-limiting.

[1] https://news.ycombinator.com/item?id=22362685

Rate-limiting is a real problem for it, and one reason it might not be feasible as a product as some APIs still rate-limit based on IP, so for those there would have to be some randomisation of IPs used.

I'm hesitant to share it as I know it's quite buggy and a bit too simple at the moment. I've not tested it with enough variety of APIs and use cases. Plus the whole UI needs deleting and starting all over again, but built properly! With all those caveats, it's https://apiarchive.com/