├── README.md ├── index.html └── webpage.html /README.md: -------------------------------------------------------------------------------- 1 | # web2web 2 | Server-less & domain-less websites updatable via torrents and bitcoin blockchain. 3 | 4 | [live demo](https://elendirx.github.io/web2web) 5 | 6 | 7 | ### Why 8 | Websites get seized by losing control over a webserver or a domain. 9 | If we replace both the webserver and the domain with [torrents](https://webtorrent.io) and [blockchain](https://bitcoin.org/en) then there's nothing left to seize. 10 | 11 | 12 | ## How It Works 13 | This repo contains two HTML files: 14 | 15 | + `index.html` is responsible for loading the webpage from torrent, 16 | + `webpage.html` is the actual webpage. 17 | 18 | 19 | When you open `index.html` in the browser ([live demo](https://elendirx.github.io/web2web)), here's what happens: 20 | 21 | 22 | 1. Bitcoin address `1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4` is searched for the latest outgoing transaction containing `OP_RETURN` [script](https://en.bitcoin.it/wiki/OP_RETURN). Inside the script there is a torrent infohash of `webpage.html`. 23 | 2. `webpage.html` is downloaded from torrent via [webtorrent](https://webtorrent.io) and displayed. 24 | 25 | 26 | ### How Is It Updated 27 | To perform serverless updates, torrent of the updated `webpage.html` is created and its infohash is inserted into new bitcoin transaction sent from `1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4` address. 28 | 29 | 30 | ### How Is It Domainless 31 | Save the `index.html` to your PC and open it from `localhost`. It will still work and receive updates. 32 | 33 | 34 | ## What Next 35 | ### User Accounts 36 | Users will be able to sign up by sending small amount of bitcoin to the `1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4` bitcoin address. 37 | Then they can update their content by inserting torrent infohashes into transactions sent from their addresses. 38 | 39 | ### E-commerce 40 | It will be possible to build complex serverless anonymous e-commerce websites using bitcoin for payments. 41 | 42 | 43 | ## Project Status 44 | Proof of concept, just for fun. Works in chrome, firefox and opera. 45 | 46 | To create your own distributed webpage, take a look at [web2web gateway](https://elendirx.github.io/web2web-gateway). 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Web2Web Bootstrap 5 | 6 | 7 | 8 | 9 | 10 |

Loading ...

11 |

This may take a minute or two.

12 | 13 | 14 | 15 | 16 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /webpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Web2Web Sample Page 5 | 6 | 7 | 8 | 9 | 10 |

Resilient Webpage

11 | 12 |

13 | Neither the video below nor this very webpage is hosted on a single physical server, they live in the torrent network instead. 14 | Therefore it's not easy to take this webpage down. 15 |
16 | Find more info on the w2w project page. 17 |

18 | 19 |

20 | Are we the gods of our universe? 21 |

22 | 23 |
24 | 25 | 26 | 27 | 41 | 42 | 43 | --------------------------------------------------------------------------------