Built a little something over the weekend - Airpeer! :D
I've always liked the idea of sharing files between devices without relying on the internet, cloud storage or uploading them to a third-party server. So I decided to experiment with that idea.
Airpeer is an open-source, decentralized, peer-to-peer file-sharing application that lets nearby devices discover each other and securely exchange files over a local network, even without an active internet connection.
Some of its features:
- Automatic device discovery using UDP multicast and broadcast
- Encrypted file transfers using TLS 1.3
- Secure six-digit device pairing using SPAKE2
- Batch file sharing with concurrent transfers (can share upto 24 files at once)
- Remembered devices and local transfer history
- A clean, minimal interface (material 3 design language)
- Cross-platform support for Windows, Android, Linux
- No internet required for sharing files and supports upto 1Tib
A little brief on how it works:
- Each device generates a persistent UUID and periodically broadcasts its presence over the local network using UDP multicast and subnet broadcast.
- The Rust backend maintains a registry of nearby devices, while the React frontend retrieves device and transfer information through Tauri IPC.
- Each device runs its own lightweight Axum HTTPS server, allowing it to act as both a sender and a receiver without a centralized backend.
- Devices authenticate using a six digit code through SPAKE2 (https://docs.rs/spake2/latest/spake2/ official rust docs of spake2 and implementation), with TLS 1.3 and certificate pinning securing the connection.
- Once the receiver approves a file-transfer request, an upload ticket is issued. Files are streamed directly between devices in 64 KiB chunks, with up to three concurrent file streams.
- Received files are initially written to temporary files, validated and saved without overwriting existing files.
Everything happens directly between the devices over the local network and no cloud relay or external server is involved in the transfer.
Built using Rust, Tauri, Tokio, React and TypeScript.
This project was a bit different from my usual ones. I wanted to experiment with AI assisted development (had some codex tokens left lol), so i must say AI played a significant role in building it and i used it extensively while building this :D.
It started as a small personal experiment, and now it's something I actually enjoy using. I'll keep improving it in my free time. (its not meant to replace any software or product :) i just wanted to make something in these weekends and it works surprisingly well so i decided to revamp the ui and share it)
- Website: https://airpeer.vercel.app
- GitHub repo: https://github.com/CoderZ90/p2p-light
- Post: https://linkedin.com/in/adionrust
A Quick Note From Me: it isnt made to replace any product or softwares i made it during weekends in my free time. I used it while working through the networking and Rust parts, but I also wanted to understand what was happening underneath instead of just getting something that worked. I ended up learning a lot about UDP, TLS, pairing and how files actually move between computers.
So Yes, AI was used in developing Airpeer.
Feel free to try it out, report bugs and share your feedback!




Top comments (0)