News for hackers. Stuff that matters.
Re:Show HN: Peer-to-peer chat example built with JavaScript ... by LoSboccacc on Monday January 22, 2018 @08:55AM (#16204309)
very interesting. seems to be handling the load exceptionally well, even if the system messages are interfering right now. latency is quite good to!

there's something I don't understand from skimming the docs: if I want to use IPFS for a project of mine, do I have to deploy a IPFS backend or there's a default I can use? it's said to be peer-to-peer so unless the peer are shared across all projects small implementation may have issues to keep availability.

edit: figured out there's a public gateway and one can also set up a private swarm. sweet!

Re:Show HN: Peer-to-peer chat example built with JavaScript ... by p2pchatter on Monday January 22, 2018 @10:46AM (#16205209)
Yes, system messages got in the way. Try this version without them: https://ipfs.io/ipfs/QmbZVv9q52znhF9wN6GVi55EJQYq2BR6oeTgzVn...

If you want to use IPFS, you can either import IPFS as a library (which this application does, everything is P2P in the browser, by using js-ipfs and including it in the application, you can see it in the annotated source here: https://ipfs.io/ipfs/QmbZVv9q52znhF9wN6GVi55EJQYq2BR6oeTgzVn...) or you can connect to a gateway.

Re:Show HN: Peer-to-peer chat example built with JavaScript ... by StavrosK on Tuesday January 23, 2018 @06:02AM (#16212564)
Essentially, you'd just run the IPFS node and add files to it. Gateways won't store your files for long.