In trying to get ssb-blobs-purge to work in a browser (see https://github.com/arj03/ssb-browser-demo/issues/8), I'm running into an issue in that ssb-blobs-purge requires trammel (see https://github.com/staltz/ssb-blobs-purge/issues/3), which doesn't work with the ssb-blobs modifications we have in ssb-browser-core. I could make it work if ssb-blobs had a function itself to figure out the total size of all of the blobs it has. That way trammel could be removed from ssb-blobs-purge.
Is it possible we could add a totalSize() function here which returns the total number of bytes consumed by the blobs we're currently storing?
In trying to get ssb-blobs-purge to work in a browser (see https://github.com/arj03/ssb-browser-demo/issues/8), I'm running into an issue in that ssb-blobs-purge requires
trammel
(see https://github.com/staltz/ssb-blobs-purge/issues/3), which doesn't work with the ssb-blobs modifications we have in ssb-browser-core. I could make it work if ssb-blobs had a function itself to figure out the total size of all of the blobs it has. That way trammel could be removed from ssb-blobs-purge.Is it possible we could add a
totalSize()
function here which returns the total number of bytes consumed by the blobs we're currently storing?