libp2p / go-libp2p-kad-dht

A Kademlia DHT implementation on go-libp2p
https://github.com/libp2p/specs/tree/master/kad-dht
MIT License
529 stars 229 forks source link

Examples #3

Open shazow opened 8 years ago

shazow commented 8 years ago

Stand-alone usage examples would be lovely, as godoc snippets or buildable code. :)

iain17 commented 7 years ago

I'm also missing this. No idea on how to use this project. Does anyone have links to existing projects using this?

Stebalien commented 7 years ago

go-ipfs uses this. However, stand-alone examples would still be nice.

flockonus commented 6 years ago

+1 for an a simple usage example. In fact it's something I'm happy to commit if it makes sense for my experiment:

My goal is to use go-libp2p-kad-dht as a base implementation of S Kademlia for file storage & retrieval, does this package makes sense for that?

vincentchu commented 6 years ago

I have a very simple example repo that sets up a basic Kademlia DHT using this library. If there's interest, I could clean it up a bit and submit as a PR.

Stebalien commented 6 years ago

Please do!

bigs commented 6 years ago

yeah @vincentchu that would be wonderful! similarly, the libp2p chat example leverages it, but it'd be nice to have a more focused one 😄 .

stefanhans commented 5 years ago

Hi :wave:,

I've started with an interactive command tool approach to get deeper into it and to contribute then.

Have a look: https://github.com/stefanhans/go-libp2p-kad-dht/tree/master/examples/cmdtool

I'm new so please give me some feedback 🥺

Cheers, Stefan

anacrolix commented 5 years ago

Thanks @stefanhans, that's good to see. I'm working on something similar, please report any findings or stumbling blocks you have as this kind of tool should be possible.

stefanhans commented 5 years ago

Hi @anacrolix, thx for the feedback.

The framework with the commands works well, but the network is not always behaving like expected. 🤔 I guess there is not an explaining document or tutorial?

Yesterday I had a little medical operation. I do feel still a bit k.o. 🤒 Going back to bed.

anacrolix commented 5 years ago

@stefanhans If it interests you, have a look at https://github.com/libp2p/go-libp2p-kad-dht/tree/dht-cmd, in ./cmd/dht-tool (inconsistent naming ftw).

stefanhans commented 5 years ago

@anacrolix great thx

At first sight, I found interesting stuff 👍 I take a closer look at it soon

umgefahren commented 3 years ago

Any updates on this? I think an example like in libp2p-rust would be good.

stefanhans commented 2 years ago

Sorry, due to private events (Lebenskrise), I am no longer involved at all since summer 2019. I would love to change that. Maybe next year.