Skip to content
kwy404Public

About

Send files and whole folders straight between your own devices in the browser. Peer to peer over WebRTC, no server, no account, no size limit, resumable, end to end encrypted, with folder sync.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

filefinch banner: Finn the finch carrying files straight between two devices

filefinch

CI status MIT license

Open the app · Website · Guides · Security · Português

filefinch sends files, folders and short texts between your own devices, straight from one browser to the other. Open it on two devices, pair them with six words or a QR code, and drop your files. There is no account, no upload and no server of ours in between.

Quick start

  1. Open the app on the first device and press Show pairing code, or simply drop the files you want to send: the code appears right away.
  2. On the second device, type the six words (the first four letters of each are enough) or scan the QR code.
  3. One screen shows six confirmation words. Type them on the other device. Once they match, the files go across.

Devices you have paired before are remembered, so next time you pick the device and only type the confirmation words.

Features

  • Pair with six words or a QR code. The code works once and expires in 10 minutes.
  • Confirmation words. A device that only saw your code cannot match them, so no file goes to a stranger.
  • Known devices. Reconnect to a device you paired before without new pairing words. Forget it at any time.
  • Text and links. Send a note or a link between your devices, like a shared clipboard.
  • Any size, whole folders. Files stream in 64 KiB chunks straight to disk, folders keep their tree, and every file is checked with SHA-256.
  • Resume. If the connection drops, the transfer continues from the last confirmed chunk.
  • Folder sync. Two way, push or pull, with a plan of changes you approve first.
  • Previews and a local library. Look at photos, video, audio, PDF and text before saving.
  • Optional passphrase. A second AES-GCM layer on top of the browser encryption.
  • Installable. Once loaded, the app opens without internet.

How it works

Two browsers need to exchange a small WebRTC offer and answer before they can talk directly.

  • Six words (default). Both devices turn the words into a topic and a key, meet on a few public MQTT relays and swap the offer and answer sealed with that key. The relays only see random names and ciphertext, and both devices leave them as soon as they connect.
  • No relays (advanced). For networks that block the relays, each device shows a QR code with its part of the handshake. Scan one each way, or copy and paste the codes. No relay is used.

After that, files go device to device over a WebRTC data channel encrypted with DTLS. To find a route, the browsers ask a public STUN server for their public address. If both networks block direct routes, you can add your own TURN relay in Settings; it only forwards encrypted packets.

Limits

  • Both devices must be online with filefinch open while files are sent.
  • Very strict networks can block a direct route. filefinch says so and offers the TURN setting.
  • Speed follows the slower of the two connections.
  • Phones may pause background tabs, so keep the screen on for long transfers.

See SECURITY.md for the threat model and how to report a problem.

Guides

Run it locally

filefinch is static files. With Node 18 or newer:

git clone https://github.com/kwy404/filefinch.git
cd filefinch
npm ci
npm run build:app     # copies src/ into docs/app/lib/
npm run build:site    # builds the website in docs/
npm run serve         # serves docs/ locally
npm test              # unit and site tests
npm run test:e2e      # two browsers connect and transfer for real

WebRTC and the service worker need localhost or HTTPS.

Path What it holds
src/ Shared modules: pairing, QR encoder, crypto, protocol, chunking, SHA-256
docs/app/ The app, with its manifest and service worker
docs/ Website, guides, sitemap and the 404 page
scripts/site/ Website builder, guide sources and art generators
test/ Unit tests, site tests and the browser connection tests

More from kwy404

Monsoon, Voodoo.js, howlden, breakhound, vueleap, graphemely, numberparrot, edgegoat, cookieowl, installkite, a11ymedic, fontsketch and kastor.

Author and license

Made by Alexandre Kohler (GitHub and LinkedIn). Released under the MIT license.

About

Send files and whole folders straight between your own devices in the browser. Peer to peer over WebRTC, no server, no account, no size limit, resumable, end to end encrypted, with folder sync.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages