Giter VIP home page Giter VIP logo

Comments (8)

sloev avatar sloev commented on May 25, 2024 3

@crunchysteve

Great, just what we need, another peer-to-peer environment that is without

i dont think its helpful or necesarry to drop your sarcasm on my github issue like that.
Addressing and peering in the browser is super hard and while i agree that the standards need to address and solve that issue for us all to be decentralized i think you completely disregard my question in this thread.

lets be on track:
peering in a decentralized manor is hard with gundb, can we use hyperswarm, easypeers etc to make it easier for the moment?

from gun.

crunchysteve avatar crunchysteve commented on May 25, 2024 2

from gun.

sloev avatar sloev commented on May 25, 2024 1

possibly solved using websocket proxy internally using trystero like here: https://github.com/Dletta/dht-proxy/blob/main/index.html#L58

from gun.

sloev avatar sloev commented on May 25, 2024 1

how to use hyperswarm with gundb for peer adresses:
https://github.com/futureproofso/tv/blob/main/buoy/index.js#L57

also mentioned here: Dletta/dht-proxy#3

from gun.

sloev avatar sloev commented on May 25, 2024 1

by using a private webtorrent tracker with whitelisted info hash together with trystero and websocket proxy from https://github.com/Dletta/dht-proxy/blob/main/index.html#L58
i think its possible to create an ideal bootstrapping mechanism

from gun.

sloev avatar sloev commented on May 25, 2024 1

I have succesfully used gundb with a client side websocket proxy to trystero doing webrrc signalling with a private webtorrent tracker using whitelisted infohashes here:

https://github.com/sloev/saysheep

Take a look in src/db/

It works super great and no data runs through the tracker, only signalling

from gun.

PhilienTaylor avatar PhilienTaylor commented on May 25, 2024

Hey, @sloev , I really like your contribution. Here's why.
First, I don't think there'll ever be standards and protocols for peers speaking to peers. Peers speaking to peers recognize the kind of nation they speak upon, which is a type of out-of-band communication. I'm referring to software ideologies, networking frameworks, or content circulations, and then some. Just look at identical twins: each set have their own communication structure and don't need somebody telling them the foundations or standards to create this peer-to-peer communication.

Second, I think your library and its use of Trystero creates a foundational structure other developers can use. On the GUN Wiki page for Awesome Gun, there's a variety of softwares that people have developed using GUN. It's not up to date. Many cool GUNdb softwares have shown up in the Gitter chat that aren't in that list. People are using GUN in a variety of ways that deserve to be collected so others can decide if they need to reinvent the wheel, or if your wheel is good enough. I like your creation, it shows a variety of features that not only has @amark asked for, but an extensibility that any coder can use.

Finally, I like your work and want you to add a Readme.md, as well as more commentary and code. I think that SaySheep would not just be used by default to connect to peers, it would also be extended and implemented so that other users could create more complex and nuanced peer-to-peer negotiations via the central WebTorrent tracker. I had to take some time to read the code to understand what it does, and I think I have a rudimentary idea. I think if you described the basic use case--'find other GUN peers with a WebTorrent tracker and without using a GUN relay'--you could help other users create true P2P applications via WebTorrent tracker swarming and without a GUN relay storing data for bootstrapping.

Thank you for your work, @sloev !! :D

from gun.

sloev avatar sloev commented on May 25, 2024

@PhilienTaylor @amark here is a documented example of how to use webtorrent for signalling in gundb using trystero:
https://github.com/sloev/gundb_torrent_signalling

from gun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.