Commit Graph
40 Commits
Author SHA1 Message Date
SchluffeandClaude Opus 5.5 08b9f659c2 Lengthen codes and keep going after a failed security check
The security check compares 8 instead of 5 fingerprint bytes, too many to
brute force matching certificates. The tracker code has 8 digits, making
collisions between concurrent senders 100x less likely.

A "Codes don't match" button, or a peer leaving before the transfer
starts, ends that connection without ending the share: the tracker sender
answers the next (or a queued) offer, the receiver replaces its used up
offers. Both codes are aligned below each other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 01:01:45 +02:00
Schluffe 9282865a8c Add styling 2026-10-23 00:22:49 +02:00
Schluffe 1bfeb9843a add missing ws.js and introduce save check for both sides 2026-10-22 23:29:55 +02:00
Schluffe ff7b84af02 Fix large file download 2026-10-22 22:57:41 +02:00
SchluffeandClaude Opus 5.5 aea75fff92 Add file transfer PoC with manual and tracker signaling
- Core in src/main.ts: manual SDP copy/paste exchange (default, no
  tracker) and optional WebTorrent tracker signaling, STUN opt-out
- Fingerprint security check, sender confirms before sending
- ICE gathering stops after the first STUN result (5 s hard cap)
- Receiver writes to OPFS via an inline dedicated worker instead of RAM
- Playwright e2e suite across Chromium/Firefox and all signaling modes,
  opt-in 2.5 GiB transfer test (pnpm test:large)
- TODO.md with review findings and the service worker plan

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 00:35:36 +02:00
Schluffe 24307eb96a Start from scratch 2026-10-21 20:57:44 +02:00
Schluffe 9f3f21884f Release 0.0.6 with reconnect fixes and regression coverage 2026-10-21 00:39:08 +02:00
SchluffeandClaude Opus 5.5 acba97a7e1 Confirm reconnect pairings and add connection discovery settings
Setup now waits for both IndexedDB writes: the acceptor acknowledges its
write, a failure on either side is reported to both people, and the
proposer removes its copy if the acceptor could not save. Every session
that authenticates the paired device compares a check value derived from
the stored pairing, so a one-sided pairing (interrupted setup, or Turn off
reconnect on one device) is turned off on the other side too.

The tracker is chosen under Network settings > Connection discovery
(manual, default from VITE_TRACKER_URL, or custom), stored per browser and
editable during a session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 00:30:04 +02:00
SchluffeandClaude Opus 5.5 3659956967 Add experimental tracker reconnect for paired devices
During a session authenticated by both device identities, one person
proposes a WebTorrent tracker and the other confirms it. Both contribute
a nonce over the data channel; HKDF binds both device keys, the session
fingerprints and the tracker URL into a non-extractable base key stored
with the connection. Forget device, a replaced paired device and Turn
off reconnect clear it.

Reconnect joins a daily swarm derived from that key. Offers, answers and
codeless wakes travel as AES-GCM envelopes bound to the tracker routing
fields. The lower device key offers; the other device wakes it when it
arrives second. Retries are spaced and capped, one attempt per slot runs
under a Web Lock, and fresh device proofs still authenticate the session.

Checked against tracker.openwebtorrent.com and tracker.webtorrent.dev
with the new opt-in browser check (--tracker=<url>). Signaling v5,
midnight rollover, clock skew, CSP and real-network checks remain open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 20:51:05 +02:00
SchluffeandClaude Opus 5.5 a5935a8324 Remove shareable invitation links
Codes are exchanged by copy and paste again. The URL fragment intake,
the invitation dialog, the BroadcastChannel answer relay and the Share
link / Copy link controls are gone, along with their tests, browser
check scenarios and design doc. Code fields no longer accept links.

The compressed HC1 codes with typed offers/answers and echoed refs stay.
An optional signaling backend is the intended way to simplify the
exchange instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:47:07 +02:00
SchluffeandClaude Opus 5.5 f320bfb541 Streamline the connections workspace
Rename and remove now live on each sidebar row instead of a header
above the workspace. The pen swaps the row to an inline input (Enter or
blur saves, Escape cancels and returns focus to the pen) and the remove
control targets its own row without switching the open connection. The
row shows a status dot with text; on mobile a bar beside Show
connections shows the open connection and its status.

The per-connection activity timeline and its saved transfer history are
removed. Records from pre-release 0.0.5 builds lose their history field
on first load. A removal dialog closes when another tab removes its
connection, and focus moves to the next row after removing another one.

The README is reorganized without repetition and corrects the TypeScript
version; the 0.0.5 changelog now describes the net change since 0.0.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 23:46:12 +02:00
Schluffe 4323a8b774 Add gitea link 2026-10-19 23:15:19 +02:00
Schluffe 019267cc34 Add shareable invitation links II 2026-10-19 23:09:18 +02:00
SchluffeandClaude Opus 5.5 43ee7f119f Add shareable invitation links
Codes now travel as links with the code in the URL fragment, which the
app reads and clears before mounting (and on hashchange). An offer link
opens a preview that suggests an idle slot, preferring the one paired
with the sender's device, and only fills in the code; the user still
creates the answer. Answer links reach the waiting sender tab over a
same-origin BroadcastChannel, are acknowledged once and reported as
used afterwards, and fall back to copy and paste when no tab answers.

The panel offers Share link where the Web Share API accepts URLs, Copy
link, and the bare code under a disclosure. The browser check covers
the offer dialog, clean URL, answer relay, reuse, fallback on another
origin, an invalid fragment, axe on both dialogs and exact bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 22:44:15 +02:00
SchluffeandClaude Opus 5.5 8bd37ac8b1 Use compressed connection codes in the transfer panel
Offers and answers now go through the HC1 codec: the sender creates a
ref per session and the answer must echo it, so pasting an offer as the
answer or an answer for another code is rejected with a specific message
while the live offer stays usable. Pasted input may be a full link.

