Learn more by joining the Handshake Discord Community
publius uses webtorrent to share a folder to be viewed by federalist.
publius is a helper/server for federalist, which is a proof of concept to show that it's possible, today, to create an uncensorable and generally unblockable, distributed high performance viewable page. federalist achieves this by using several amazing technologies and weaves them together:
-
WebTorrent - Provides torrenting capabilities and the bulk of the system. federalist pages are torrents that are distributed via magnet links and DHT is used to find peers.
-
Handshake - Provides decentralized DNS
-
nodeJS - Provides the Javascript engine built on V8 by Chrome
-
Electron - Provides the GUI
-
Create an unblockable blog
-
Whistleblow (don't do this without an anonymizer!)
-
Share information
-
Share meta information about other torrents
-
Create an unblockable personal link site
The publius app share/seeds your page and gets the infohash to which an on-chain Handshake name can be resolved. Use the federalist app to browse pages in the federalist world.
Required
npm
nodejs
- Clone this repo
git clone https://github.com/publiusfederalist/publius
cd publius
- Install npm modules
npm install webtorrent supercop.js
- Create files in the web3root folder
cd web3root
vi index.html
- Run seed
cd ..
./seed &
- For mutable (updatable) sites, also run publius
./publius
- Update Handshake Address on chain with TXT Record to your magnet link (depending on mutable or immutable from seed or publius -- see 'federalistpapers' as an example).
Please make an issue on github for any bugs or feature requests. To discuss more, join #scarywater on irc.freenode.net.
(c) 2021 Publius
MIT LICENSED