Aller au contenu principal

Data Pod (Core OS)

The open-source backend that serves as the guardian of user data


Overview

The Data Pod (also called Synap Core OS) is the open-source backend that manages all user data. It is the central hub of the Synap ecosystem.


Core Responsibilities

Data Management

  • Event Store: Immutable event log (TimescaleDB)
  • Projections: Materialized views for fast reads
  • File Storage: Content stored in R2/MinIO
  • Vector Search: Semantic search via pgvector

API Layer

  • tRPC APIs: Type-safe, end-to-end APIs
  • Authentication: Ory Kratos + Hydra
  • Authorization: Row-Level Security (RLS)
  • Real-time: WebSocket support

Intelligence

  • Local Agents: LangGraph workflows for basic tasks
  • Plugin System: Extensible via The Architech
  • Tool Registry: Dynamic tool registration

Architecture


Key Features

Event-Driven

All state changes flow through events, ensuring:

  • Complete audit trail
  • Event replay capability
  • Decoupled architecture

Data Sovereignty

  • User owns all data
  • Self-hostable
  • Open source
  • Complete control

Extensibility

  • Internal plugins (The Architech)
  • External services (Marketplace)
  • Agent plugins (LangGraph)

Technology Stack

  • Runtime: Node.js 20+
  • Database: PostgreSQL (TimescaleDB + pgvector)
  • Event Bus: Inngest
  • ORM: Drizzle ORM
  • API: tRPC + Hono
  • AI: LangGraph + Vercel AI SDK
  • Auth: Ory Stack
  • Storage: R2/MinIO

Next: See Client SDK for client integration.