webrtc.ts drops its Base64 JSON signaling and exchanges validated SDP
only; identity hellos travel in the code envelope. Tests, the browser
check, compare-ice and the docs follow the new format.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 22:35:44 +02:00
SchluffeandClaude Opus 5.5 da2999ed5d Add compressed connection code codec
Codes become "HC1." plus base64url of deflate-raw JSON with an
offer/answer type and a ref the answer echoes. Decoding accepts bare
codes or full links, validates identity and description, enforces the
expected type and ref, and bounds both input and decompressed output.
Not wired into the app yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 22:29:20 +02:00
SchluffeandClaude Opus 5.5 4cf2ff5211 Plan shareable invitation links
Codes move into the URL fragment, which browsers never send to the host.
A compressed, versioned encoding with offer/answer type and an echoed ref
serves both links and pasted codes. Offers open an import dialog with slot
selection; answer links reach the waiting tab over BroadcastChannel, with
copy/paste as fallback. Includes measured code sizes and acceptance checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 22:26:22 +02:00
SchluffeandClaude Opus 5.5 1b76c7ce01 Add exploratory peer mesh idea to the roadmap
Describe peer-relayed signaling between paired devices and multi-source
transfers from signed piece manifests as an unscheduled idea, with its
limits (open tabs only, no NAT benefit, relay sees who connects). Note in
the reconnect plan that encrypted signaling should stay independent of
the tracker transport so a data channel can carry it later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 21:16:39 +02:00
SchluffeandClaude Opus 5.5 e3af2de051 Add self-hosted WebTorrent tracker container and reconnect plan
Build a WebSocket-only tracker from the official Node image and a locked
bittorrent-tracker 11.2.3, run via compose.tracker.yaml and the
tracker:up/tracker:down/test:tracker scripts. A small wrapper disables
scrape and stats and bounds input: frame validation, per-IP connection
and message limits (IPv6 grouped per /64), origin checks, a fixed peer ID
and at most four swarms per socket (tracked synchronously, so pipelined
frames cannot bypass it), swarm and peer caps, idle-socket timeout and
explicit expiry of stale swarm memberships. Forwarded addresses are taken
from the rightmost X-Forwarded-For entry and only from trusted proxies.

Integration tests use only Node built-ins. Document the planned tracker
reconnect design; the app still uses manual connection codes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 21:03:45 +02:00
Schluffe 8665d04f2c WIP VI improve UX [snapshot task 2] 2026-10-17 15:18:50 +02:00
Schluffe a73b3075b6 WIP V improve UX [snapshot task 2] 2026-10-17 14:51:48 +02:00
SchluffeandClaude Opus 5.5 5f8c6a1916 WIP V improve UX [snapshot task 2]
Add the connections workspace (sidebar, editable slots, per-slot activity,
removal dialog with focus wrapping), remove the downloadable local HTML and
unreleased identity backup/restore, and start the 0.0.5 draft changelog.
Restore the released 0.0.3/0.0.4 changelog entries. Enable focus emulation
in browser checks so background tabs receive focus/blur events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:44:08 +02:00
Schluffe 58c3e2af86 WIP IV improve UX [snapshot task 2] 2026-10-17 00:59:12 +02:00
Schluffe 28c90d1d71 WIP III improve UX [snapshot task 2] 2026-10-16 16:09:43 +02:00
Schluffe b2bab26981 WIP II improve UX [snapshot task 2] 2026-10-16 16:01:56 +02:00
Schluffe cd66321ea6 WIP improve UX [snapshot task 2] 2026-10-16 15:39:31 +02:00
Schluffe 3ae47dde8e Release 0.0.4 2026-10-16 14:57:17 +02:00
Schluffe 7856725c72 Add hosted service-worker streaming downloads 2026-10-16 13:49:17 +02:00
Schluffe a53022d717 Checkpoint before hosted streaming downloads 2026-10-16 13:37:54 +02:00
Schluffe b7f47531b7 fix timeout issue (maybe?) 2026-10-16 12:01:43 +02:00
Schluffe 95e4a879b9 fix ts issue 2026-10-16 11:34:18 +02:00
Schluffe a90bf45db3 update stuff 2026-10-16 11:30:16 +02:00
Schluffe 1d8e595b75 Add stun.pagequit.net 2026-10-09 16:46:13 +02:00
Schluffe 62c749de73 Add local HTML download and release 0.0.3 2026-10-09 15:25:56 +02:00
Schluffe bee62a79a9 bump version 2026-10-09 14:58:14 +02:00
Schluffe 00b2ec7d5c Improve a11y 2026-10-09 14:55:05 +02:00
Schluffe e9818aaeda Translate everything to typescript 2026-10-09 14:17:36 +02:00
Schluffe c3ca3e1752 Add Coturn TURN server 2026-10-09 13:47:56 +02:00
Schluffe 752d0cf3af fix: harden WebRTC transfers for v0.0.1
Require mutual fingerprint confirmation before sharing metadata or files.
Validate incoming messages, bound buffering, and confirm receipt before
reporting success. Add direct-to-disk saving and explicit TURN opt-in.

Fix reset and retry handling, clean up cancelled connections, and preserve
completed Firefox downloads when the sender disconnects.

Update dependencies, clarify security assumptions, and add protocol and
cross-browser regression tests. Set version 0.0.1 and document the release
in CHANGELOG.md, linked from the README.

BREAKING CHANGE: both peers must use signaling and transfer protocol v2;
older connection codes are no longer accepted.
2026-10-09 12:11:14 +02:00
Schluffe d198332c92 first commit 2026-09-07 18:55:05 +02:00