Closed nichoth closed 2 years ago
Check https://github.com/arj03/ssb-browser-core, I'll be merging https://github.com/arj03/ssb-browser-core/pull/59 soon that makes the API 1 to 1 with node. Happy to merge a PR that improves the README in this regard with a link?
Ok, so https://github.com/arj03/ssb-browser-core uses ssb-db2, and you would use the browser-core module in a browser. I see.
I see the browser-core example is called like:
ssbSingleton.setup("/.ssb-example", config, extraModules)
What does /.ssb-example
refer to in a browser?
It's just like a namespace in case you have multiple databases. When running in chrome it will actually write files to a folder under that name.
thanks
The readme mentions
But i didn't see any other mention of this. What is the lower level API that this uses? (for example indexedDB). How does replication work in this case? If your follow graph is too large to store the entire thing in browser-based storage, how do you decide what to store?