Giter Site home page Giter Site logo

web2web's Introduction

web2web

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

live demo

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

This repo contains two HTML files:

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

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

  1. Bitcoin address 1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4 is searched for the latest outgoing transaction containing OP_RETURN script. Inside the script there is a torrent infohash of webpage.html.
  2. webpage.html 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 bitcoin transaction sent from 1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4 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.

E-commerce

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

Project Status

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

web2web's People

Contributors

elendirx avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.