Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peer-to-peer Matrix (SPEC-455) #201

Open
matrixbot opened this issue Sep 14, 2016 · 3 comments
Open

Peer-to-peer Matrix (SPEC-455) #201

matrixbot opened this issue Sep 14, 2016 · 3 comments
Labels
A-S2S Server-to-Server API (federation) feature Suggestion for a significant extension which needs considerable consideration

Comments

@matrixbot
Copy link
Member

I just realised we don't actually have a spec bug for a possible evolution of Matrix to be p2p. To quote the GSoC suggestion:

"Matrix currently follows a client-server architecture, where the servers federate together. This means that to host your own conversations in Matrix you have to own and maintain a server with a static IP and DNS SRV record etc. This isolates many people from running their own Matrix nodes. An interesting experiment would be to write a homeserver variant (probably in Node.js) which advertises itself via a DHT or similar (e.g. using js-libp2p) and uses WebRTC data channels for p2p synchronisation of message graph data. This could make it much easier to run homeservers - either as a standalone node daemon, or built into a desktop or even web client. Such a server would implement the basic features of today's Matrix C-S API, but obviously break compatibility with today's Matrix S-S API. An extension might be to write a bridge between the two federation protocols."

An extension beyond this could be to then relay the data off onion-routing and pond-style store-and-forward servers in order to protect metadata.

(Imported from https://matrix.org/jira/browse/SPEC-455)

(Reported by @ara4n)

@matrixbot
Copy link
Member Author

Jira watchers: @ara4n

@matrixbot matrixbot changed the title Peer-to-peer Matrix Peer-to-peer Matrix (SPEC-455) Oct 31, 2016
@matrixbot matrixbot added the feature Suggestion for a significant extension which needs considerable consideration label Nov 7, 2016
@turt2live turt2live added the A-S2S Server-to-Server API (federation) label Feb 7, 2019
@olanod
Copy link

olanod commented Dec 20, 2019

Was about to open an issue for this ... So yeah it would be nice, maybe it doesn't have to be a breaking change, it well says in the FAQ that in the future the federation could implement more efficient transport protocols(libp2p) keeping http as the baseline for compatibility. Maybe people building dendrite or ruma want to give it a try? libp2p for Go and Rust are up to the task!

I'd love this to happen, I want to have my home "server" to enable my decentralized chatting needs at home from my laptop or phone connecting to it but NATs crush my dreams 😭

@ara4n
Copy link
Member

ara4n commented Feb 16, 2020

we’re actively experimenting with this currently, as per https://fosdem.org/2020/schedule/event/dip_p2p_matrix/

@richvdh richvdh transferred this issue from matrix-org/matrix-spec-proposals Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-S2S Server-to-Server API (federation) feature Suggestion for a significant extension which needs considerable consideration
Projects
None yet
Development

No branches or pull requests

4 participants