# Getting started with libp2p

**URL:** <https://erlangforums.com/t/getting-started-with-libp2p/2746>\
**Category:** Questions / Help\
**Tags:** libp2p\
**Created:** [July 11, 2023, 8:17pm UTC](https://erlangforums.com/t/getting-started-with-libp2p/2746 "2023-07-11T20:17:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bahner](https://erlangforums.com/user_avatar/erlangforums.com/bahner/32/2017_2.png) [@bahner](https://erlangforums.com/u/bahner)\
**Post date:** [July 11, 2023, 8:17pm UTC](https://erlangforums.com/t/getting-started-with-libp2p/2746/1 "2023-07-11T20:17:22Z")

</div>

Hepp!

I am wanting to use libp2p pubsub for a project in Elixir. There is an “official” implementation for erlang by helium: [GitHub - helium/erlang-libp2p: An Erlang implementation of libp2p swarms](https://github.com/helium/erlang-libp2p)

However there is absoulutely no Hello, world-template; no examples - nothing. I can’t find any documentation, other than the inline-generated docs. This documentation is a bit far from the official go, rust, javascript, so I can’t do a “translation”.

The project seems dead, when you look at the github repo, but the helium miner seems alive.

Has anyone got any info or example code to show, that uses libp2p? Is you have written some pubsub that would be the best.

At this time anything, literally anything related is appreciated.

---

<div class="post-metadata">

**Author:** ![mpope](https://erlangforums.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@mpope](https://erlangforums.com/u/mpope)\
**Post date:** [July 11, 2023, 10:07pm UTC](https://erlangforums.com/t/getting-started-with-libp2p/2746/2 "2023-07-11T22:07:25Z")

</div>

It seems to have a very rich test suite. [Maybe this example will help](https://github.com/helium/erlang-libp2p/blob/master/test/relay_SUITE.erl#L59).

---

<div class="post-metadata">

**Author:** ![bahner](https://erlangforums.com/user_avatar/erlangforums.com/bahner/32/2017_2.png) [@bahner](https://erlangforums.com/u/bahner)\
**Post date:** [July 11, 2023, 10:47pm UTC](https://erlangforums.com/t/getting-started-with-libp2p/2746/3 "2023-07-11T22:47:45Z")

</div>

Indeed. That might help a little. Thanks.

---

<div class="post-metadata">

**Author:** ![bahner](https://erlangforums.com/user_avatar/erlangforums.com/bahner/32/2017_2.png) [@bahner](https://erlangforums.com/u/bahner)\
**Post date:** [July 16, 2023, 12:28am UTC](https://erlangforums.com/t/getting-started-with-libp2p/2746/4 "2023-07-16T00:28:16Z")

</div>

FYI and future readers:

For my need it was easier to learn go this time around. If anyone else needs a simple libp2p pubsub daemon, as a backend for other libp2p / ipfs needs then [GitHub - bahner/myspace-pubsub-daemon: A pubsub backend daemon for myspace](https://github.com/bahner/myspace-pubsub-daemon)

It not erlang, but it should supplement libp2p prototyping OK. It’s a backend servive like vault or kubo.

---

<div class="post-metadata">

**Author:** ![xand](https://erlangforums.com/user_avatar/erlangforums.com/xand/32/1913_2.png) [@xand](https://erlangforums.com/u/xand)\
**Post date:** [July 19, 2023, 3:20pm UTC](https://erlangforums.com/t/getting-started-with-libp2p/2746/5 "2023-07-19T15:20:17Z")

</div>

The project is indeed effectively dead, as are miner and blockchain-core which depend on it. Helium’s architecture has taken a new direction and there’s no longer a need for any of these. Historically, the project’s goal was not libp2p per se and the erlang-libp2p library was just a component whose source was made available - someone may or may not find it useful.

Other than tests there’re really no quick examples which were meant to be useful as such. Reading the diagrams in /doc, the test suite as well as miner and core repos may be helpful, but personally I wouldn’t bother unless I intended to fork and maintain the repo.

You probably made the right call 🙂

---

<div class="post-metadata">

**Author:** ![bahner](https://erlangforums.com/user_avatar/erlangforums.com/bahner/32/2017_2.png) [@bahner](https://erlangforums.com/u/bahner)\
**Post date:** [July 20, 2023, 2:10am UTC](https://erlangforums.com/t/getting-started-with-libp2p/2746/6 "2023-07-20T02:10:53Z")

</div>

Ah. Good to know. Thanls for the update.
