59-Lesson Curriculum

Learn SapixDB

From first boot to production deployment — complete, hands-on, with real curl examples and challenges in every lesson.

Your progress0 / 59 lessons

Click the checkbox next to any lesson to mark it complete. Progress is saved in your browser.

Foundations

0/6 done
The Mental Model
What SapixDB is, why it exists, how it differs from every database you've used.
Start →
First Boot
Start with Docker, health check, make your first write.
Start →
Record Anatomy
content_hash, parent_hash, ts_hlc, flags, signature — field by field.
Start →
Organisms and Agents
Create multiple agents in one organism, understand namespacing.
Start →
Writing Records in Depth
JSON write, batch write, TTL, the write path internals.
Start →
Reading Records in Depth
By hash, latest N, scan, time travel, chain_head, count.
Start →

Working with Records

0/4 done
Soft Delete & Tombstones
How deletion works in an append-only system. What tombstones are.
Start →
Batch Writes
Write many records in one call. GroupCommitter and throughput.
Start →
Per-Record TTL
Automatic expiry, the sweeper cycle, good and bad TTL patterns.
Start →
Schema Validation
Enforce required fields, types, and enums on an agent.
Start →

Querying with SaQL

0/7 done
SaQL Basics
All query types, the request shape, basic filter syntax.
Start →
All 15 WhereOp Operators
eq, ne, gt, lt, between, contains, starts_with, in, fts, and more.
Start →
Compound Filters
Combine conditions with AND, OR, NOT — any depth.
Start →
Sort Order & Pagination
asc/desc, cursor pagination with after_hlc.
Start →
Aggregate Functions
sum, avg, min, max, count over a filtered field.
Start →
Group By
Count or aggregate per group value.
Start →
Distinct Queries
Find unique field values without loading all records.
Start →

Indexes & Performance

0/4 done
Single-Field Indexes
Create an index, understand when the engine uses it.
Start →
Composite Indexes
Index multiple fields for AND-of-eq compound queries.
Start →
Full-Text Search
Inverted index, tokenizer, the fts operator.
Start →
Query Explain
See the query plan before execution — index or full scan?
Start →

Time & History

0/3 done
Time Travel Deep Dive
Query exact past state using as_of. Audit snapshots.
Start →
Time Range Queries
Window queries across any period. Billing period patterns.
Start →
Chain Verification
Verify cryptographic integrity. Detect tampering.
Start →

Graph & Joins

0/3 done
Graph Edges
Create typed directional edges between agents.
Start →
Graph Traversal
Walk the graph, record-level references.
Start →
Multi-Agent Joins
Inner-join two agents on a shared field in one SaQL query.
Start →

Advanced Query

0/3 done
Field Projection
Return only specific fields — reduce payload, hide sensitive data.
Start →
Natural Language Queries
Ask in plain English. Heuristic vs LLM planner.
Start →
Streaming Queries (SSE)
Live stream of records matching a filter.
Start →

Binary Storage

0/1 done
BlobStore
Upload files, retrieve by hash, link to strand records.
Start →

Auth & Security

0/5 done
Master Seed & Encryption
AES-256-GCM payload encryption, HKDF derivation, what stays plaintext.
Start →
Root Key & API Auth
SAPIX_ROOT_KEY, open vs auth mode, authentication on every request.
Start →
Scoped API Keys
Per-service keys with limited scopes, revoke independently.
Start →
Key Delegation & Rate Limits
Delegate key creation authority, set per-key rate limits.
Start →
Key Rotation
Rotate root key (instant) and master seed (migration).
Start →

Automation

0/3 done
Cron Jobs
Schedule recurring jobs inside SapixDB — no external scheduler.
Start →
Triggers
Fire an action whenever a matching record is written.
Start →
Mutants (AI Schema Evolution)
AI-proposed schema changes. Human approval before apply.
Start →

Real-Time

0/3 done
Per-Agent SSE Stream
Stream every new record from a specific agent in real time.
Start →
Global Broadcast Bus
All events across all agents, publications and topic subscriptions.
Start →
Durable Publications
Named change-feeds with server-side cursor tracking, subscriber slots, backfill on reconnect, and at-least-once ACK.
Start →

Operations

0/3 done
Epigenetic Profiles
Switch between default, high_load, compliance, analytics, maintenance.
Start →
Snapshots & Backups
Point-in-time snapshots, restore, automated backup scripts.
Start →
WAL & Checkpoints
What the WAL is, when to checkpoint, manual flush.
Start →

Enterprise

0/3 done
HIPAA Compliance Mode
PHI field tagging, access logging, HIPAA audit reports.
Start →
SOX Compliance
Dual-admin controls, SOX-tier agents, audit reports.
Start →
Codios Authorization
Contract-based write authorization for multi-agent systems.
Start →

SDKs

0/2 done
Python SDK
Full walkthrough: write, query, stream, batch — no curl.
Start →
TypeScript SDK
Typed payloads, async/await, React hooks for live data.
Start →

Production

0/2 done
Production Deployment & Mesh Replication
Production config, secrets management, HA replication, full checklist.
Start →
Replication Reliability
Retry queue for durable push replication, Codios auth cache, circuit breaker, and ops runbook.
Start →

Go SDK

0/1 done
Go SDK
Zero-dependency Go client: write, query, time travel, graph edges, SSE streaming.
Start →

Add-ons

0/2 done
Mail Add-on
Embed SMTP email in your agent: send transactional email with no external SaaS, audited on-chain.
Start →
Chat Add-on
Persistent multi-room messaging inside sapix-agent: strand-backed, real-time SSE, agent-to-human workflows.
Start →

Administration

0/2 done
CLI (sapix)
Every admin operation from the command line: status, chain verify, keys, peers, mutants, blobs, organisms.
Start →
Sherapd & Alabay Watchdogs
Built-in performance and security watchdogs: query their strands, understand severity levels, ops runbook.
Start →

Auth Add-ons

0/2 done
User Auth — Register, Login & Magic Links
Add end-user authentication: password registration, login, passwordless magic-link sign-in, JWT access tokens, refresh token rotation.
Start →
OAuth, Passkeys & Custom Claims
OAuth 2.0 (Google/GitHub), WebAuthn passkeys, and embedding app_metadata/user_metadata roles into JWTs.
Start →

Ask a question

Stuck on a concept, a curl command, or something unexpected? Send your question and the team will respond — usually within one business day.

Prefer the raw docs? Read the manual →