Let me introduce latest addition to our Logos stack based PoCs:-) This one was probably the most fun to build and use and is also coolest to integrate - Trollbox.
If you lived under the rock, like me, you may have never heard about trollboxes. Apparently it was/is very popular thing in crypto exchange websites - in simple terms, it is a chatbox where you can interact with other visitors of the website. There is no promise of history persistence and it can be anonymous.
And that is exactly what we built with @chair on a live stream!
https://x.com/i/broadcasts/1lPJqMkDkYeJb
After that, I fixed up something and actualyl published the code on npmjs.org as a React component.
The code is available on Github: trollhouse-troll-tales/packages/trollbox at main · vpavlin/trollhouse-troll-tales · GitHub
And the integration, as I mentioned, is super simple
npm install waku-trollbox
and then add <Trollbox />
somewhere in your React app
It is still deployed as part of the demo I recorder:
I am collecting bugs and feature requests in the GH repo: GitHub · Where software is built - if you have thoughts, please do share them:)
Couple disclaimers:
- It is not intended for websites with thousands of users (yet) - it uses very tiny temporary Waku network, until we fix TWN (The Waku Network)
- There is no spam protection - everyone is completely anonymous and the “identity” is by default only based on the string you put in the nickname (there is an issue to improve that)
- The js-waku node sometimes disconnects (because of the shitty network we use and because p2p…) the Trollbox does not show that, but you’ll see errors in console logs (also captured in one of the issues), reload fixes this: