Comeback @ 45

What is this?


If you’re using the Beaker Browser and looking at this post over the dat protocol at dat://d62aa262608e6ccfa81364764632265668a7046f25206d3ded8480f14e8b7c42/2017-06-09-what/ then congratulations, you’re using the P2P web!

Then again, maybe you don’t have Beaker yet (go install it!). In that case, perhaps you’re reading this post over got old https at

Notice the d62aa262608e6ccfa81364764632265668a7046f25206d3ded8480f14e8b7c42 string? That’s how you reach this content, wherever it may reside. Yikes, that’s worst than an IPv6 address! How are we supposed to remember that? Eventually, I’m going to map that address over a domain name, so you could for instance access it at dat:// (if I owned, which I don’t).

So great, P2P hosting! That means the more visitor you have simultaneously, the more bandwith you have. Think of it like bittorrent for websites, except with dat, you can update the content whereas a torrent holds static content.

What else you ask? What about React on the front-end? Sure! From the hundreds of static site generators out there, a few are built with React in mind. For the visitors, that means a pleasant viewing experience, less latency and all that good stuff.

In this case, I decided to give Gatsby a try and this is the result. Note that I’m using an alpha version, so a few things may break. Feel free to report an issue over at GitHub.

Another cool feature of Gatsby is its integration with Service Workers, which make it possible to use websites offline. Unfortunately, a current Chromium bug (used in Electron, which is used by Beaker) prevents this neat feature from working over custom protocols (like dat://).

Want to know more? You’ll find the source of fortyfive on GitHub.

Robin MilletteWritten by Robin Millette who lives and works in Montréal building useful things. You should follow him on Twitter