Skip to content

Commit 3bc9769

Browse files
achingbrain2color
andauthored
docs: add roadmap for 2024/early 25 (#2754)
As discussed on the call there's a slight preference to having a roadmap file in the root of the repo for ease of reference and linking to. --------- Co-authored-by: Daniel Norman <[email protected]>
1 parent 3244ed0 commit 3bc9769

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ If you are looking for the documentation of the latest release, you can view the
5050
## Table of contents <!-- omit in toc -->
5151

5252
- [Background](#background)
53+
- [Roadmap](#roadmap)
5354
- [Install](#install)
5455
- [Usage](#usage)
5556
- [Configuration](#configuration)
@@ -83,6 +84,12 @@ We are in the process of writing better documentation, blog posts, tutorials and
8384

8485
To sum up, libp2p is a "network stack" -- a protocol suite -- that cleanly separates concerns, and enables sophisticated applications to only use the protocols they absolutely need, without giving up interoperability and upgradeability. libp2p grew out of IPFS, but it is built so that lots of people can use it, for lots of different projects.
8586

87+
## Roadmap
88+
89+
The js-libp2p roadmap can be found here: <https://github.com/libp2p/js-libp2p/blob/main/ROADMAP.md>
90+
91+
It represents current projects the js-libp2p maintainers are focused on and provides an estimation of completion targets.
92+
8693
## Install
8794

8895
```sh

ROADMAP.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# 🛣️ Roadmap 2024-H2/2025-H1
2+
3+
This roadmap document contains the themes upon which maintainer effort will be concentrated on in 2024/25.
4+
5+
## 👔 Productionization
6+
7+
js-libp2p is deployed in many production environments so to take adoption to the next level we want to really double down on helping these users get the best out of their deployments.
8+
9+
### js-libp2p amino DHT bootstrapper
10+
11+
Deploying a public bootstrapper is a great test of the capacity of js-libp2p since it will need to maintain several thousand simultaneous connections and service many DHT RPC requests. Comprehensive metrics and logging will also give us insight into real world usage patterns that can further direct performance optimisations.
12+
13+
- Deploy a bootstrap server that acts as an entry point to the network for DHT clients
14+
- Ship it in the default config of majority libp2p/IPFS implementations
15+
- Publish a dashboard showing usage statistics
16+
17+
### Metrics
18+
19+
Having a view on the internal workings of a js-libp2p node is essential to debugging implementation problems as well as user misconfigurations.
20+
21+
- Add the missing metrics types, e.g. Histograms, Summaries, etc
22+
- Implement metrics consistently across transports
23+
24+
### DevTools
25+
26+
The [js-libp2p-devtools](https://github.com/libp2p/js-libp2p-devtools) plugin is an invaluable resource for debugging a running libp2p node running [@libp2p/devtools-metrics](https://npmjs.com/package/@libp2p/devtools-metrics).
27+
28+
- Finish UX improvements
29+
- Publish to browser extension stores
30+
- Add DHT capability detection
31+
- Publish as standalone electron app to connect to Node.js/electron/react-native processes using `@libp2p/devtools-metrics`
32+
33+
### Tuning and reduction of resource usage
34+
35+
JavaScript is a poor choice of language in which to perform computationally expensive operations. Conveniently the ones we need to do (hashing, signing, verification) are largely implemented in native modules or as part of web browser APIs.
36+
37+
- Profile and benchmark CPU usage
38+
- Use this to drive further optimizations in resource usage
39+
40+
## 📚 Documentation & developer onboarding
41+
42+
- Documentation refresh - ensure all guides are up to date and follow current best practices
43+
- Revamp getting started guides
44+
- Focus on use cases
45+
- Browser vs Node.js
46+
- Public server vs behind NAT
47+
- Create additional self-directed learning in the style of [@libp2p/protocol-adventure](https://www.npmjs.com/package/@libp2p/protocol-adventure)
48+
- @libp2p/services-adventure
49+
- @libp2p/dht-adventure
50+
- @libp2p/pubsub-adventure
51+
- @libp2p/peer-discovery-adventure
52+
- Link the adventure modules into a syllabus
53+
- Publish browser based versions using protoschool or https://tutorialkit.dev/
54+
55+
## 🌐 Browser connectivity
56+
57+
Browsers remain the single most challenging environment in which to deploy truly decentralized applications and most of the issues are related to the poor connectivity options presented to browsers by the rest of the network.
58+
59+
### Listen on Secure WebSockets with libp2p.direct
60+
61+
IP Shipyard have recently acquired the ability to create wildcard ACME certificates under the `libp2p.direct` domain. This feature is being enabled in https://github.com/ipfs/kubo/pull/10521
62+
63+
JS should implement a similar extension to the `@libp2p/websocket` transport to allow config-free SSL encryption.
64+
65+
### WebSocket single encryption
66+
67+
When a browser connects to a WebSocket listener they can only connect over TLS. We then apply noise encryption as well which means everything is encrypted twice which is inefficient.
68+
69+
We should be able to use the noise handshake mechanism to ensure the remote has the private key corresponding to it's public key, then use the browser's TLS implementation to prevent eavesdropping.
70+
71+
The specification is [in progress](https://github.com/libp2p/specs/pull/625) the milestone is to ship a POC.
72+
73+
## Node.js connectivity
74+
75+
### QUIC in Node.js
76+
77+
There's a decent chance the Node.js QUIC implementation is [not going to be exposed to userland](https://github.com/nodejs/node/pull/52628#issuecomment-2143475066), but we need this to have compatibility with other libp2p implementations.
78+
79+
https://github.com/ChainSafe/js-libp2p-quic is in-progress to add QUIC support via a native module that uses the Rust implementation.
80+
81+
### WebTransport in Node.js
82+
83+
A [long-lived PR](https://github.com/libp2p/js-libp2p/pull/2422) is open that adds WebTransport support via the [@fails-components/webtransport](https://www.npmjs.com/package/@fails-components/webtransport) module, however it's blocked on [spec incompatibilities](https://github.com/fails-components/webtransport/issues/213).
84+
85+
We can either resolve these incompatibilities, implement WebTransport on top of https://github.com/ChainSafe/js-libp2p-quic, or perhaps Node.js will finally ship [HTTP3 support](https://github.com/nodejs/node/issues/38478) and WebTransport, whichever is most expedient.
86+
87+
### WebRTC Direct in Node.js
88+
89+
Another [long-lived PR](https://github.com/libp2p/js-libp2p/pull/2583) adds support for a [WebRTC Direct](https://github.com/libp2p/specs/blob/master/webrtc/webrtc-direct.md) listener to Node.js.
90+
91+
It's currently blocked on a number of PRs that require the input of upstream maintainers (see linked issues in [#2583](https://github.com/libp2p/js-libp2p/pull/2583)). We will continue to encourage the maintainers of these libraries to give feedback and ultimately merge those PRs but we may need to publish forks in the interim.

packages/libp2p/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ We are in the process of writing better documentation, blog posts, tutorials and
7474

7575
To sum up, libp2p is a "network stack" -- a protocol suite -- that cleanly separates concerns, and enables sophisticated applications to only use the protocols they absolutely need, without giving up interoperability and upgradeability. libp2p grew out of IPFS, but it is built so that lots of people can use it, for lots of different projects.
7676

77+
# Roadmap
78+
79+
The js-libp2p roadmap can be found here: <https://github.com/libp2p/js-libp2p/blob/main/ROADMAP.md>
80+
81+
It represents current projects the js-libp2p maintainers are focused on and provides an estimation of completion targets.
82+
7783
# Usage
7884

7985
### Configuration

0 commit comments

Comments
 (0)