Commit Graph
77 Commits
Author SHA1 Message Date
SchluffeandClaude Fable 5.2 3c47047ddd Release 1.0.2: take a file picked again, refuse a dropped folder
Chromium fires no change event when the picker returns the file its input
already holds. The page kept the old one then, though the file may have
changed on disk, which makes the old one unreadable, or another file was
dropped in between, which the input never saw. The input is now emptied as
soon as its file is taken, so every pick fires. Its title names the file
taken, the browser's own tooltip would say no file is chosen.

A dropped folder came as a file of 0 B that can't be read and failed only
once the receiver downloaded it. It is refused with a note now, the file
picked before stays.

Both are covered for Chromium, whose protocol is the only one that reaches
the real picker and a drag from the file manager.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 13:00:35 +01:00
SchluffeandClaude Opus 5.5 1b2696b6b4 Release 1.0.1: update dependencies, count only the lost tracker's offers
Node 26.13.1, Vue 3.5.45, Playwright 1.65.0, Vite 8.3.8, Vitest 5.1.0,
vue-tsc 3.3.14, @vitejs/plugin-vue 6.0.11 and ws 8.23.0 for its bugfix.
ws 8.23.0 is younger than pnpm's minimum release age, pnpm-workspace.yaml
excludes it until then.

The test of an offer waiting on a lost tracker counted every offer the
sender answered. The silent receiver proves the code on its next channel and
may come back by the second tracker before the test ends, so it failed most
runs. It now counts the offers via the lost tracker only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:59:58 +01:00
SchluffeandClaude Opus 5.5 ac4d496a48 Version the protocol for 1.0, fail downloads the page abandoned
PROTOCOL (hellcon/1) goes in front of the PBKDF2 salt and names the data
channel, so different versions never meet via a tracker and the manual
receiver tells a sender on another protocol apart. The footer shows it, the
receiver's hints ask to compare it. Forks are asked to name their own.

public/sw.js and the page exchange a VERSION, a mismatch fails the download
with outdated. The worker fails a download after 20 s without a chunk or
ping from its page, else Firefox saves the truncated file of a closed tab as
complete.

The build uses relative links and works under any path. On https only wss:
trackers and ws: to this device are accepted, one the browser refuses to
open counts as lost. Also: a file read short stops the transfer, an offer
waiting on a lost tracker isn't answered, a share ended while its key was
derived opens no tracker, and tracker and receiver errors lose hidden
characters. The README lists what isn't planned and the phone limitation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 15:10:09 +01:00
SchluffeandClaude Opus 5.5 44a8a72261 Keep the screen on and ask before leaving while a session is busy
While a share waits or a transfer runs, the page holds a Screen Wake Lock,
requested again once the page is visible, since the browser releases it
whenever it's hidden. A beforeunload handler makes the browser ask before a
reload or a closed tab ends the session, only while busy so the page stays
eligible for the back/forward cache otherwise. Covered by awake: with a fake
wake lock, a headless browser may not grant a real one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 13:51:51 +01:00
Schluffe 870d55b44f Set Content-Security-Policy 2026-10-30 13:39:16 +01:00
SchluffeandClaude Opus 5.5 af0a8c9fee Strip controls, line separators and bidi controls from offered file names
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:38:10 +01:00
SchluffeandClaude Opus 5.5 7f4811485a Limit what a tracker can make the page do, recommend anti-framing headers
A tracker message over 64 KiB isn't parsed, before acceptance it rejects
the tracker like a failure reason. Beyond 20 messages per 10 s the rest is
dropped, so a tracker can't keep the page parsing and decrypting. What a
tracker makes a socket log goes through one note: each line once, at most
10 per socket. The log keeps the last 1000 lines in a shallow ref and says
how many went.

index.html sets Referrer-Policy itself, the README recommends the headers a
<meta> can't set: frame-ancestors, X-Frame-Options and nosniff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:29:23 +01:00
SchluffeandClaude Opus 5.5 b102e55495 Limit the tracker per address and harden its plain HTTP path
Per address and minute: connects and forwarded signaling, so reconnecting
doesn't reset a client's allowance. X-Forwarded-For only counts from PROXIES,
checked with net.BlockList, with one warning when an uncovered peer sends it.
Plain requests get timeouts and a closing 404, silent connections go after
30 s and all queues together share a budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 20:27:50 +01:00
SchluffeandClaude Opus 5.5 ae1e3bef9b Hash all fingerprints into the manual security check
The manual check used to show the first 8 bytes of the first fingerprint
each SDP named, so an interposer could add its own certificate beside the
claimed one and the codes still matched. Now each code is the first 16
bytes of a SHA-256 over every fingerprint the SDP names, also ones hidden
in other lines, so whatever the browser uses changes the code. Without a
fingerprint on either side the connection ends. End-to-end tests try a
claimed certificate in several hiding places.

The README says that a working connection isn't necessarily direct and what
the meeting tracker sees, TODO.md lists hardening from a security review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 00:23:04 +01:00
Schluffe ae871a2647 Improve tests 2026-10-28 22:24:24 +01:00
Schluffe 8f82700736 Refactor the app 2026-10-28 21:05:47 +01:00
SchluffeandClaude Opus 5.5 f53d39ae69 Update Biome to 2.6.3 and pnpm to 12.16.1
TypeScript stays on 6, vue-tsc can't load TypeScript 7 yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 18:01:49 +01:00
SchluffeandClaude Opus 5.5 aa61efcc10 Let the receiver fix a wrong salt during a search
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 17:51:20 +01:00
SchluffeandClaude Opus 5.5 2e47b55901 Salt the tracker swarm with the clock or an own salt
The code used to be derived with a fixed salt, so a tracker could compute a
table from swarm to code ahead of time, once for every share. Now the salt
is the UTC 6 minute window the share was made in, and the code's new 11th
character names that window, so the receiver finds it even with a clock
hours off. Use own salt adds a salt both sides agree on, which nobody can
guess ahead for; Generate makes a random one. The salt is locked while a
tracker share or search runs, and a receiver that finds no sender is told
to check the salt too.

Settings are no longer kept in localStorage: a remembered list or salt that
differs from the other side's would silently break shares. The core now
reports when a share expires and until when it lasts, and the session owns
a tracker's timers, so a socket still closing after an abort announces
nothing more. Header options line up with the cards, disabled switches look
disabled, and sizes, percents and times don't wrap. postcss 8.5.32.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 01:14:27 +01:00
Schluffe e3a2b348d6 Harden the app 2026-10-26 20:48:24 +01:00
SchluffeandClaude Opus 5.5 d92c4b50cf Let one pill pass through the bar until the transfer starts
Start, wait and retry used a gradient sweep and a pulse, which felt restless.
Now a solid pill passes through the bar at an even speed for all three, pink
while retrying, and the line below says the rest. The sender's waiting line
is shorter, the code's label already says to give it to the receiver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 19:28:45 +01:00
SchluffeandClaude Opus 5.5 f7e8999439 Show how a session is doing on the progress bar
Each side's bar now shows the session's phase by color and movement, with a
short line below saying what is going on: a sweep while connecting, a pulse
while someone has to act, a slow pink sweep while retrying after a failure
(with the reason and the attempt), then the transfer, done, stopped or error.
A receiver whose code no tracker knows says so right away instead of after
6 minutes, and a connection that fails though both sides have a public
address names a blocking network as the likely reason.

The log marks where each session starts. The send card names the session's
file once another one is picked, and a blocked clipboard is shown inline with
the text selected for copying by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:26:53 +01:00
Schluffe 02668de602 Add IPv6 to the coturn config 2026-10-25 20:46:19 +01:00
SchluffeandClaude Opus 5.5 3c4e706e1f Keep a finished download's frame for a moment
Small downloads, empty or one byte, were sometimes never saved, though the worker reported them
finished and both sides logged success. The browser can read the whole response before it hands
the navigation to its download manager, and the frame was removed right then, which cancels it.
Without a delay an empty file failed 8 of 10 runs, a one byte file 4 of 10.

The download's frame now stays for DOWNLOAD_GRACE (1 s) after finished, the frame that holds the
worker still goes right away. No event tells when the browser took the download, so the 1 s is
empirical. A new test checks the retention on a paused clock, it fails without the delay and with
the worker's frame held too. The browser's timing it can't cover, TODO.md keeps a record of that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:55:45 +01:00
SchluffeandClaude Opus 5.5 bd0154db68 Tell the user when a missing public address explains a failed connection
Without STUN a side offers only local addresses, enough on the same network or VPN. Between
networks the connection never came up, and nothing said why: tracker signaling only logged "did
not connect" and ended after 6 minutes with the generic message, the manual exchange in Chromium
never ended at all, since Chromium doesn't fail a connection without usable addresses.

A connection that doesn't come up now checks both SDPs for a public address (typ srflx) and names
the side without one, in the log and in the error at the end of the session. That covers STUN
turned off, an empty list and servers that don't answer, on either side. A device with a public
address of its own offers none either, so it's a hint. The manual sender gives up 30 s after the
answer, the receiver after 6 minutes, it has to hand the answer over first.

