Promote to production: Optical File Transfer tool - #93
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
New Network tool (/tools/optical-transfer), inspired by Decimen Optical Transfer (MIT). Transfer a file between two devices using only a screen + camera — no network, no server, fully client-side. - LT fountain codec (fountain.lib): each QR frame is the XOR of a pseudo-random subset of file blocks, subset derived deterministically from the frame seq (shared mulberry32 PRNG + robust-soliton degree distribution). The receiver peels frames in any order until all blocks solve — tolerant of dropped/blurred frames, no ACKs or retransmission. Fully unit-tested (round-trips across sizes, out-of-order, lossy, duplicate frames). - Self-describing frame wire format (frame.lib): magic/version/session/k/size/ hash/seq + payload; packFile/unpackFile carry the filename through the codec; fnv1a integrity. Tested. - qr.lib: fast synchronous QR render (qrcode byte-mode matrix) + jsqr decode. - Island: role picker; Sender loops an animated QR at ~8fps; Receiver uses the camera, decodes frames, shows progress, verifies the checksum, downloads. - Registered optical-transfer (Network, ScanLine, beta). Spec: docs/superpowers/specs/2026-08-01-optical-transfer-design.md 564 tests · lint clean · build green. Codec fully tested; QR/camera pipeline is build + manual two-device smoke. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(optical-transfer): beam files device-to-device via QR (no network)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ships the QR-beam optical file transfer (no-network, fountain-coded).
🤖 Generated with Claude Code