Dat
(Redirected from Hypercore)
This article is a stub. You can help the IndieWeb wiki by expanding it.
Dat was a protocol for transferring files peer-to-peer, renamed to Hypercore protocol in 2020. [1]
IndieWeb Examples
- Kevin Marks has been experimenting with Fritter in early 2018
- Jim Pick did some experimentation at IndieWeb Summit 2017 which can be found in the Demos section.
- Peter Molnar runs a copy of his site over dat://petermolnar.net as an experiment since 2019-06-01
- Kicks Condor has their site available on dat://kickscondor.com/ for an unspecified amount of time
How to run dat dat as a daemon on linux
Important: as Martijn van der Ven pointed out, the commands below import everything, including hidden files, such as .htpasswd, .htaccess, will show source code of PHP files, and so on. It is very easy to leak secrets this way.
This only works with static websites that use relative URLs to navigate.
# get the latest binary release of dat cli cd /tmp wget https://github.com/datproject/dat/releases/download/v13.13.1/dat-13.13.1-linux-x64.zip unzip dat-13.13.1-linux-x64.zip cd dat-13.13.1-linux-x64 # make the dat binary executable and copy it to a folder in $PATH chmod 0755 dat sudo cp dat ~/.local/bin # go to your website's root directory cd /var/www # create the dat information - this will be interactive dat create # create a file to tie your domain to your dat hash mkdir .well-known grep dat dat.json | sed -r 's/.*: "(.*)"/\1/' > .well-known/dat echo "TTL=3600" > .well-known/dat # open iptables for dat sudo iptables -A INPUT -p tcp -m tcp --dport 3282 -m state --state NEW -j ACCEPT # switch to a screen session, because dat doesn't seem to have a real daemon # mode yet screen -S dat # start sharing - this will import every file it finds in the directory # it's running from and will keep watching for changes dat share --port 3282 --watch --import
See Also
- Beaker Browser
- Hypercore
- 2017-07-20 : So you want to decentralize your website (archived)
- https://github.com/beakerbrowser/beaker/wiki/Authenticated-Dat-URLs-and-HTTPS-to-Dat-Discovery#proposal
- Announcement for support in Brave Browser
- Rotonde, Fritter are twitter-clones (actually compatible to one another and early examples apps specifically made for dat + Beaker
- datbase.org will proxy dat-hosted files to https
- https://datprotocol.github.io/how-dat-works/
- slides for talking about DAT http://slides.kevinmarks.com/dat.html
- IWC Austin 2019 Session on P2P Web
- https://medium.com/blue-link-labs/so-you-want-your-decentralized-browser-to-work-correctly-c06c4038ab12
- https://unwalled.garden/docs/how-does-it-work
- On Dat://
- How do dat:// sites interact with servers?
- The Agregore browser supports linking, embedding, and sharing content via hyper://, the successor to Dat.
- A method for implementing a sort of ACL for content https://github.com/substack/hypercore-authenticate-session-extension