Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The browsers examples only show how to create a db #2

Open
shideneyu opened this issue Feb 20, 2024 · 3 comments
Open

The browsers examples only show how to create a db #2

shideneyu opened this issue Feb 20, 2024 · 3 comments

Comments

@shideneyu
Copy link

The browsers examples only show how to create a db

Unlike the nodes examples who show a real usecase (discovering nodes + replicating a database)

If I understand the most difficult thing on the browser environment is to have a relay node ready as to make the peer discovery possible to bootstrap the first nodes, would be nice to have it.

Thanks for this repository also, it is helpful !

@haydenyoung
Copy link
Member

Yes, your assumption is correct. You will need a relay node to aid with address discovery on the browser node, basically saying, "This is the address which other nodes can connect to".

We are in the process of providing more extensive examples but there are currently time and resource constraints. In the meantime, I recommend looking at the unit tests for examples of how to connect browser nodes. In particular, check out the relay and dialling code under test/utils.

@shideneyu
Copy link
Author

I see. This link surely helps indeed. It's even more important to have exemple since many libp2p libraries are not available in a browser context (mdns...), making the whole thing difficult to test and setup, unless having to manually scavenge for hours on the internet.

I think I'm almost up in my understanding. Sure, we will be waiting for the update of this cool repo, thanks

@haydenyoung
Copy link
Member

I also encourage you to join the helia and libp2p communities because it will a) allow you to be in direct contact with the developers who are probably best positioned to help with p2p best practices and b) bring both the ipfs and orbitdb communities closer together, hopefully resulting in some "cross-pollination" of ideas.

We have a blog post here talking about the best methods for reaching out to the IPFS developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants