kern/filepizza
kern/filepizza has 10,267 GitHub stars and 621 forks. Star changes are not measured yet. Last checked 2026-11-06 02:01 UTC. Last push 2026-11-05.
:pizza: Peer-to-peer file transfers in your browser
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalPeer-to-peer file transfers in your browser
Cooked up by Alex Kern & Neeraj Baid while eating Sliver @ UC Berkeley.
Using WebRTC, FilePizza eliminates the initial upload step required by other web-based file sharing services. Because data is never stored in an intermediary server, the transfer is fast, private, and secure.
A hosted instance of FilePizza is available at file.pizza.
What's new with FilePizza v2
- A new UI with dark mode support, now built on modern browser technologies.
- Works on most mobile browsers, including Mobile Safari.
- Transfers are now directly from the uploader to the downloader's browser (WebRTC without WebTorrent) with faster handshakes.
- Uploaders can monitor the progress of the transfer and stop it if they want.
- Better security and safety measures with password protection and reporting.
- Support for uploading multiple files at once, which downloaders receive as a zip file.
- Streaming downloads with a Service Worker.
- Out-of-process storage of server state using Redis.
Development
$ git clone https://github.com/kern/filepizza.git
$ pnpm install
$ pnpm dev
$ pnpm build
$ pnpm start
Running with Docker
$ pnpm docker:build
$ pnpm docker:up
$ pnpm docker:down
Stack
- Next.js
- Tailwind
- TypeScript
- React
- PeerJS for WebRTC
- View Transitions
- Redis (optional)
Configuration
The server can be customized with the following environment variables:
REDIS_URL– Connection string for a Redis instance used to store channel metadata. If not set, FilePizza falls back to in-memory storage.COTURN_ENABLED– When set totrue, enables TURN support for connecting peers behind NAT.TURN_HOST– Hostname or IP address of the TURN server. Defaults to127.0.0.1.TURN_REALM– Realm used when generating TURN credentials. Defaults tofile.pizza.STUN_SERVER– STUN server URL to use whenCOTURN_ENABLEDis disabled. Defaults tostun:stun.l.google.com:19302.PEERJS_HOST– Hostname or IP address to the self-hosted PeerJS server. Defaults to0.peerjs.com.PEERJS_PATH– Path to self-hosted PeerJS server. Defaults to/.
FAQ
How are my files sent? Your files are sent directly from your browser to the downloader's browser. They never pass through our servers. FilePizza uses WebRTC to send files. This requires that the uploader leave their browser window open until the transfer is complete.
Can multiple people download my file at once? Yes! Just send them your short or long URL.
How big can my files be? As big as your browser can handle.
What happens when I close my browser? The URLs for your files will no longer work. If a downloader has completed the transfer, that downloader will continue to seed to incomplete downloaders, but no new downloads may be initiated.
Are my files encrypted? Yes, all WebRTC communications are automatically encrypted using public-key cryptography because of DTLS. You can add an optional password to your upload for an extra layer of security.
License & Acknowledgements
FilePizza is released under the BSD 3-Clause license. A huge thanks to iblowyourdesign for the pizza illustration.
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,631 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,005 starsreact/react
The library for web and native user interfaces.
252,018 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,508 stars