# Real-Time P2P Video Streaming Using GenosDB and Modern JavaScript

Real-time video streaming between browsers without a media server — using [GenosDB](https://genosdb.com/building-genosdb-p2p-database) and WebRTC data channels for signaling and peer discovery, with direct in the browser.

## Tech Stack

- **GenosDB** for decentralized, real-time communication.
- **Modern JavaScript** (ES modules, async/await).
- **HTML5 video API** + minimal CSS for layout.

## Key Features

- Live **webcam and microphone streaming** between peers.
- Automatic **peer discovery** on join.
- Dynamic DOM updates with **video elements per peer**.
- Fully **serverless** — runs 100% in the browser.

## Use Cases

- Decentralized video chat platforms.
- Peer-to-peer collaborative tools with live video.
- Privacy-first streaming apps (no cloud, no data retention).

## Live Demo

[**Real-Time Video Streaming** — Join the room and start streaming your webcam video to other peers.](https://estebanrfp.github.io/gdb/examples/videoStreaming.html)

> *GenosDB makes building decentralized, live, browser-native communication 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/)
