https://github.com/libp2p/js-libp2p-protocol-adventure
Learn how to develop custom protocols with libp2p
https://github.com/libp2p/js-libp2p-protocol-adventure
Last synced: about 1 year ago
JSON representation
Learn how to develop custom protocols with libp2p
- Host: GitHub
- URL: https://github.com/libp2p/js-libp2p-protocol-adventure
- Owner: libp2p
- License: other
- Created: 2024-07-04T16:44:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-19T11:05:32.000Z (over 1 year ago)
- Last Synced: 2025-04-08T18:51:49.904Z (about 1 year ago)
- Language: JavaScript
- Size: 123 KB
- Stars: 5
- Watchers: 0
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# libp2p-protocol-adventure
[](http://libp2p.io/)
[](https://discuss.libp2p.io)
[](https://codecov.io/gh/libp2p/js-libp2p-protocol-adventure)
[](https://github.com/libp2p/js-libp2p-protocol-adventure/actions/workflows/js-test-and-release.yml?query=branch%3Amain)
> A workshop for learning about custom protocol streams in libp2p

## Requirements
1. Node.js install
2. A working knowledge of [JavaScript](https://www.npmjs.com/package/javascripting), [Node.js](https://www.npmjs.com/package/learnyounode)
3. Some time and a pot of coffee
## Installation
```sh
$ npm install -g @libp2p/protocol-adventure
```
That didn't work.
```sh
$ sudo npm install -g @libp2p/protocol-adventure
```
[Okay](https://xkcd.com/149/).
## Usage
After installing, start the workshop and follow the instructions:
```sh
$ protocol-adventure
```
## Can I use TypeScript?
Yes you can, but due to complications around everyone's preferred TypeScript setup, please compile your solutions yourself and verify the compiled code:
```console
$ tsc my-solution.ts
$ protocol-adventure verify ./build/my-solution.js
```
# License
Licensed under either of
- Apache 2.0, ([LICENSE-APACHE](https://github.com/libp2p/js-libp2p-protocol-adventure/LICENSE-APACHE) / )
- MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p-protocol-adventure/LICENSE-MIT) / )
# Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.