# Introducing GenosDB: a P2P Graph Database with Built-In Zero-Trust Security

**TL;DR:** GenosDB is a peer-to-peer graph database with zero-trust security at the core. Real-time sync, cryptographic identity, and role-based access — no central server. [Repo](https://github.com/estebanrfp/gdb)

%[https://www.youtube.com/watch?v=QsoBf2ghyw4]

---

## What Is GenosDB?

GenosDB (GDB) is a modular, peer-to-peer graph database designed to embed zero-trust security *directly in the data layer*.  

Instead of bolting on identity or permissions through a central server, every peer independently enforces trust with cryptography.  

---

## The Solution

Most “decentralized” apps cheat: they use P2P storage, but rely on centralized servers for identity and access control. That single point of trust undermines decentralization.  

GenosDB flips this:  
- Every operation is signed and verified.  
- Roles and permissions live *inside the database*.  
- Peers enforce rules locally, not through a server.  

---

## Core Architecture

- **Graph-based**: data as nodes and edges.  
- **P2P sync**: WebRTC or relay-based updates.  
- **Reactive queries**: subscribe to graph changes in real time.  
- **Eventual consistency**: async propagation, but cryptographically validated.  

---

## Security Manager

Security isn’t an add-on — it’s the core engine.  

- **Identity:** every user = Ethereum address (private key secured via WebAuthn or mnemonic).  
- **Signed ops:** all operations signed + verified.  
- **RBAC:** roles (guest → superadmin) define permissions, stored in the graph.  
- **ACLs:** per-node control for fine-grained access.  
- **Encrypted storage:** data tied to user identity keys.  

---

## Zero-Trust Entry

New peers get one privilege: create their identity node as *guest*.  
No shortcuts. No backdoors. Promotion requires a superadmin.  

---

## Distributed Trust Model

1. **Cryptographic signatures** — no impersonation.  
2. **Shared rules** — uniform, verifiable.  
3. **Local enforcement** — compromised peers can’t cheat the network.  

Security is prioritized over availability: no operation is accepted without verifiable proof.  

---

## Why It Matters

GenosDB shows that:  
- Identity and trust can live *inside* a database.  
- P2P apps can be zero-trust without servers.  
- Collaborative systems (docs, social, multiplayer) can run on a substrate where every action is verified cryptographically.  

---

## Resources

> **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))**.  

**📖 [Documentation](https://github.com/estebanrfp/gdb/blob/main/docs/index.md)** | Full reference guide and API overview

**🗂 [Repository](https://github.com/estebanrfp/gdb)** | Explore production builds

**📦 [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/)**
 

---

## Invitation

GenosDB is in **stable beta**: the core engine runs, zero-trust flows are enforced, and P2P sync is live.  

Looking for developers to:  
- Experiment with it  
- Stress test it  
- Help shape the roadmap  

If you care about **security, decentralization, and real-time collaboration**, I’d love your feedback.  

— Esteban Fuster Pozzi ([estebanrfp](https://github.com/estebanrfp))  

## Explore More

- [Why I Built GenosDB](https://genosdb.com/building-genosdb-p2p-database) — the complete technical deep-dive
- [GenosDB: Zero-Trust Security for Distributed Systems](https://genosdb.com/genosdb-distributed-trust-p2p-security) — how the security model works
- [Technical Features of GenosDB](https://genosdb.com/genosdb-technical-features) — complete feature overview


---

> **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/)
