2021-08-16 21:43:40 +02:00
# Examples
A set of examples showcasing how to use rust-libp2p.
## Getting started
2022-09-24 14:14:46 +02:00
## Individual libp2p features
2021-08-16 21:43:40 +02:00
2023-04-25 18:46:12 +05:30
- [Chat ](./chat-example ) A basic chat application demonstrating libp2p and the mDNS and Gossipsub protocols.
2023-03-08 16:17:33 +08:00
- [Distributed key-value store ](./distributed-key-value-store ) A basic key value store demonstrating libp2p and the mDNS and Kademlia protocol.
2022-06-27 04:17:59 +02:00
2023-03-08 16:17:33 +08:00
- [File sharing application ](./file-sharing ) Basic file sharing application with peers either providing or locating and getting files by name.
2021-08-16 21:43:40 +02:00
2023-03-08 16:17:33 +08:00
While obviously showcasing how to build a basic file sharing application with the Kademlia and
Request-Response protocol, the actual goal of this example is **to show how to integrate
rust-libp2p into a larger application**.
2021-08-16 21:43:40 +02:00
2023-03-08 16:17:33 +08:00
- [IPFS Kademlia ](./ipfs-kad ) Demonstrates how to perform Kademlia queries on the IPFS network.
2022-09-24 14:14:46 +02:00
2023-03-08 16:17:33 +08:00
- [IPFS Private ](./ipfs-private ) Implementation using the gossipsub, ping and identify protocols to implement the ipfs private swarms feature.
2021-08-16 21:43:40 +02:00
2023-03-09 05:58:19 +11:00
- [Ping ](./ping-example ) Small `ping` clone, sending a ping to a peer, expecting a pong as a response. See [tutorial ](../src/tutorials/ping.rs ) for a step-by-step guide building the example.
2021-08-16 21:43:40 +02:00
2023-03-08 16:17:33 +08:00
- [Rendezvous ](./rendezvous ) Rendezvous Protocol. See [specs ](https://github.com/libp2p/specs/blob/master/rendezvous/README.md ).