5 ms·
A guide to IPFS connectivity in web browsers
- akavel 5y agoDo I understand correctly that I still need to run either an extra service outside the browser on my client machine, or some service on a central server I own (the WebRTC-Star thing?) for this to work?
- kevincox 5y agoFor browsers that don't natively support IPFS yes.
- tremon 5y agoWill browsers that natively support IPFS automatically become distribution nodes? Or is cached-but-not-pinned data not served to other peers?
- chalst 5y agoIt's worth noting that native support of IPFS is usually going to mean something like what Brave now does: the browser manages an instance of an ipfs-go node.
- unfocussed_mike 5y agoIs there any suggestion that browsers beyond Brave will support it?
- alexb_ 5y ago> First step involves the command line This is the "web of tomorrow"?
- dangerface 5y agoDon't worry the second step is to replace your keyboard with a neural link.
- tpoacher 5y ago2022 is the year of <s>Linux</s>IPFS on the desktop!
- legutierr 5y agoThe truly ironic thing about this comment is that there are more devices is users hands today that run Linux than run any other operating system. Of the remaining devices, the majority run a variety of BSD Unix. All of these devices might not use a WIMP paradigm—opting instead for a touch interface—but for most users, the majority of the GUI interactions they have with computer applications are facilitated by a Linux or Unix operating system. Linux won in the end, it’s desktop computing that lost. Maybe something similar will happen with IPFS and related technologies?
- TacticalCoder 5y ago> This is the "web of tomorrow"? I'd argue that those who never wanted to do any of these things pretty much got the "web of today" they deserve.
- fredoliveira 5y agoWell, yes - the key word in that statement being "tomorrow". Technological innovation doesn't happen overnight. Browsers don't get IPFS support overnight. User interfaces don't get created overnight. And so, yes, sometimes it is up to people who can use the command line to pave the way to, as you're calling it, the web of tomorrow.
- can16358p 5y agoThis is nice but for more mass adoption we'll need something seamless that will just be included as a script in a web page and "just work" by connecting to a provider while still customizable for people who want to use their own node. It can even "polyfill" any IPFS paths automatically (which should just be simply as replacing any ipfs:// URIs with ipfs.io gateway paths). For anyone trying to host pinned files behind a NAT/CGNAT would it be possible to hole punch to serve paths directly? If possible everything can me set up to work just out of the box with minimal/no setup in browser which should be the aim. In other words, we need something of an IPFS version of what MetaMask/ethers.js did to Ethereum based blockchains.
- dangerface 5y agoThe current state of the browser its just not possible to do p2p properly, WebRTC is the best bet and you need to trust stun servers to punch NAT you need to trust a signal server to connect to other peers its not real p2p so why not just trust a gateway and use that. Brave browser has ipfs support built in and I think there are plugins for chrome and firefox without the code localy to do p2p properly it doesn't really make much sense faking it with WebRTC when the end result is the same as using a gateway directly.
- can16358p 5y agoTrying local node, verifying it works, otherwise falling back to an external node might be the best way to go. But still we need Firefox/Chrome/Safari adoption.
- artdigital 5y ago> This is nice but for more mass adoption we'll need something seamless that will just be included as a script in a web page and "just work" by connecting to a provider while still customizable for people who want to use their own node. It can even "polyfill" any IPFS paths automatically (which should just be simply as replacing any ipfs:// URIs with ipfs.io gateway paths). That’s what Brave does built in, and other browsers with the ipfs companion extension When you hit a ipfs URL it’s resolving it either through a gateway or through your own node
- captn3m0 5y agoIs a first-party IPFS Web Extension a possibility? Like how it would have been with the old-style Firefox extensions?
- dangerface 5y agoSeems like its necessary to get the p2p stuff working properly other wise it all just uses a gateway. https://addons.mozilla.org/en-US/firefox/addon/ipfs-companion/ https://addons.mozilla.org/en-US/firefox/addon/ipfs-companio...
- deleted 5y ago[deleted]
- sp332 5y agoIt's not a standard yet, but you can try it out in Firefox Nightly. https://github.com/mozilla/libdweb/blob/master/Readme.md#protocol-api https://github.com/mozilla/libdweb/blob/master/Readme.md#pro...
- lidel 5y agoThese libdweb Browser Extension APIs never landed in any official Firefox Nightly build. Mozilla stopped working on libdweb in 2019 (https://github.com/ipfs/ipfs-companion/pull/533#issuecomment-696687325 https://github.com/ipfs/ipfs-companion/pull/533#issuecomment...).
- sp332 5y agoAh dang. I figured it was popular enough that someone would be working on it at least experimentally.
- dpweb 5y agoWhat about upnp as an alternative to stun to achieve real p2p? You may need something native to setup but would not rely on a relay.
- southerntofu 5y agoUPnP does not work on all networks (eg. double-NAT), and network administrators may be afraid to allow UPnP traffic as it would easily open doors to the LAN from the outside (for example from a stupid "smart" device).
- ctxc 5y agoHate it when articles don't expand on abbreviations. Yes, I want to read this. No, I have no heckling what IPFS is.
- robgibbons 5y agoIt's an article about IPFS, hosted at a website also called IPFS.io. Just click the logo, and it will answer all of your questions.
- tremon 5y agohttps://docs.ipfs.io/concepts/what-is-ipfs/#what-is-ipfs https://docs.ipfs.io/concepts/what-is-ipfs/#what-is-ipfs > That last point is actually where IPFS gets its full name: the InterPlanetary File System. We're striving to build a system that works across places as disconnected or as far apart as planets. While that's an idealistic goal, it keeps us working and thinking hard, and almost everything we create in pursuit of that goal is also useful here at home.