I’m still researching bleeding edge tech for the 2nd part of the book, and have completed (finally) a demo project that uses:
The app is temporarily at https://oyp.zedshaw.art/ and you can go there if you want to see how it works. Open your browser console.log to see it spew debug stuff at you.
The idea is that–if you do art or photography–you usually want to host massive image files. Mine can be as large as 23MB with my 50MP camera, and some cameras can push a 100MB jpeg. Hosting those is normally very expensive, but with WebTorrent it’s a lot cheaper since everyone shares the load.
When you connec to this, webtorrent will download the images from my server but also from other people’s browsers who have already downloaded it, thus reducing the costs.
This is a first version hack and the code is gnarly, but so far it works. I’ll be updating with report on what it’s like to use Svelte shortly.