I built a free AirDrop alternative in one HTML file with WebRTC and PeerJS
说明与用途
一个基于浏览器的文件传输工具,使用 WebRTC 和 PeerJS 进行直接点对点传输,全部在单个 HTML 文件中实现。
问题
Users need a simple way to transfer files between devices without email or cloud services.
结果
A lightweight, free, browser‑based file transfer tool that eliminates the need for email or cloud services.
工作流
- Open the HTML file on two devices
- Scan the QR code or enter the 6‑character code
- Drop files or text into the browser
- Data is sent directly over WebRTC
- Files are held in memory until the user saves them
证据
Open it on two devices, scan the QR code (or type the 6-character code), and drop files or text. Data goes directly between browsers over WebRTC.
PeerJS's free public server is used only for pairing.
Known limits: pairing depends on the free PeerJS server, received files are held in memory until saved, and anyone with the code can connect while the tab is open.
- 记录日期: 2026-10-26T14:26:09.820Z