SaralDBv2.0
SaralDB v0.1 — Flow-Based State Engine

No CRUD. No Complex APIs.
Everything is a Flow.

SaralDB unifies document storage, in-memory performance, and real-time event streaming under a single .flow() abstraction. Query, stream, and commit atomic transactions without managing separate DB, cache, or message brokers.

Log-First Internal Engine
Git-Style Flow Logic
Atomic Transactions
Zero External Cache
saraldb.tx().flow()
● Transaction Active
Execution Pipeline.flow() Engine
System StateLog-First / Derived
/* Atomic Lead Creation & Validation (Git-Style Flow) */
await saraldb.tx()
  .flow(async tx => {
    // Fetch state using .pull()
    const course = await tx.courses.pull(courseId);

    // Query using .when()
    const dup = await tx.leads.when(l => 
      l.email === email || l.phone === formattedPhone
    );

    if (dup?.course?.category === course.category) {
      throw new Error("Duplicate lead category");
    }

    const stage = await tx.stages.when("New Leads");

    // Create entry using .push()
    const lead = await tx.leads.push({
      ...req.body,
      phone: formattedPhone,
      stage: stage.id
    });

    // Append log event using .push()
    await tx.leadHistory.push({
      lead: lead.id,
      event: "lead_created"
    });
  })
  .commit();
Avg Query Latency
0.3 ms
12% faster in v2.0
Ops Throughput
1.2M+
Queries per second
Cluster Uptime
99.999%
Zero Downtime HA
Security Engine
Row-Level
Native RLS & ACL Rules
Upcoming SaralDB Capabilities & RoadmapVector Embeddings for AI (RAG), Live WebSocket Subscriptions & Multi-Region Auto-Sharding
🚀 Coming Q3 2026