All Projects → andreapaiola → P2p Cdn

andreapaiola / P2p Cdn

Licence: other
WebTorrent CDN with graceful degradation

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to P2p Cdn

Cloudflare Typescript Workers
Types and mocks for building a tested Typescript Cloudflare Worker, generates three NPM packages
Stars: ✭ 94 (-32.37%)
Mutual labels:  cdn
Jare
Free and Instant Content Delivery Network (CDN)
Stars: ✭ 116 (-16.55%)
Mutual labels:  cdn
Prcdns
准确、CDN友好
Stars: ✭ 126 (-9.35%)
Mutual labels:  cdn
Asset Cdn
Serve Laravel Assets from a Content Delivery Network (CDN)
Stars: ✭ 101 (-27.34%)
Mutual labels:  cdn
Webtorrent.io
The code that runs the WebTorrent website
Stars: ✭ 106 (-23.74%)
Mutual labels:  webtorrent
Webdrop
Easiest group P2P File & Message transfer in browser with WebRTC 🔥. Cross-platform alternative to Apple's AirDrop, Xender, ShareIT with the same speed over LAN. No installation, just a website :)
Stars: ✭ 119 (-14.39%)
Mutual labels:  webtorrent
Setup
My own front end web development set up, covering everything from operating system to analytics.
Stars: ✭ 93 (-33.09%)
Mutual labels:  cdn
Bootstrap.native
If you are looking for Bootstrap without jQuery, this is it.
Stars: ✭ 1,693 (+1117.99%)
Mutual labels:  cdn
Decentraleyes
This repository has a new home: https://git.synz.io/Synzvato/decentraleyes
Stars: ✭ 1,452 (+944.6%)
Mutual labels:  cdn
Node Bencode
bencode de/encoder for nodejs
Stars: ✭ 124 (-10.79%)
Mutual labels:  webtorrent
Flixerr
The best free movie torrent streaming app.
Stars: ✭ 103 (-25.9%)
Mutual labels:  webtorrent
Edge
A set of useful libraries for Edge Apps. Run locally, write tests, and integrate it into your deployment process. Move fast and maybe don't break things? Because, gosh darnit, you're an adult.
Stars: ✭ 105 (-24.46%)
Mutual labels:  cdn
Notebook
我的技术笔记本~
Stars: ✭ 118 (-15.11%)
Mutual labels:  cdn
Ut metadata
BitTorrent Extension for Peers to Send Metadata Files (BEP 9)
Stars: ✭ 98 (-29.5%)
Mutual labels:  webtorrent
Toastr
👀 toastr.js notifications for Laravel 5 and Lumen
Stars: ✭ 133 (-4.32%)
Mutual labels:  cdn
React Apig Lambda
Render React.js on-demand with CDN caching
Stars: ✭ 93 (-33.09%)
Mutual labels:  cdn
Cdn
Content Delivery Network on the top of MongoDb GridFs with on-the-fly image crop/resize
Stars: ✭ 117 (-15.83%)
Mutual labels:  cdn
Packages
📦 Package configurations - The #1 free and open source CDN built to make life easier for developers.
Stars: ✭ 139 (+0%)
Mutual labels:  cdn
Dplayer
🍭 Wow, such a lovely HTML5 danmaku video player
Stars: ✭ 12,101 (+8605.76%)
Mutual labels:  webtorrent
Cash
HTTP response caching for Koa. Supports Redis, in-memory store, and more!
Stars: ✭ 122 (-12.23%)
Mutual labels:  cdn

P2P-CDN — WebTorrent CDN with graceful degradation

How to use it?

See examples folder, you can try here: look that it's an heavy page with images and video (30MB)!

Why?

The LAMP hosting is the most popular choice when you want to public on the Web.

It's cheap and it's fast, but if you want to publish heavy contents like high quality photos, audio or videos with many users could become a problem. Maybe you want to reduce your hosting bill.

This is an easy and accessible (lazy load with graceful degradation) fix: you can stream all your heavy files (PDFs included, see examples!) with much less bandwidth, sharing the bandwidth of your users.

Without Javascript or WebRTC all the contents load normally: it's SEO friendly.

Silicon Valley S04E04 - Teambuilding Exercise

Richard: I read Peter's notes, all of them, and he knew that a peer-to-peer Internet was possible in the future, but he was also basing that on, what, old desktop computers. He never, ever foresaw the ubiquity or power of all of our modern-day smartphones. He was also dealing with a completely different Weissman limit. So... uh, yeah. Yeah. Okay.

Gavin: What is that? Is that number correct?

Richard: The delta in mean device efficiency? Yeah, it is. See, eventually, over time, this will render every server that Hooli operates obsolete, which would make Jack Barker shit himself.

Gavin: Holy shit!

alt text

What is WebTorrent?

BitTorrent over WebRTC (data channels) to stream in the browser.

See WebTorrentFAQ and [email protected].

Generate the torrent with PHP

Torrent.php used in examples by Adrien Gibrat or... ?

Submit your suggestion!

Torrent announce trackers

Default torrent announce/trackers:

udp://tracker.openbittorrent.com:80 udp://tracker.internetwarriors.net:1337 udp://tracker.leechers-paradise.org:6969 udp://tracker.coppersurfer.tk:6969 udp://exodus.desync.com:6969 wss://tracker.btorrent.xyz wss://tracker.openwebtorrent.com wss://tracker.fastcast.nz

You can setup a private tracker with bittorrent-tracker or what you prefer.

Apache notes

Disabled gzip compression for .mp4 files with

SetOutputFilter DEFLATE

SetEnvIfNoCase Request_URI .mp4$ no-gzip dont-vary

in the .htaccess if you see this error

TODO - wish list

Configurable torrent trackers - done

Configurable torrent endpoint - done

WebRTC Peer-to-peer in Safari 11 (iOS 11) Works

composer.json

documentation

check/enforce Drupal 8 / Symfony 2 coding standard https://www.drupal.org/docs/develop/development-tools/configuring-phpstorm https://www.drupal.org/docs/develop/standards/coding-standards https://confluence.jetbrains.com/display/PhpStorm/Drupal+Development+using+PhpStorm#DrupalDevelopmentusingPhpStorm-CoderandPHPCodeSnifferIntegration

Define and expand compatibility

Explore platforms other than LAMP, maybe Node.js? webtorrent-hybrid

Tests (PHPUnit? Karma? Jasmine?)

Integration with popular frameworks and CMS like Laravel, Symfony, Wordpress and Drupal, plugins and modules

A logo maybe? :P

License

MIT. Copyright (c) Andrea Paiola.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].