Skip to content

Latest commit

Β 

History

History
62 lines (42 loc) Β· 3.07 KB

File metadata and controls

62 lines (42 loc) Β· 3.07 KB

EntglDb Central Hub πŸ•ΈοΈ

The Mesh Database β€” P2P Synchronization Middleware & Platform for Local-First Applications.

Note: This repository contains the Official Specifications and the Documentation Website for EntglDb. For implementation code, please visit the specific language repositories.

πŸ“š Repository Structure

  • spec/: Canonical Specifications. The source of truth for the EntglDb protocol, including Discovery (UDP), Transport (Noise/TCP), Data Model, and Synchronization algorithms.
  • website/: Documentation Site. The source code for entgldb.com, built with Vue 3 and Vite.
  • projects/: Project proposals and research documents describing new features and ecosystem expansions.

🌍 Ecosystem

Language Repository Status
C# / .NET EntglDb.Net βœ… Stable (v2.1.1)
Kotlin / Android EntglDb.Kotlin ⚠ Alpha
Node.js / TypeScript EntglDb.NodeJs 🚧 In Development
React Native EntglDb.ReactNative 🚧 In Development

The .NET implementation is the most advanced and serves as the reference implementation. The protocol specs enable any language/platform to implement a fully interoperable EntglDb node.

πŸš€ Getting Started with the Specs

If you are building an EntglDb implementation or want to understand the internals:

  1. Start with Discovery β€” UDP peer discovery protocol.
  2. Read the Wire Protocol β€” TCP framing, encryption, and message types.
  3. Understand the Data Model β€” Documents, Oplog, and HLC.
  4. Study the Synchronization β€” Anti-entropy, conflict resolution, and snapshots.
  5. Review the RFC-001 Protocol β€” Formal protocol specification.

πŸ› οΈ Building the Website

The documentation site is a static SPA built with Vue 3 and Vite.

cd website
npm install
npm run dev

🌐 Cross-Platform Philosophy

EntglDb is designed as a technology-agnostic protocol. The canonical specifications define all behaviors unambiguously so that any language or platform can implement a fully interoperable node. Key design principles:

  • Offline-First: Nodes operate independently and sync when connected
  • AP Model (CAP theorem): Availability over consistency β€” eventual consistency via HLC
  • Multi-Master: Every node is equal; no central authority
  • Gossip-Based: Epidemic algorithm for efficient propagation
  • Pluggable Storage: Any document store with CRUD + Oplog capabilities

🀝 Contributing

We welcome contributions to the specifications! If you find an ambiguity or an error in the protocol definition, please open an Issue or a Pull Request. See CONTRIBUTING.md for details.

πŸ“„ License

MIT Β© 2026 EntglDb Project.