A note above the cards says when STUN is off or no server is listed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:55:45 +01:00
Schluffe 21ea9a7e02 Update node packages 2026-10-25 19:04:06 +01:00
SchluffeandClaude Opus 5.5 840bc3572b Contact one STUN server and one tracker at a time
Both sides used to contact every STUN server and tracker at once, so each of them learned the IP
address and each tracker that A sent to B.

Connections now use one STUN server: the first in the list that reports a public address to a
throwaway probe connection within 2 s. It stays for the page's lifetime. If a connection gets no
address from it, the next connection probes on from the server after it. A probe runs only while a
session waits for it and stops once none does, STUN is turned off or the list changes.

The sender joins the first tracker that accepts it and moves to the next only once that one rejects
it, can't be reached within 10 s or is lost. The receiver walks the list with one offer each and
stays where a tracker reports a seeder (complete), which is the sender: it always announces before
anyone has the code. Trackers it passed keep its offer. backend/tracker.mjs now sends complete.

wss://tracker.pagequit.net comes first in the default trackers, the public ones are fallbacks.
TODO.md drops the server tasks, they aren't work on this codebase.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 18:51:42 +01:00
SchluffeandClaude Opus 5.5 5729ed62f7 Add backend/.env.example
It shows what ORIGINS has to look like: exactly what browsers send as Origin, so scheme, host and a
non-default port, without path or trailing slash. Anything else locks out every client. CADDY_NETWORK
is there too, commented out with its default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 18:51:42 +01:00
SchluffeandClaude Opus 5.5 8b36e51b56 Require Node.js 26.12.1, it fixes CVE-2026-111497
26.11.1 has the out-of-bounds write in its Brotli decoder. The tracker decompresses nothing, but
the image and development machines should still not run an affected version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 16:09:49 +01:00
SchluffeandClaude Opus 5.5 4725b14a40 Limit pings like messages in the tracker
ws answered every ping on its own, past the message rate limit and past the bound on bytes queued
for a peer: a client pinging without reading made the tracker buffer pongs until it ran out of
memory. Pongs are now sent by the tracker, pings and pongs count as messages, and a pong is queued
only within the same bound as any message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 15:54:03 +01:00
SchluffeandClaude Opus 5.5 22d794965e Add an own tracker and STUN server in backend/
backend/ runs both as Docker Compose services, neither is needed: the client works with any
WebTorrent tracker and STUN server. The tracker is one file on Node and ws that does only the part
of the protocol HellCon uses. It accepts allowed origins only and messages of at most 16 KiB, only
announce, one offer per announce and answers only to offers it delivered, once. Forwarded messages
are rebuilt from the checked fields. It limits the message rate, the signaling each connection
sends, the bytes queued for a peer that stops reading, connection age, connections per IP and in
total, and peers per swarm. It logs nothing. coturn runs STUN only on the host network, pinned,
read-only and without capabilities beyond the one its binary needs.

backend/tracker.spec.mjs tests its rules one by one, e2e.spec.ts sends a real file through it alone
in both directions between Chromium and Firefox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 15:26:42 +01:00
SchluffeandClaude Opus 5.5 bb69569b51 Seal tracker signaling with the code
The SDP relayed by the trackers is now encrypted with AES-GCM under a key derived from the code,
next to the swarm ID and the proof key. Trackers and peers that found the swarm without the code
no longer learn either side's addresses, and an offer or answer that doesn't decrypt is dropped
before any peer connection exists, so it can't take the sender's turn. The proof stays as a
second layer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 13:52:32 +01:00
Schluffe 338d4d2532 harden e2e tests 2026-10-25 13:31:27 +01:00
SchluffeandClaude Opus 5.5 c6145b8919 Let the code prove tracker connections instead of the user
Both sides derive an HMAC key from the code, next to the swarm ID, and sign
their role and both DTLS fingerprints as they see them. An interposer or a
peer that found the swarm without the code can't, so its connection ends and
the next peer gets its turn, as does one that proves nothing within 10 s.
Tracker transfers need no comparing and no clicks anymore, the manual
exchange keeps its fingerprint check. The swarm ID changes once more, old and
new clients don't find each other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 13:05:58 +01:00
SchluffeandClaude Opus 5.5 707248f36b Derive the swarm ID with PBKDF2 instead of SHA-1
Anyone who sees the swarm IDs could test a GPU's worth of codes against all
of them at once, about 8 % of the codes within a share's 6 minutes. 600,000
iterations of PBKDF2-SHA-256 cost a share ~50 ms and make that negligible.
Old and new clients no longer find each other.

