WebRTC for YaCy: p2p in browser plug-in

Forum for developers

WebRTC for YaCy: p2p in browser plug-in

Beitragvon Orbiter » Mi Sep 02, 2015 12:06 pm

Some time ago I had a discussion with mozillians about the development of a P2P protocol for a distributed search engine based on WebRTC. Just recently I discovered the project SchoolNinja which is an attempt to implement p2p search with WebRTC. I also got into contact with @juretriglav: https://twitter.com/juretriglav/status/ ... 4413039616

WebRTC would bring p2p into the browser while users are still forced to 'install something' which was a big problem for the growth of YaCy. It looks like that WebRTC works only as browser plug-in, not as embedded JavaScript, as far as I understand. However, it would be good to get the foot on the ground of that technology to explore it's capabilities.

What do you think? Would you like to have a YaCy Plug-in with p2p activity in your browser? What would you expect what it does?
Orbiter
 
Beiträge: 5787
Registriert: Di Jun 26, 2007 10:58 pm
Wohnort: Frankfurt am Main

Re: WebRTC for YaCy: p2p in browser plug-in

Beitragvon luc » Do Okt 22, 2015 11:37 pm

To my mind, such a plug-in should have p2p search capabilities, relying on YaCy peers network, but should stay as minimalist and efficient as possible as it would 'only' be a browser plug-in. It should be able to store only data in volatile memory if user want so, relying only on DHT index at browser startup.
luc
 
Beiträge: 283
Registriert: Mi Aug 26, 2015 1:04 am

Re: WebRTC for YaCy: p2p in browser plug-in

Beitragvon luc » Do Dez 17, 2015 2:11 am

Apparently the current trend now tends to be developing full javascript apps. We are no more speaking of simple browser plug-ins.
By the way, it could be interesting to see how much of YaCy core components could be directly run with projects such as http://www.teavm.org/ or http://wiki.apidesign.org/wiki/Bck2Brwsr... Yes I am saying to try running some YaCy bytecode directly in a browser :?
luc
 
Beiträge: 283
Registriert: Mi Aug 26, 2015 1:04 am

Re: WebRTC for YaCy: p2p in browser plug-in

Beitragvon luc » Sa Apr 09, 2016 12:54 pm

Indeed currently WebRTC is becoming a standard browser interface (see https://www.w3.org/TR/2016/WD-webrtc-20160128/) supported natively by latest major browsers. It opens very interesting possibilities.
Although allowing peer connections between open browsers, it still relies on central servers (TURN or STUN) to establish and signal communications. You easily see the problem for building a truly decentralized network from scratch...

But it may not be so problematic if we can introduce a feature in peers running YaCy in Java version to act as TURN or STUN servers for new WebRTC peers.To do so there may be ideas to pick up from https://github.com/feross/webtorrent project.
luc
 
Beiträge: 283
Registriert: Mi Aug 26, 2015 1:04 am


Zurück zu YaCy Coding & Architecture

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast

cron