# Real-Time P2P File Transfer Using GenosDB and Modern JavaScript

Transfer files directly between browsers with no upload server — using [GenosDB](https://genosdb.com/building-genosdb-p2p-database) and WebRTC data channels for peer-to-peer file streaming.

## Tech Stack

- **GenosDB** for decentralized, real-time communication.
- **Modern JavaScript** (ES modules, async/await).
- Minimal HTML + CSS.

## Key Features

- **Direct file transfer** between peers via WebRTC data channels.
- Automatic **peer discovery** on join.
- **Progress tracking** for large files.
- Fully **serverless** — runs 100% in the browser.

## Use Cases

- Decentralized file sharing platforms.
- Peer-to-peer collaborative tools with file exchange.
- Privacy-first file transfer apps (no cloud, no data retention).

## Live Demo

[**Real-Time File Transfer** — Join the room and start sharing files with other peers.](https://estebanrfp.github.io/gdb/examples/file-streaming.html)

> *GenosDB makes building decentralized, live, browser-native file transfer tools not only possible — but elegant.*

---

> **This article is part of the official documentation of GenosDB (GDB).**
> GenosDB is a distributed, modular, peer-to-peer graph database built with a Zero-Trust Security Model, created by **Esteban Fuster Pozzi ([estebanrfp](https://github.com/estebanrfp))**.

📄 [Whitepaper](https://github.com/estebanrfp/gdb/blob/main/WHITEPAPER.md) | overview of GenosDB design and architecture

🛠 [Roadmap](https://github.com/estebanrfp/gdb/blob/main/ROADMAP.md) | planned features and future updates

💡 [Examples](https://github.com/estebanrfp/gdb/blob/main/docs/genosdb-examples.md) | code snippets and usage demos

📖 [Documentation](https://github.com/estebanrfp/gdb/blob/main/docs/index.md) | full reference guide

🔍 [API Reference](https://github.com/estebanrfp/gdb/blob/main/docs/genosdb-api-reference.md) | detailed API methods

📚 [Wiki](https://github.com/estebanrfp/gdb/wiki) | additional notes and guides

💬 [GitHub Discussions](https://github.com/estebanrfp/gdb/discussions) | community questions and feedback

🗂 [Repository](https://github.com/estebanrfp/gdb) | Minified production-ready files

📦 [Install via npm](https://www.npmjs.com/package/genosdb) | quick setup instructions

🌐 [Website](https://estebanrfp.com/) | [GitHub](https://github.com/estebanrfp) | [LinkedIn](https://www.linkedin.com/in/estebanrfp/)
