Skip to content

ZarbieK-9/pocketbridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 

Repository files navigation

πŸ” Pocketbridge

End-to-end encrypted, cross-device sync for files, messages, and clipboard. The server is a zero-knowledge relay β€” it never sees your plaintext.

Pocketbridge is split into three repositories that move together:

Repo Role Stack
πŸ–₯️ pocketbridge-backend Zero-knowledge relay + device pairing Node, Express, WebSocket, Redis, PostgreSQL
🌐 pocketbridge-frontend Web client (offline-capable PWA) Next.js, TypeScript
πŸ“± pocketbridge-mobile Mobile app Expo / React Native, TypeScript

How it works

   πŸ“± mobile  ──┐                                   β”Œβ”€β”€  🌐 web
   (RN/Expo)    β”‚  pair via QR, then exchange only  β”‚     (Next.js PWA)
                β”‚  ENCRYPTED blobs                   β”‚
                β–Ό                                    β–Ό
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚   pocketbridge-backend (zero-knowledge relay)  β”‚
          β”‚   Node + Express + WebSocket + Redis pub/sub    β”‚
          β”‚   β–Ί pairs devices, routes ciphertext            β”‚
          β”‚   β–Ί NEVER holds keys, NEVER sees plaintext      β”‚
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Security model

  • MTProto 2.0-style protocol, implemented on NaCl / tweetnacl primitives.
  • Ed25519 signatures (device identity), ECDH key agreement, HKDF key derivation.
  • All encryption happens on-device; the relay only ever forwards ciphertext.
  • Yjs CRDTs keep multi-device state conflict-free.

Why it's three repos

Each client (web, mobile) and the relay deploy independently and have different runtimes, so they live in separate repos β€” grouped by the pocketbridge topic.


Built by Bishwas Khanal.

About

πŸ” Pocketbridge β€” E2E-encrypted cross-device sync. Hub for the backend + web + mobile repos.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors