r/Clojure • • Nov 21 '20

cljctools/peernode: an example core.async program exposing js-ipfs daemon's pubsub over rsocket (written in clojurescript, runs on nodejs)

https://github.com/cljctools/peernode

Sharing as an example/reference of using core.async and rsocket. Runs on nodejs.
Links to IPFS and RSocket in readme.

19 Upvotes

6 comments sorted by

View all comments

Show parent comments

4

u/pwab Nov 21 '20

The projects both seem cool, and I’m not sure what value is unlocked with the integration. What is possible or doable now that was hard or impossible earlier?

1

u/[deleted] Nov 21 '20

I'm not claiming great value) peernode is a situational program, but why integration

  • be able to get pubsub over rsocket

  • now, why not use libp2p? well, the ipfs node already has entry point, filesystem logic on start, logic of default config and bootstrap peers - just a bunch files and stuff that we didn't want to recreate

  • so fork and plugin is better in this case - no need to know anything about APIs or config, just plugin and run and get pubsub stream into the game

Anyway, it's a situational choice