SimpleTransfer

v1.0.0 · BSD-3 · macOS, Windows & Linux

End-to-end encrypted bi-directional peer-to-peer file transfer desktop app built in cook0001/SimpleTransfer using WebRTC DataChannels, ephemeral ECDH P-256 key agreement, AES-256-GCM chunk encryption, and streaming SHA-256 verification. Files stream directly between peers without server storage.

Status (2026-11-28): Standalone installers are built for macOS (Universal, Developer ID codesigned with Hardened Runtime), Windows (x64 NSIS), and Linux (GPG-signed AppImage, .deb, .rpm, and core24 Snap) alongside a self-hostable Docker signaling relay.

Downloads (v1.0.0)

Standalone desktop installers (no Node.js or npm required) plus signed release checksums and GPG public key from cook0001/SimpleTransfer:

Platform & Format Contents & Signing Download
macOS Universal (.dmg) Universal Apple Silicon (arm64) + Intel (x64) drag-to-Applications disk image, Developer ID codesigned with Hardened Runtime. SimpleTransfer-1.0.0-mac-universal.dmg
Windows Installer (.exe) x64 NSIS installer with custom install directory, Start Menu, and desktop shortcut options. SimpleTransfer-1.0.0-win-x64.exe
Linux Portable (.AppImage) Self-contained x64 AppImage with detached GPG signature (.asc). SimpleTransfer-1.0.0-linux-x64.AppImage
Linux Debian / Ubuntu (.deb) Native x64 Debian package with desktop entry and detached GPG signature (.asc). SimpleTransfer-1.0.0-linux-x64.deb
Linux Fedora / RHEL (.rpm) Native x64 RPM package signed with rpmsign plus detached GPG signature (.asc). SimpleTransfer-1.0.0-linux-x64.rpm
Checksums & GPG Signatures SHA256SUMS.txt, detached GPG signature SHA256SUMS.txt.asc, and signing key KEYS.asc. SHA256SUMS.txt · SHA256SUMS.txt.asc · KEYS.asc

Local LAN & Internet Modes

Local LAN Mode (Default)

Offline · Zero External Calls

Designed for same-network transfers between desktops, laptops, and phones without touching third-party servers.

  • Generates and caches a local ECDSA P-256 self-signed X.509 v3 certificate covering localhost and active LAN IPv4 addresses so browsers always get a Web Crypto secure context.
  • Broadcasts LAN presence over UDP so nearby desktop instances appear under Nearby devices with automatic SHA-256 TLS certificate pinning.
  • Generates spec-compliant SVG QR codes and room links locally with zero external CDN or font requests.

Remote Server Mode (Internet)

Self-Hosted Relay · STUN/TURN

Share across networks by pointing Settings at any HTTPS deployment of server.js; remote peers can join from either the desktop app or a standard browser.

  • Signaling server relays only room codes, ephemeral ECDH public keys, SDP offers/answers, and ICE candidates — never file bytes.
  • Configurable STUN/TURN list in Settings supports direct NAT hole-punching and custom authenticated TURN relays for strict firewalls.
  • Explicit Accept / Decline prompts for incoming files by default, plus an optional auto-accept toggle and persistent download folder selector.

Security & Transfer Architecture

Layer Design Verification & Invariants
Key Agreement & SAS Ephemeral ECDH P-256 keypair rotated per peer; HKDF-SHA-256 over the room PIN and canonical sorted public keys. 6-digit PIN, QR code, and share link derive identical keys. The 4-group verification code binds both public keys and the shared secret so active relay interception causes a visible mismatch.
Chunk Encryption AES-256-GCM over 64 KB chunks with a fresh 96-bit CSPRNG IV and 20-byte header AAD (fileId + chunkIndex). Authenticated decryption immediately rejects reordered, replayed, or cross-file spliced chunks; transport runs over WebRTC DataChannels (SCTP over DTLS).
Integrity & Disk Streaming Incremental O(1)-memory SHA-256 on sender and receiver; desktop downloads stream to .part files with strict sequential chunk ordering. Incoming files are atomically renamed only after byte count and SHA-256 match file-complete; corrupted or cancelled transfers unlink their .part file immediately.
Electron & Web Hardening sandbox: true, contextIsolation: true, nodeIntegration: false, strict CSP (script-src 'self'), and DOM-only rendering without innerHTML. Filenames are stripped of traversal segments, dotfiles, and reserved names; show-item-in-folder is restricted to files saved during the session; TLS cert pinning is scoped strictly to localhost and selected LAN peers.
Signaling Relay Hardened Express + ws relay with CSPRNG room codes, 64 KB WebSocket payload cap, rate limiting, room limits, and peer-ID hijack prevention. /api/network-info is disabled in public relay mode so container hostnames and internal interfaces are never leaked.

Self-Hosting the Relay & Building Installers

Deploy the signaling relay via Docker or build native desktop installers locally from source:

Docker Signaling Relay

Node 22 Alpine · Non-Root

Runs server.js behind any HTTPS reverse proxy (Caddy, Nginx, Render, Railway, or Fly.io) with a built-in /api/health check. On PaaS hosts, use start command npm run web.

$ docker compose up -d
$ curl http://localhost:3000/api/health

Build Installers from Source

Electron Builder · Snap core24

Run the matching packaging target on macOS, Windows, or Linux (or tag v* to trigger the cross-platform GitHub Release pipeline):

$ npm run dist:mac:universal
$ npm run dist:win
$ npm run dist:linux && npm run sign:linux
$ gpg --import KEYS.asc && gpg --verify SHA256SUMS.txt.asc SHA256SUMS.txt

Operational Notes

  • First-time LAN browser prompt: When a phone or external browser opens a desktop host's local self-signed HTTPS link for the first time, the browser displays a local certificate prompt. Because the cert is cached per device in Electron's user data directory, you only accept it once per LAN IP.
  • Symmetric NATs & corporate firewalls: Public STUN servers handle most home and mobile networks, but symmetric NATs require adding a TURN relay entry in Settings.
  • Browser disk streaming: Chromium browsers use the File System Access API (showSaveFilePicker) on manual Accept to stream directly to disk; Safari and Firefox fall back to in-memory Blob downloads after SHA-256 verification.