10 ms·
CacheP2P – Distributed caching platform
- willmacdonald 10y agoI'm getting this error on your API page: cachep2p.min.js:9 Uncaught Error: Cannot add duplicate torrent 3cd9bdf4916f422aa77cdd1b952c14202e0eafca I'm also getting these on FF: ICE failed, see about:webrtc for more details(unknown) TypeError: asm.js type error: expecting argument type declaration for 'e' of the form 'arg = arg|0' or 'arg = +arg' or 'arg = fround(arg)'
- markbnj 10y agoSame thing in chrome, and the performance of the page is pretty horrible. It's frozen the whole browser a couple of times forcing me to close the window.
- ravenstine 10y agoInterestingly, I have no issuse on mobile Chrome.
- yalooze 10y agoSame here. Chrome Version 53.0.2785.143 The whole browser becomes almost unresponsive.
- jordz 10y agoSame here.
- akerro 10y agoI'm not getting any of these errors and page is very fast.
- Socketubs 10y agoNo problem for me with Chromium on Linux. Page is fast.
- thekonqueror 10y agoMy Chrome 53.0.2785.143 froze within 5 seconds of opening cachep2p.com.
- randomsofr 10y agoI'm getting the first error on Chrome, the page loads, but i can see that error on the console.
- guerrerocarlos 10y agoThat kind of errors should better go in github/issues than in ycombinator, so we fix them asap: https://github.com/guerrerocarlos/cachep2p/issues https://github.com/guerrerocarlos/cachep2p/issues
- niklasrde 10y agoIsn't that what Akamai used to do and then they realised people aren't happy that their bandwidth is used for these reasons without their consent?
- akerro 10y agoCan I use qbittorrent/deluge to seed webpages?
- thatcat 10y agoLibtorrent doesn't support webrtc yet, vuze and web torrent desktop client support it.
- deleted 10y ago[deleted]
- ravenstine 10y agoI wonder how this could be set up to work on error pages; could this keep pages working even if the server returned a a 503? Such a concept would be pretty useful for a media company, like the one I work for, which mostly serves static content.
- thatcat 10y agoIt seems it already does. "Now any browser can act as a server to other browsers, so content can now be delivered even if the main server is completely down, just by getting it from the users who alrelady received it. "
- guerrerocarlos 10y agoCertainly, could be set up in error pages, so that the content get's retrieved from users who already received it instead. Would recommend embedding everything (all the HTML and JS) in the error page, so that the it works 'standalone'.
- deleted 10y ago[deleted]
- ComodoHacker 10y agoSounds cool, but what are the use-cases? What problems is this tech trying to solve?
- c3833174 10y agoSaving some bandwidth costs?
- ComodoHacker 10y agoYou mean transfer this cost to site visitors?
- WhoBeI 10y agoI have the same issue - can't think of a single one. Most of the ones I could think of are solved better with CDN or other cloud services. Well, should all DNS servers suddenly die it might be useful but besides that.. But, yeah, still kind of cool.
- deckar01 10y agoCDNs and cloud services cost money to setup and maintain. This scales asset availability with popularity, automatically, for free, with minimal setup.
- guerrerocarlos 10y agoYou resumed it brilliantly, I took the liberty to cite you in the landing page, hope you don't mind.
- deckar01 10y agoHappy to help. Thanks for working on this awesome project!
- Senji 10y agoSlashdot/Reddit hug of death? Infinitely scalable content delivery on the backs of your site visitors' upload bandwidth.
- milankragujevic 10y agoSeems nice, like a hybrid between ZeroNet and WebTorrent, which it probably is given that the author is the wonderful Feross Aboukhadijeh, the creator of WebTorrent.
- Xeoncross 10y agoSo you have to load the page from the server in order to load the javascript so you can load the same page from the client pool? Is this supposed to be more of a bootstrap process? Load the first page from the server and then you can use the URL hash to request additional pages from the connected clients?
- rcthompson 10y agoI think you load the (hopefully small) HTML page from the server, but then you load images, videos, and other large assets from peers.
- Paul-ish 10y agoCouldn't someone create a large number of sybils in this network to see what pages people are loading? Browser sessions could be inferred from this. Also, how much latency does this add due to P2P connection set up time?
- striking 10y agoHot-cache reloading the page, the P2P set up time is less than three seconds. And yes, you could see what resources which people are downloading. It isn't a replacement for a server, just a great way to avoid the Slashdot effect. Definitely not privacy-focused, but I could see some smaller websites using it.
- randall 10y agoThis has made me rethink a lot of things. I think video on the web should probably use the webtorrent approach primarily. Thanks for posting... gonna go work on some interesting approaches now.
- sprky 10y agoI dont think bittorrent is particularly suited for small file caching and thats how a lot of video is served these days (think about how adaptive rate streaming works, a video is split into thousands of small files containing a few seconds of video at certain bitrates).
- johnhenry 10y agoI believe that bittorrent works by splitting a single file into thousands of small files, so this may, in fact, be ideal?
- rakoo 10y agoThe number of files is not an issue, the only potential issue is the total size of the content (not what you'd think: the bigger a torrent, the better). It is perfectly doable to create a single torrent for the full video with all known bitrates, and have the client progressively load data as needed, switching from bitrate to bitrate on-the-fly
- jdc0589 10y agoThis project, and lots of others, would really benefit from a standardized crypto Javascript API in browsers so there is an opportunity for using better hashing algorithms than are realistic to implement in Javascript. Im not saying its realistic to engineer sha1 collisions to serve up malicious content on a platform like this, but its getting closer every year.
- mburns 10y agohttps://www.w3.org/TR/WebCryptoAPI/ https://www.w3.org/TR/WebCryptoAPI/ ?
- vitus 10y agoIn particular, SubtleCrypto [0] seems to be what you're looking for. It's in the latest versions of FF/Chrome/Edge/Safari (and according to MDN, shipped with Edge last year and has been supported by Chrome/FF/Safari for roughly 2 years* [1]). I can't find any support for Opera / IE, unfortunately, although Opera's been based on Chromium since 2013, so... presumably it's been supported for years, as well? * Cross-referencing against browser release dates, that is. [0] https://www.w3.org/TR/WebCryptoAPI/#dfn-SubtleCrypto https://www.w3.org/TR/WebCryptoAPI/#dfn-SubtleCrypto [1] https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...
- dcposch 10y agoFor fun a few months ago, I implemented BLAKE in JS. It's a state of the art hash function developed by djb. It was cool seeing how hashing works under the hood. I used UInt32Array for speed. It is still nowhere near native speed, but fast enough for many applications. https://www.npmjs.com/package/blakejs https://www.npmjs.com/package/blakejs
- Sephr 10y agoThe platform my company is working on is similar to cacheP2P. We wrote our own custom PKI implementation on top of the WebCrypto API that doesn't rely on SHA1 for hashing. I go into more detail about our platform in this comment: https://news.ycombinator.com/item?id=12758084 https://news.ycombinator.com/item?id=12758084
- jorjordandan 10y agoWould it be possible to make a completely serverless webpage? Or a website that has a server to bootstrap, but all assets are 100% distributed?
- soundofvictory 10y agomakes me think of https://ipfs.io/ https://ipfs.io/
- deleted 10y ago[deleted]
- XCSme 10y agoSame as previous sites that demo web P2P: the site crashes my browser. I tried opening the API page, it rendered fine but then the entire browser froze. P2P pages are very far away from being production-ready.
- serge2k 10y ago> The way internet works currently is not scalable News to me.
- hueving 10y agoThe way content delivery via HTTP works isn't very scalable. The fact that companies like akamai and cloudflare exist are a testament to this.
- johnhenry 10y agoGreat work. Looking through the documentation, I realized that this uses a modified version of webtorrent in order to associate torrents with urls rather than a page's content. I wonder would be necessary if BEP46 were implemented (https://github.com/feross/webtorrent/issues/886 https://github.com/feross/webtorrent/issues/886) in web torrent?
- theon144 10y agoI like it, but doesn't this inherently expose all currently connected users' IP addresses to all other users? In other words, if I connect to the webpage and just monitor the swarm, can I log all IP addresses that accessed that page?
- thatcat 10y agoTheoretically though it would depend on the size of the swarm and how many peers you had. Tor doesn't support webrtc either.
- misterbowfinger 10y agolol all i read is "distributed xss attacks"
- uzyn 10y agoIs this like IPFS, without the need of off-browser IPFS daemon?
- deleted 10y ago[deleted]
- mkephart33 10y agoI just wrote a simple Wordpress plugin which utilizes http://cachep2p.com's http://cachep2p.com's new CacheP2P technology --> http://keplabs.me/cachep2p.zip http://keplabs.me/cachep2p.zip | The simple for now (I will update this plugin to automate the rest of the functionality so no manual work is required) plugin will insert the necessary files in the footer of your Wordpress website... Cheers!
- mkephart33 10y agoI just wrote a simple Wordpress plugin which utilizes http://cachep2p.com's http://cachep2p.com's new CacheP2P technology --> http://keplabs.me/cachep2p.zip http://keplabs.me/cachep2p.zip | The simple for now (I will update this plugin to automate the rest of the functionality so no manual work is required) plugin will insert the necessary files in the footer of your Wordpress website... Cheers! Also, please check out the non-profit I run IT for which is called The Senase Project --> https://www.thesenaseproject.org/ https://www.thesenaseproject.org/ My absolutely beautiful, amazing and incredible wife (of one year in 3 days | 10/23/15), built a school and medical clinic in a small village in Ghana Africa called Akatim. If you find this story/plugin helpful or interesting please say hi to my wonderful wife on Twitter sfie_1, also - please don't vote for the Donald, that's all...