TooTallNate/node-proxy-agent

so big

jonathanong opened this issue · 7 comments

screen shot 2014-04-06 at 9 18 09 pm

saw that component is now a 78mb or osmething install. noticed that this libary alone is like 10mb. looks like the main source of the size is regenerator/degenerator's esprima and friends.

would be nice if you could make this smaller or remove those deps

Haven't forgotten about this. I can't really drop any deps, but once esprima gets the ES6 support in their npm package, that should help quite a bit (currently relying on the git package which doesn't allow for good deduping behavior IIRC)...

This just bit me too.

How about a connect-style plugin system so that the pac stuff is optional?

I was installing nodemailer-mailgun-transport, which depends on proxy-agent on a raspberry pi and it crashed due to running out of memory with the pac-* / esprima stuff.

Edit: when I installed this by itself it didn't crash, but it's still dead weight that slows down the load time due to requiring and parsing and compiling unused code.

Is tunnel a viable alternative?

Node v4 now the oldest maintained version and supports generators. That could help a little at least in dependencies?

Pretty sure this lib has been abandoned.

We ended up developing a paired client/server that goes over websockets (for the solution of tunneling, not proxying directly):

They work decently well.

vvo commented

Heads up, it "only" weight 4.5MB nowadays, maybe we can close this?