Skip to content
/ web2web Public
forked from elendirx/web2web

P2P web powered by torrents and blockchain.

Notifications You must be signed in to change notification settings

d5000/web2web

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

web2web

Server-less & domain-less websites updatable via torrents and Slimcoin blockchain.

Originally coded for Bitcoin by elendirx (https://github.com/elendirx).

Live demo (Should work now, but block-exploring SPARQL server may have outages.)

Original live demo on the Bitcoin blockchain

Why

Websites get seized by losing control over a webserver or a domain. If we replace both the webserver and the domain with torrents and blockchain then there's nothing left to seize.

How It Works

The original repo contained two HTML files:

  • index.html is responsible for loading the webpage from torrent,
  • webpage.html is the actual webpage.

This variant does not contain webpage.html, to demonstrate any HTML page could be shared.

When you open index.html in the browser, here's what happens:

  1. A Slimcoin address (configurable in the source code) is searched for the latest outgoing transaction containing OP_RETURN script. Inside the script there is a torrent infohash of an HTML file.
  2. The chosen web page is downloaded from torrent via webtorrent and displayed.

How Is It Updated

To perform serverless updates, torrent of the updated webpage.html is created and its infohash is inserted into new Slimcoin transaction sent from the chosen address.

How Is It Domainless

Save the index.html to your PC and open it from localhost. It will still work and receive updates.

What Next

User Accounts

Users will be able to sign up by sending small amount of bitcoin to the 1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4 bitcoin address. Then they can update their content by inserting torrent infohashes into transactions sent from their addresses.

(not implemented in the Slimcoin variant)

E-commerce

It will be possible to build complex serverless anonymous e-commerce websites using cryptocurrencies for payments.

Project Status

Proof of concept, just for fun. Works in chrome, firefox and opera.

To create your own distributed webpage, take a look at web2web gateway.

About

P2P web powered by torrents and blockchain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • HTML 100.0%