spacedb-sdk 0.1.0

SpaceDB developer SDK — the one surface a developer picks up: an offline-first local replica with a per-field schema (CRDT type + consistency tier), mID-authorized + budgeted ops that each return their honest achieved consistency, reactive queries, and CRDT sync. Composes the whole SpaceDB stack. Phase 1 SpaceDB Mission, M8.
Documentation

spacedb-sdk — the developer's whole world

One surface over the entire SpaceDB stack. You open an offline-first local replica, define a [Schema] where each field declares its [CrdtType] and consistency [Tier], and run ops that are mID-authorized, budget-bounded, and honest — every write and read returns the [Outcome] it actually achieved (Local, Committed{tier}, Stale{lag}, Unavailable{reason}). Strong-tier fields go through a quorum that fails safe under partition; reactive [Watcher]s and CRDT export/import sync round it out.

use spacedb_sdk::{Database, Schema, CrdtType, Tier, Identity};

let owner = Identity::generate("did:mata:owner").unwrap();
let mut db = Database::open(Identity::generate("did:mata:home-1").unwrap());
db.register_identity(&owner).unwrap();
db.define(
    Schema::new("profile")
        .field("bio", CrdtType::Text, Tier::Convergent)
        .field("username", CrdtType::Register, Tier::Strong),
);

Open-core (MIT). Composes spacedb-crdt, -access, -consistency, -meter.