Deploys at the
Source of Your Data
Free your software from cloud dependency with a database that runs directly on any device, from sensors to satellites.

DefraDB is the cornerstone of Source's edge-first technology stack.
It’s a document-based database that’s distributed directly on your devices, synchronizing peer-to-peer, without relying on central servers.
Whether you're building smart city infrastructure, autonomous systems, Edge AI, or the next generation of mobile apps, DefraDB handles the complexities of conflict resolution, data consistency, cryptographic verification, and peer-to-peer (p2p) synchronization while you focus on building software that removes boundaries.

Collaborate Without Servers
Work together seamlessly, even when offline. DefraDB's built-in Conflict-free Replicated Data Types (CRDTs) automatically resolve data conflicts when devices sync or reconnect, with no central server required to mediate changes.
View Docs
Share data more efficiently by connecting devices directly, without the need to route through central servers, reducing latency and eliminating cloud dependencies

Run Natively Everywhere
Deploy the same database to local browsers, devices, satellites, and lastly… cloud. DefraDB environment-specific compiler optimizations deliver performance across your users' devices.
View Docs
Future-proof your architecture with a single database for all of your deployment environments, including optional cloud only when necessary.

Trust Every Byte
Verify the integrity of your data cryptographically across your entire network. DefraDB's verification system ensures you can trust information from any source without central oversight.
View Docs
Validate the authenticity and integrity of every piece of data with cryptographic signatures, ensuring nothing has been tampered with.
Under the hood
DefraDB makes edge-first development work like magic; but here's what's happening behind the scenes.
Edge-First Architecture
DefraDB's architecture is fundamentally different from databases that simply cache cloud-controlled data locally on local devices.
Device authority
Your device is the authoritative source of truth for its data.
Direct synchronization
Peers can connect and sync directly P2P (with libp2p).
Truly local and offline
Compiles to WebAssembly or native code for running complex queries directly on device with zero online dependency.
Minimal attack surface
Edge-first design naturally limits data exposure.
Data Model & Versioning
Each field in your documents is tracked independently through a graph of changes using DefraDB’s novel Merkleized delta-state CRDT approach that enables.
Lightning-fast syncs
Transfer only what's changed with query subscriptions and delta synchronization.
Field-level precision
Track changes and apply permissions at the smallest data unit.
Bulletproof verification
Validate data lineage with IPLD schemas and CIDs at every step.
Seamless conflict resolution
Field-level CRDTs merge changes automatically or manually while preserving complete history.
Query Engine
The query system combines familiar GraphQL syntax with powerful edge-first capabilities.
Work offline, always
Run complex queries with zero network dependency.
Schemas & type safety
Write GQL schemas and generate language-specific types automatically for your codebase for consistency and interoperability.
Real-time across peers
Automatically sync query results between connected devices.
Time-travel queries
View any past state of your data with a simple query parameter.
Security & Privacy
Security isn't bolted on; it's woven into every layer.
End-to-end encrypted
Data remains protected in transit between peers and at rest.
Verifiable integrity
Cryptographic proofs and digital signatures ensure data hasn't been tampered with.
Local & remote privacy sync
Keep your data local or share with others using verifiable authorization and complete privacy.
Precise permissions
Control access at the field level with flexible policies.