Skip to Content
APIData Layer

Data Layer

GET /api/v1/data-layer

Returns the local data layer specification, cloud layer configuration, and data ownership rules for the Mukoko ecosystem.

Response Shape

FieldTypeDescription
localLayerobjectLocal-first storage strategy (RxDB, SQLite, IndexedDB)
cloudLayerobjectCloud sync targets (CouchDB, Supabase)
dataOwnershipobjectRules governing user data ownership and portability

Example Local Layer

{ "engine": "RxDB", "backends": [ { "name": "SQLite", "platform": "native", "useCase": "Capacitor mobile/desktop apps" }, { "name": "IndexedDB", "platform": "browser", "useCase": "PWA and web apps" } ], "features": ["reactive-queries", "schema-validation", "replication"] }

Example Cloud Layer

{ "sync": [ { "name": "Apache CouchDB", "purpose": "Community data replication" }, { "name": "Supabase", "purpose": "Auth, wallet, transactions" } ] }

Example Data Ownership Rule

{ "rule": "export-anywhere", "description": "Users can export all their data in open formats at any time." }

Example

curl https://registry.mukoko.com/api/v1/data-layer
Last updated on