Javascript API
Closed this issue · 3 comments
Just curious if there is a JavaScript module for Bamboo available or in the works?
If so, I was wondering how similar the API would be to hypercore. I think it would be interesting if an identical API would allow for the mixing/bridging of modules in the ScuttleButt and Dat/Hyper ecosystems, if that’s possible?
Hey @calm-rad,
Just curious if there is a JavaScript module for Bamboo available or in the works?
I don't know if there are other implementations in js, but I'm working on an implementation in Rust. It compiles to wasm.
I have some incomplete work to wrap the wasm api so it's easier to use.
If so, I was wondering how similar the API would be to hypercore.
I don't know the hypercore api.
The p2panda folks are doing stuff with bamboo and js, but I don't know whether that involves a js API. CC @adzialocha
Bamboo and hypercore implement the same abstract data type, so a unified API should be possible.
And pro forma I have to push back against the notion that bamboo is tied to scuttlebutt in any way beyond heritage.
This poc uses Bamboo in the browser with a JavaScript wrapper and WASM: https://github.com/p2panda/beep-beep-client