🚀 Open Source 📋 Apache 2.0

JSON-Native SQL for AI Agents

The database and infra layer built for AI agents and microservices. Store JSON payloads, coordinate multi-agent workflows, and query AI-generated data — with real SQL on Postgres.

✉️ Agent Mail Schemas 📦 JSON Event Store 🤖 AI App Backend 🔌 MCP Integration

Open source. Apache 2.0. Self-host on your infrastructure.

The VibeSQL Platform

Open source projects for AI data. Server, Micro, Edge, Audit and the vsql CLI are licensed Apache 2.0.

VibeSQL is a JSON-native SQL layer on PostgreSQL. Start with the documentation and the example schemas.

vsql: the open-source CLI

A zero-dependency command-line client for VibeSQL. Run queries, manage schemas and seed data from your terminal. Needs Node.js 18 or newer.

# Install from the release file (vsql is not on the npm registry;
# "npm install -g vsql" installs a different package)
$ npm install -g https://github.com/PayEz-Net/vsql/releases/download/v1.3.5/vsql-1.3.5.tgz
$ vsql version
$ vsql --help

Source and releases on GitHub

Golden Paths

Pick the one that fits your use case.

What's New

Latest releases and updates from the VibeSQL platform.

Why VibeSQL is Different

A JSON-native SQL API on PostgreSQL, for AI agents.

🎯

JSON-First for AI

AI systems produce JSON. VibeSQL stores, indexes, and queries it natively with PostgreSQL JSONB. No ORMs, no schema wrestling.

✉️

Agent Mail Schemas

Example schemas for agent mail on VibeSQL.

🔓

True Open Source

Apache 2.0 licensed. Fork it, modify it, host it commercially, white-label it.

🔌

MCP Integration

First-class MCP server for AI assistants. Talk to your database in natural language.

Example Schemas

Example database designs for AI agent systems.

🤖 Agent Collaboration Platform

5 tables • Multi-agent orchestration
▼
-- Agents table
CREATE TABLE agents (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  name TEXT NOT NULL,
  capabilities JSONB,
  status TEXT DEFAULT 'idle',
  last_seen TIMESTAMP
);

-- Conversations table
CREATE TABLE conversations (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  agent_ids UUID[],
  context JSONB,
  created_at TIMESTAMP DEFAULT NOW()
);

-- Messages table
CREATE TABLE messages (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  conversation_id UUID REFERENCES conversations(id),
  agent_id UUID REFERENCES agents(id),
  content TEXT,
  metadata JSONB,
  created_at TIMESTAMP DEFAULT NOW()
);

✉️ Agent Mail System

2 tables • Async messaging
▼
-- Mail queue table
CREATE TABLE mail_queue (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  from_agent UUID,
  to_agent UUID,
  subject TEXT,
  body JSONB,
  priority INTEGER DEFAULT 0,
  status TEXT DEFAULT 'pending',
  created_at TIMESTAMP DEFAULT NOW(),
  delivered_at TIMESTAMP
);

-- Mail templates table
CREATE TABLE mail_templates (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  name TEXT UNIQUE,
  template JSONB,
  variables TEXT[]
);

🔐 Page RBAC

4 tables • Access control
▼
-- Users table
CREATE TABLE users (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  email TEXT UNIQUE,
  role TEXT DEFAULT 'viewer',
  permissions JSONB
);

-- Pages table
CREATE TABLE pages (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  path TEXT UNIQUE,
  owner_id UUID REFERENCES users(id),
  settings JSONB
);

-- Page access table
CREATE TABLE page_access (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  page_id UUID REFERENCES pages(id),
  user_id UUID REFERENCES users(id),
  access_level TEXT
);

-- Access logs table
CREATE TABLE access_logs (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  page_id UUID REFERENCES pages(id),
  user_id UUID REFERENCES users(id),
  action TEXT,
  timestamp TIMESTAMP DEFAULT NOW()
);

Deploy Your Way

Self-host on your infrastructure.