Allow for use without trammel
KyleMaas opened this issue · comments
Okay, so in testing the new version that's compatible with db2, I can't actually use it in a browser context because of the use of trammel. We already have blobs's ls() function which lists all of the blobs with a size. If we could use that and add all of the sizes together instead of requiring trammel, then we'd be able to use this in ssb-browser-core.
Maybe the way to do this would be to add a totalSize() function to ssb-blobs? Then trammel could be pulled in over there, and we could still override it for browser local storage via simple-blobs in ssb-browser-core.