r/coolgithubprojects • • 9d ago

[P2P home-connection sharing, no VPS or relay] - Strait

https://github.com/daniad6/strait
2 Upvotes

3 comments sorted by

1

u/developer6 9d ago

I built Strait because I wanted to use a trusted home internet connection from elsewhere without renting a VPS or opening ports on my router. One machine at home shares the connection and gives you an invite code; the other side pastes it and connects. The two punch a direct peer-to-peer tunnel through both NATs. There is no relay. If a direct path isn't possible, it says so.

They find each other through public services (Nostr relays, the BitTorrent DHT, ntfy) that only see an encrypted record. After that, traffic goes device to device, end-to-end encrypted (ChaCha20-Poly1305, with a Noise handshake I modeled in ProVerif). Hosts can issue personal invites and revoke one person at a time.

It's a Rust desktop app, Apache-2.0, v0.9.0, with builds for Linux, macOS and Windows. Still early, so I'd love people to try it behind their own NAT and tell me what breaks.

1

u/DueWindow9033 8d ago

Use yggdrasil-network

1

u/developer6 8d ago

Yggdrasil is cool, but it solves a different problem. It's a whole mesh network you install and configure on each machine, and traffic can be routed through other peers. Strait is just two people: one shares their home connection, the other uses it, directly, with nobody else in the path. And it's built for non-technical people: a desktop app where you paste an invite and click Connect, with no setup, peers or config to manage. Different tool for a different job.