Also note the open decisions for the server at pagequit.net.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:46:36 +01:00
SchluffeandClaude Opus 5.5 b6b6e7c29b Lint and format with Biome, and retire used share codes
Biome formats and lints the TypeScript, the Vue templates and the CSS:
pnpm lint checks, pnpm format fixes. It keeps the existing style, single
quotes and 120 columns, and leaves the vendored logo alone. Besides its
recommended rules it looks for promises nobody awaits. Rules that only
flagged deliberate code are off: non-null assertions that state what the
code guarantees, CSS order where no two rules set the same property, and
fieldset for role="group". The one-time formatting pass mostly splits
long chains.

Promises that are deliberately not awaited are marked with void, none of
them can reject today. Buttons say type="button", the any for peer
messages and the checkbox switch keep their reasons in ignore comments.

The sender's code also counts as no longer valid once a transfer started:
that closes the trackers, so another receiver would wait for nothing,
yet the card still offered the code with Copy. The tracker transfer
tests check it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 18:46:33 +02:00
SchluffeandClaude Opus 5.5 2167b528b2 Keep tracker shares alive for 6 minutes, then let them go
Both default trackers closed the socket of a peer that announced only
once, after about 2 and 3 minutes, and the card then wrongly said no
tracker was reachable. Sender and receiver now announce again on the
interval the tracker names (at least 30 s apart, whatever it names), the
receiver with its same offer.

A share, or a receiver looking for one, gives up after 6 minutes without
a download: its tracker sockets close and the card says nobody came. A
peer connected by then still gets its turn, the transfer itself has no
time limit. The sender's code shows until when it is valid and is marked
no longer valid, without Copy, once it expired or the share failed.

A receiver that lost every tracker now closes its peer connections too,
and the expiry timer goes with the session when it is cancelled, fails
or the download starts.

Tests fast-forward the page clock: re-announcing and expiry on both sides
against mocked trackers, no timer or connection left after cancelled and
failed sessions, and a live download after the deadline passed during
the security check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 17:55:45 +02:00
SchluffeandClaude Opus 5.5 a35bd71ca7 Report rejecting trackers and let go of closed connections
A tracker that answers the announcement with a failure reason counts as
gone, like an unreachable one: its socket closes, and once no tracker is
left the card says which rejected it and why. A failure after the tracker
accepted only concerns that message and is still just logged.

Closing a connection or socket before the session ends now removes its
abort listener, so repeated unusable offers or rejected peers no longer
pile up until the session ends. The sender drops its per-peer listener
when it stops, the receiver only adds one once the download starts.

Both are covered by tests against mocked trackers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 16:19:27 +02:00
SchluffeandClaude Opus 5.5 0df1dd4f70 Write the README for users
Explains how to send a file, the security check, how the connection is
set up, what others can see, the settings, self-hosting and the known
limitations. Developer details stay out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 16:10:28 +02:00
SchluffeandClaude Opus 5.5 2abd0b504d Own each transfer in a session and harden the protocol
Every operation (share, receive, manual offer or answer) now runs as one
session tied to an AbortSignal. Starting another ends it: its connections,
tracker sockets and timers close, and it can no longer touch the shared
security check, progress or incoming file. Finished, failed and cancelled
transfers close their connections, and the sender's tracker sockets close
once the download starts.

- A malformed or never-connecting tracker offer no longer blocks a share
- The receiver validates the file offer and rejects excess bytes and
  data beyond the flow control window; sw.js checks name and size too
- Failures show up in the card instead of disappearing into rejected
  promises: bad manual codes, unreachable trackers, lost connections
- Primary buttons and pink text meet 4.5:1 contrast, the STUN switch
  shows keyboard focus again, the tracker Copy button matches the others
- Split the core into src/core.ts, src/main.ts only mounts the app, which
  removes the main.ts <-> App.vue import cycle
- Bring back the Gitea source link, write the README
- Tests reuse one browser per worker with fresh contexts, fail on page
  errors, check cleanup after transfers, use a local fake STUN server
  and cover empty files, window boundaries, odd names, malformed
  messages, session replacement and the production build

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 16:04:14 +02:00
SchluffeandClaude Opus 5.5 bacc15baaf Ask before downloading and show transfer progress
Tracker codes now use 8 of [0-9a-zA-Z] instead of 8 digits. After both
security checks the receiver sees the offered file and starts the download
itself, the sender waits for it. Both sides show a progress bar of what the
download manager has read. Copy buttons for the tracker code, offer and
answer; the manual exchange is folded away below the tracker on both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 14:15:48 +02:00
Schluffe 85ccdbfc03 Add server lists to edit 2026-10-23 20:19:07 +02:00
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