Bandwidth limiting is an open issue for go-ipfs as well, but there are workarounds:
-
Most of ambient traffic is caused by your node being an active DHT server. Try running the daemon with
ipfs daemon --routing=dhtclientto disable it. (not sure if js-ipfs supports this flag, may be only go-ipfs) -
If that is not enough, you may want to use third-party userspace bandwidth shaper such as trickle:
trickle -s -u 50 -d 50 ipfs daemon --routing=dhtclientThis will work for both go-ipfs and js-ipfs nodes.