12 ms·
Show HN: Hearth – A Dropbox-like, IPFS-powered personal website publisher
- tomcooks 9y agoWhy not use Beaker[0] and achieve the same thing, but on linux and windows too? It has a great community too [0](http://beakerbrowser.com/ http://beakerbrowser.com/)
- jaboutboul 9y agoOr BlockStack[0] even [0](https://blockstack.org https://blockstack.org)
- marknadal 9y agoOr add realtime updates to IPFS, Beaker, or Blockstack using a P2P/decentralized Firebase: https://github.com/amark/gun https://github.com/amark/gun IPFS + Firebase = Lovechild ^
- jaboutboul 9y agoWow, this is great. Thanks for sharing this.
- edjroot 9y agoI remember having read about Gun a few years ago [1] and there was a lot of (apparently) valid criticism. Do you know how much of that is still valid today? [1]: https://news.ycombinator.com/item?id=9076558 https://news.ycombinator.com/item?id=9076558
- marknadal 9y agoIf you intend to use GUN for banking or any globally consistent (CP) system, then yes. However, for everything else, the criticisms no longer apply. GUN is an CRDT based AP (highly-available, partition tolerant) strongly eventually consistent system, and therefore should not be used for banking-like systems. I hate the jargon so sorry to reply with it, but it allow for a quick/concise summary of GUN's tradeoffs. Some more resources below: - Cartoon explainer of academic stuff: https://gun.eco/distributed/matters.html https://gun.eco/distributed/matters.html - CAP Theorem tradeoffs: https://gun.eco/docs/CAP-Theorem https://gun.eco/docs/CAP-Theorem - How to implement the CRDT and how it solves for Split-Brain failures: https://gun.eco/docs/Conflict-Resolution-with-Guns https://gun.eco/docs/Conflict-Resolution-with-Guns There are a bunch of other resources, but I'm more than happy to reply/answer any specific questions if you have them. Cheers!
- edjroot 9y agoThat's exciting, thanks a lot! I was just considering using a graph database for a future side project. I also read Neo4j was an inspiration. Is there any "human-made" comparison between the two? All I could find was "A vs. B" comparison tables. Thanks again!
- marknadal 9y ago@edjroot I don't know if this is any different than what you already saw, but the biggest differences are: - Neo4j is Master-Slave, GUN is Master-Master (or Multi-Master, or Masterless). Basically, GUN is P2P/decentralized, Neo4j is centralized. - GUN has realtime updates/sync built in, Neo4j does not. - GUN has offline-first features, Neo4j does not. Other considerations: - Neo4j has its own query language, GUN has a FRP (Functional Reactive Programming) based JS API. - Neo4j is over a decade old, GUN since late 2014. - Neo4j is more monolithic, GUN is more microservice-y.
- StavrosK 9y agoIt's personal preference, some people will prefer Beaker, we personally liked the "drag some files to a folder and that's it" UX. By the way, I'll mention this here because it isn't evident on the Hearth page right now: You can get your own username on Eternum for free, and it will redirect to the latest hash that Hearth publishes (i.e. the latest version of your website) automatically. You can do this even if you don't use Hearth (we have an API for it), here's an example with my username: https://www.eternum.io/user/stavros/ https://www.eternum.io/user/stavros/
- lucideer 9y ago> we personally liked the "drag some files to a folder and that's it" UX. Beaker does this... In terms of getting a free username on a HTTP website, https://hashbase.io/ https://hashbase.io/ Disclaimer: I haven't used Hearth, so I can't compare, but Beaker doesn't seem like it could be much easier.
- StavrosK 9y agoOh I see, thanks. I'm not very familiar with Dat/Beaker, but I'll try it out some more, as I missed that mechanic.
- lucideer 9y agoQuick demo if you don't want to install: https://www.youtube.com/watch?v=wwLaEyKGc90 https://www.youtube.com/watch?v=wwLaEyKGc90
- super_trooper 9y agoAm I missing something? Beaker requires you to use their browser? Not really apples to apples
- lucideer 9y agoBeaker is a browser that supports http:// http:// and dat:// - you can: - use Beaker to publish/"host" dat:// websites (as you can use Hearth to publish ipfs websites) - use Beaker or any dat:// client to browse dat:// websites - use any browser to browse dat:// websites via http through hashbase.io (similar to eternum.io)
- fiatjaf 9y agoOk, but to access a site published on Beaker you must use the Beaker browser, right?
- lucideer 9y agoIf it's published on Hashbase, you can access it with any HTTP client (though this of course somewhat defies the point of it being p2p). Otherwise, you will need a dat:// client - Beaker is the main web browser with dat:// support, other clients sofar have more specialised uses, e.g. https://github.com/codeforscience/sciencefair https://github.com/codeforscience/sciencefair
- jondashkyle 9y ago> though this of course somewhat defies the point of it being p2p Not really. Need ways of bridging the gap.
- lucideer 9y agoI guess what I meant was that using hashbase exclusively over http and not switching to using dat:// clients would be somewhat defying the point, but yeah, it's a good bridge.
- jondashkyle 9y agoYeah. This is where appropriating existing patterns like pay-walls becomes interesting. Instead of requiring registration and a fee, simply view in a p2p-enabled environment and help offset bandwidth costs. Of course there is more to it that that, but money not spent on infrastructure is money in the pockets of content creators and publishers.
- IamNotAtWork 9y agoHashbase seems to function as one of the nodes in the DAT network, so even if none of the peers are online at least Hashbase is still there. That's what I gathered from a quick scan. The DAT network seems interesting and is new to me, but like you said, needing a central node to cache the data seems like breaking the p2p story.
- jondashkyle 9y agoI spent several years at Cargo Collective (https://cargocollective.com https://cargocollective.com), a publishing platform for designers, musicians, architects, etc… Pre-SquareSpace, Wix, all that… Days away from releasing the public beta of Enoki, an experimental publishing tool for the peer-to-peer web. Currently running inside Beaker Browser and built on Dat. Beta registration was opened last week, although it is still trying to fly a bit below the radar :) https://enoki.site https://enoki.site
- prophesi 9y agoFun fact: Beaker used to support IPFS[0] and the IPFS creator used to work with the Dat project[1]. [0]https://github.com/beakerbrowser/beaker/issues/480#issuecomment-346865836 https://github.com/beakerbrowser/beaker/issues/480#issuecomm... [1]https://github.com/ipfs/faq/issues/119#issuecomment-218278390 https://github.com/ipfs/faq/issues/119#issuecomment-21827839...
- fiatjaf 9y agoWhy Google Drive if you can Dropbox? Or whatever. This comment is just advertising for the Beaker browser. It could at least be open about it and say: "Also check out Beaker, with similar functionality". It's not nice or intelligent to say "don't do this in a different way because we are already doing it in our own way".
- xori 9y agoI find that Beaker doesn't cut through corporate/university firewalls as good as IPFS. I'd be interested to know others experiences.
- Xeoncross 9y agoI need to leave my mac running (or install IPFS on a VPS) so that if anyone wants to read my personal site there is a source online that can provide the content right?
- bmcusick 9y agoNot necessarily. IPFS is sort of like Bittorrent on steroids. You can think of yourself as the first seeder of your website, but as long as there are other network participants that have a full copy of your site, your home PC doesn't need to be online for people to access it.
- StavrosK 9y agoExactly. They do need to get a copy of your site first, though, and they do that by accessing it (so someone else needs to have visited your site first). Otherwise, you can use https://www.eternum.io/ https://www.eternum.io/ (which is a service we also made) to basically seed your site for a few cents a month.
- iagovar 9y agoI'm a layman in this stuff, can IPFS sites be accesible from http?
- bmcusick 9y agoIPFS is its own standard, so your homepage might look like ipfs://blog.iagovar.co But since most browsers don't support IPFS natively yet there are IPFS gateways that allow you to access IPFS sites through them.
- detaro 9y agothrough gateways, yes. There a bunch of public ones, or you can run your own.
- zeta0134 9y agoYes, through any of the publically available IPFS gateways. ipfs.io is one of the more common official ones, but since they're all connected to the same network, in theory the content should be available from any of them. You can also host your own gateway (locally or publically) and point your browser at it. If you're wanting to make something with DNS in front of it to mask the long IPFS content hashes, you can do that too, there's a good overview of the process in their examples: https://ipfs.io/docs/examples/example-viewer/example#../websites/README.md https://ipfs.io/docs/examples/example-viewer/example#../webs...
- bmcusick 9y agoFantastic. The web falling into the AmaGooBookSoft silos has been convenient, but it hasn't been good for censorship or personal sovereignty. Making it push-button easy to publish to IPFS a great way to return editorial control and ownership to individuals, without the downsides of needing to run and maintain servers. I hope Hearth or someone like them expands beyond websites to self-publishing of store front ends, crypto payment, social feeds, real time video, and all the other services we expect AmaGooSoftBook to provide today. And to integrate Tor as necessary.
- ziikutv 9y ago> I hope Hearth or someone like them expands beyond websites to self-publishing of store front ends, crypto payment, social feeds, real time video, and all the other services we expect AmaGooSoftBook to provide today. And to integrate Tor as necessary. Agree but I hope we take super small baby steps and get what above is accomplishing right the first time without complicating the use cases just yet.
- 52-6F-62 9y ago>but it hasn't been good for censorship or personal sovereignty. On this subject— I'm going to be that guy this time because I haven't yet seen a good solution to the problem, and I ask with sincerity: What happens when somebody decides they're going to start an illicit website/content of some kind? (let's avoid semantics because I'd rather not go down that path) Everybody then has a forced part in hosting it, and there are just some subjects that do not have any redeeming aspects. Is there a resolution built in for those scenarios?
- atrus 9y agoI'm not sure why you'd say that everyone has a forced part in hosting it, since IPFS only pulls files you request to your computer.
- 52-6F-62 9y agoAfter your comment I did a quick bit of reading and realized I'd made a fundamental mistake regarding how I thought I knew IPFS worked (vs. other decentralized file system formats). The mistake I'd made was thinking it worked more or less similar to Bitcoin where every node holds the whole chain, where it really works more like torrents in that you download the set of files and then reseed. Thanks for pointing out the difference. Because of my error I guess the question changes. It sounds like it may be even more damning for those who regularly view illicit content, but at the same time making it harder to shut down caches of the same illicit content. I recognize this is already a problem with torrents, but then my question becomes how do we not repeat the mistake? Is there a mode of resolution outside chasing down every single bearer of the node to try and remove the content?
- mcjiggerlog 9y agoLooks interesting, but I can't get it to work. I've added some files to my Hearth folder, the menu bar icon changed to the "syncing" state and then seems to have got stuck like that. The finder integration doesn't work either, so I can't copy the Hearth link.
- StavrosK 9y agoHmm, that's odd. You're running the app but aren't getting the icon in Finder?
- stelabouras 9y agoHey there, the on-going 'syncing' state means that the Hearth daemon still processes your changes. How many files have you tried to add and how big were they? If that doesn't stop after a while, consider restarting Hearth app. Regarding the Finder integration, if neither the context menu item to be shown nor the Hearth toolbar button then make sure the Hearth Finder extension is enabled (Visit the System Preferences > Extensions > Finder and enable Hearth) and the restart Finder by option+right clicking the Finder icon in your Dock and selecting 'Relaunch'. Hope that helps!
- Sephr 9y agoPeerweb¹ will be much more user-accessible since it works with normal browsers and retains your current URL structure (even for user-generated content). Additionally, our optional resource sharing permission manager app (which supports Windows, macOS, and Linux) enables fully decentralized websites with far superior performance than IPFS. ETA later this year 1. https://peerweb.net https://peerweb.net
- swsieber 9y agoPlease elucidate the timing. Your link redirects to twitter, and I can't find anything about it following links to the https://oswg.oftn.org/ https://oswg.oftn.org/ or on your own website. So it looks completely non-existent, which makes me skeptical of "soon"
- sprice 9y agoCan this be used for simple IPFS file hosting with pinned files? I'm building a small web app and want to use IPFS for image storage. In testing I was able to create the files but after a few months of not running the IPFS daemon the images are lost as they are no longer pinned. Edit: Just saw https://www.eternum.io/ https://www.eternum.io/ in other comments. Perfect!
- StavrosK 9y agoTo answer your question, yes, it can. Just put the files in there, it'll pin them.
- KirinDave 9y agoHow does Hearth achieve the "decentralized" status? I assume Hearth is offering a small-volume pinning service on the side as a charity right now? If that's true, it's essentially no more "decentralized" than a normal website. What am I missing?
- jczhang 9y agoIPFS
- KirinDave 9y agoIPFS doesn't actually distribute hosting unless someone else goes through the trouble of doing pinning. Some gateways may keep local copies but they're also free to destroy local copies. In the typical deployment where nodes refer to their own local IPFS services, it's often the case that the primary IPFS pin serves the majority of traffic. If we're going to call that "distributed" then so are normal webpages with random caching options.
- swsieber 9y agoWe call bittorrent distributed, I think IFPS counts too.
- KirinDave 9y agoBittorrent has a lot fewer single points of failure than IPFS.
- swsieber 9y agoDoes it though? I though IPFS only has gateways because browsers don't speak it... Which I guess makes you right. Let me revise my opinion to say that if there was native browser support for IPFS then we could call it distributed like bittorrent.
- 9y ago
- indigodaddy 9y agoNever having used or looked into Beaker, dat, ipfs, etc, some immediate questions about security implications come to mind: 1) Someone accesses your "site" directly on your computer via ipfs/dat whatever it is. This is static content I guess? And it's like your computer is just running a static webserver (kinda/sorta? if not, or something more dynamic please advise). So, are there security implications here? Is there an attack surface that a client/viewer of your content could leverage? 2) Sort of opposite question as in 1. You are the client/viewer of the "site," directly connected to some dude's computer via ipfs/dat or whatever. Obviously I should use standard security measures and not just go clickity on anything/everything I see, but beyond that, are there any other security implications for the client? I could download a virus I'm sure by clicking or downloading a malicious file, but beyond that, could I get hacked by the target in a more dynamic way than that? 3) How do I "navigate" in ipfs/dat-land? How do I know what URL to go to, and if this "URL" might be a safe site, or like what the hell is this URL if it's just some kind of hash? Is there a "google" of ipfs/dat sites/content? Stuff like this. :) Any feedback would be muchly appreciated!
- StavrosK 9y ago1) Yep, exactly. There shouldn't be security implications, as long as the IPFS daemon is secure. 2) Again, as long as the IPFS daemon is secure, standard security practices apply. It's just static files. 3) It's all just static files. You get linked to from other files. Same as you navigate the rest of the web. It's not hard to wrap your head around it, really, just imagine that the web was all static files. That's it.
- patmorgan23 9y agoFor number 3 literally the web 20( 30?) years ago
- StavrosK 9y agoWe definitely had dynamic websites in 1998, guestbooks, forums, etc. Mostly via CGI. But yes, it's very close to that.
- woodandsteel 9y agoIPFS seems to be really taking off lately in terms of people building useful things on top of it.