go-libp2p-kad-dht icon indicating copy to clipboard operation
go-libp2p-kad-dht copied to clipboard

Examples

Open shazow opened this issue 9 years ago • 13 comments

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

shazow avatar Aug 22 '16 16:08 shazow

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

iain17 avatar Feb 11 '17 15:02 iain17

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

Stebalien avatar Aug 31 '17 01:08 Stebalien

+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?

flockonus avatar Jun 29 '18 20:06 flockonus

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.

vincentchu avatar Jul 25 '18 00:07 vincentchu

Please do!

Stebalien avatar Jul 25 '18 01:07 Stebalien

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

bigs avatar Jul 25 '18 21:07 bigs

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

stefanhans avatar Jan 21 '19 11:01 stefanhans

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.

anacrolix avatar Feb 08 '19 00:02 anacrolix

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.

stefanhans avatar Feb 08 '19 09:02 stefanhans

@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).

anacrolix avatar Feb 13 '19 00:02 anacrolix

@anacrolix great thx

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

stefanhans avatar Feb 13 '19 09:02 stefanhans

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

umgefahren avatar Nov 16 '21 10:11 umgefahren

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.

stefanhans avatar Dec 02 '21 07:12 stefanhans