Expand description
Rust-native, local-first distributed database built on iroh.
Local-first typed storage plus authenticated iroh synchronization.
Structs§
- Author
Id - A cryptographic device identity, represented independently from the iroh adapter.
- Backup
Options - Controls whether a closed-directory backup includes the separately encrypted local key vault.
- Backup
Report - Summary of a verified filesystem backup or restore.
- Blob
Hash - The BLAKE3 content hash of any immutable iroh blob.
- BlobRef
- A domain-bound reference to an encrypted immutable blob manifest.
- Blob
Stream - Lazy authenticated plaintext reader over independently encrypted chunks.
- Blobs
- Encrypted blob import and lazy streaming handle.
- Capability
Certificate - A signed endpoint-targeted capability certificate.
- Capability
Id - The stable hash of a canonical capability certificate.
- Change
- A committed materialized-record change.
- Change
Batch - One atomic post-commit subscription event.
- Collection
- A handle to one strongly typed collection.
- Collection
Id - The stable identifier of a typed collection.
- Commit
Body - A decrypted atomic domain transaction.
- Commit
Envelope - An immutable signed commit blob.
- Commit
Header - Public authenticated metadata for an encrypted commit body.
- Commit
Id - The content hash of an immutable commit blob.
- Control
Transition - A signed, immutable, single-successor domain authority transition.
- Cursor
- An opaque, authenticated continuation position.
- Device
Group - Application-facing label that groups device endpoints without changing protocol identity.
- Domain
Descriptor - A signed immutable domain genesis descriptor.
- Domain
Id - An isolated authorization, encryption, replication, and transaction boundary.
- Domain
Seed - Sensitive bootstrap material for adding a new device to an encrypted domain.
- Dot
- The unique, deterministic identity of an operation in a domain.
- Equality
Filter - A type-checked equality predicate over canonical visible field values.
- Fetch
Metrics - Live, lock-free counters for one lazy multi-provider stream.
- Fetch
Options - Bounded remote streaming policy.
- Fetch
Scheduler - Process-local weighted transfer admission shared by blob engines.
- Field
Descriptor - The stable replicated contract for one record field.
- Gossip
Session - An active, lossy gossip subscription that can announce and act on sync hints.
- Grow
Only Set - A set whose only operation is insertion.
- Immutable
- A write-once register that retains unequal concurrent initial values.
- Invitation
- A signed endpoint-targeted domain bootstrap payload.
- Invitation
Secret - A one-time offline invitation bearer secret.
- Invitation
Ticket - An encrypted offline invitation envelope safe to store without its bearer secret.
- IrohDb
- A local-first embedded database with one default private domain.
- Iroh
DbBuilder - Opens a database with the exact deterministic schema migrations understood by this application version.
- Iroh
Signer - The iroh endpoint signing identity used by the database protocol.
- Latency
Metrics - Aggregate latency evidence without high-cardinality labels.
- Lww
- A causal last-writer-wins register that never uses wall-clock time.
- Migration
Id - A stable identifier for one domain-local schema migration attempt.
- Migration
Report - Progress from one complete pass over every registered local-domain migration.
- Multi
Value - A register retaining every causally maximal assignment.
- Operation
- One field or record operation in an atomic commit.
- Operational
Metrics - Low-cardinality operational counters that never contain record or capability values.
- OrSet
- An add-wins observed-remove set.
- Ordered
List - A replicated growable ordered list with stable element dots.
- Page
- One stable page and an optional continuation cursor.
- Permission
Set - A validated compact set of explicit permissions.
- PnCounter
- A state-based positive/negative counter with per-author components.
- Projection
Report - Result of copying an explicit current-state projection into independent domain history.
- Provider
Metrics - Low-cardinality local quality observations for one provider slot.
- Query
- A type-checked local collection query.
- Range
Filter - A type-checked ordered predicate over canonical visible field values.
- Schema
Activation - The atomic publication marker for a complete staged migration.
- Schema
Descriptor - A validated, versioned collection schema.
- Schema
Id - The stable hash of a canonical record schema.
- Schema
Stage - One bounded, invisible target record in a causal schema migration.
- Snapshot
- An immutable encrypted local snapshot and its verified state root.
- Snapshot
Id - The content hash of an immutable snapshot blob.
- Subscription
- A bounded typed collection change stream.
- Sync
Node - A running iroh endpoint routing sync control and immutable blob protocols.
- Sync
Report - Result counters for one complete bidirectional reconciliation round.
- Transaction
- An atomic builder restricted to the database’s default domain.
- Transaction
Id - A unique identifier for one domain-local transaction.
- Typed
Field - Compile-time metadata for one strongly typed query field.
- Verification
Report - Evidence from immutable-object and derived-state verification.
- Version
Vector - A canonical summary of the highest observed commit sequence for each author.
Enums§
- Blob
Error - Encrypted manifest, chunk, streaming or storage failure.
- Blob
Priority - Application scheduling class for remote blob reads.
- Change
Kind - The visible effect of a committed record mutation.
- Consistency
Mode - A domain’s immutable replicated write policy.
- Crdt
Error - A deterministic CRDT operation or merge failure.
- Crdt
Kind - A built-in deterministic replicated-field strategy.
- DbError
- An embedded database operation failure.
- Migration
Error - A deterministic application schema migration failure.
- Operation
Kind - The stable operation opcode applied by the materializer.
- Order
Direction - Query result order for a typed field.
- Permission
- One independently grantable domain permission.
- Predicate
- A typed query predicate.
- Range
Operator - One supported ordered comparison.
- Record
Error - A typed-record schema or canonical codec failure.
- Remote
Apply - Result of feeding one authenticated immutable commit into the local apply kernel.
- Subscription
Error - Subscription receive failure.
- Subscription
Event - One ordered subscription event.
Constants§
- SYNC_
ALPN - The sole iroh-db control-plane ALPN.
Traits§
- Field
State - Canonical state codec and schema metadata for a replicated field.
- Iroh
Record - Strongly typed record contract generated by
#[derive(IrohRecord)]. - KeyProvider
- Application-supplied durable device identity and encrypted domain-key storage.
- Merge
- Deterministically combines state from another replica.
- Record
Key - Canonical application record identifier encoding.
Functions§
- backup_
closed - Creates an authenticated backup from a closed database using its default file key provider.
- backup_
closed_ with_ signer - Creates a closed-store backup authenticated by an application-managed key provider.
- restore_
backup - Verifies the embedded self-signature and every file before publishing a restore directory.
- restore_
backup_ from - Restores only when the authenticated catalog signer matches the expected device.
- staging_
digest - Hashes a complete staging set in canonical source-key order.
Derive Macros§
- Iroh
Record - Generates the stable schema, canonical record codec and typed field metadata.