BerryDB
BerryDB BerryDB v1.1.0
Download DMG
Apache 2.0 Open Source · Swift 6 & AppKit · Zero Electron / Chromium

Ship queries & schema at
native macOS speed.

Sub-second cold starts, virtualized AppKit NSTableView streaming grids, Keychain & Citadel SSH tunnels, Apple Intelligence SQL generation, and opt-in MCP live reads for Claude Code, Codex, and Antigravity.

Download BerryDB for Apple Silicon
0.85s
Apple M1 cold launch
9 Engines
SQL · NoSQL · Vector · KV
1,000 Rows
Bounded grid default
9 Tools
Guarded MCP stdio server
BerryDB — Northstar Commerce · Staging (PostgreSQL 16)
Read-Only TX
BerryDB Native Workspace
Live 3-pane workspace: Schema Sidebar · Multi-Tab SQL Editor & Populated Results Grid · AI Copilot
Interactive Product Tour

Inspect every AppKit surface in context.

Select any capture module or click numbered pins on the canvas to examine BerryDB subsystems up close.

Product Tour View
NSOutlineView + NSTableView Retina 2762×1740

Multi-Pane SQL Workbench & AI

Zero-jank virtual scrolling

AppKit reuses only visible cell views regardless of whether a result set streams 100 or 100,000 rows into the bounded memory buffer.

01 · Streaming DataGrid & Atomic Edits

Virtual NSTableView with transactional cell writes.

Rows stream incrementally as packets arrive from native wire drivers. Double-clicking any cell with a primary key stages inline mutations and commits all pending changes inside one explicit atomic transaction.

  • ✓ Capped at 1,000 rows by default; expand limit on demand
  • ✓ Server-side WHERE filtering and column-type formatting
  • ✓ Real query cancellation (pg_cancel_backend, KILL QUERY)
Streaming DataGrid
AI SQL Copilot
02 · Apple Intelligence & Cloud AI SQL Copilot

On-device private inference or cloud reasoning, never guessing writes.

Generate multi-table JOINs, inspect EXPLAIN trees, and render schema ER diagrams directly in a workspace tab. Switch to Apple Intelligence (macOS 26+) for free on-device turns that transmit zero data to external servers.

  • ✓ Safe SELECT auto-runs execute via a separate read-only connection on PostgreSQL, MySQL/MariaDB & SQLite
  • ✓ Mutations trigger explicit user approval cards before execution
  • ✓ Copilot disabled by default on connections labeled Production
03 · Citadel SSH Bastions, Keychain & Schema Designer

macOS Keychain credentials and visual structural audits.

Every password, API key, and passphrase stays inside the macOS Keychain. Pure-Swift Citadel SSH tunnels forward bastion connections inline, while Schema Designer and Visual EXPLAIN expose index health without raw boilerplate.

Citadel SSH Form
Preview dialog ↗
Visual EXPLAIN (⌘E)
Preview profiler ↗
Visual Schema Structure and Index Designer
Interactive Embedded Studio

Switch database engines & inspect the grid live.


              
Streamed 5 rows · 1.8 ms · bounded 1,000 max Double-click row to simulate transactional edit
Model Context Protocol · berrydb-mcp

Schema cache by default. Opt-in live reads under database locks.

Claude Code, Codex, and Antigravity read cached schemas offline. When per-connection Live Reads are enabled in Settings, berrydb_execute_read_query and berrydb_dynamodb_query enforce read-only transactions, least-privilege refusal on write-capable PROD users, time-bound expiry (1h/8h/24h/7d), and keyed HMAC audit logging.

berrydb-mcp · Live Tool Inspector (9 Tools) Live Reads: ON (Read-Only TX · 24h)

              
Recent Activity stores newest 100 calls with keyed digests (no raw SQL or rows persisted) Full MCP Spec →
Verified Architecture Telemetry

Reproducible Swift performance vs Electron & JVM wrappers.

Baseline measured on Apple M1 (16 GB RAM, macOS 26.6.2 release build). Run scripts/measure-performance.sh in the repository to benchmark locally.

Verified Launch Telemetry & Safety Ceilings

Cold Launch (Apple M1)
macOS 26.6.2 · scripts/measure-performance.sh
0.85 s
Bounded UI Grid Cap
Virtualized NSTableView per query
1,000 rows
MCP Live Read Ceiling
Plus 100-entry HMAC-SHA256 Recent Activity log
4 concurrent
Unified Native Stack
PostgresNIO, MySQLNIO, libsqlite3, libsybdb, valkey-swift, MongoWireClient, SigV4/REST
9 engines · 9 tools

No bundled Chromium binary, Node.js runtime, or JVM heap.

Capability BerryDB Electron GUI JVM Tooling
Native UI ToolkitAppKit + Swift 6Chromium DOMSwing / JCEF
Credential VaultmacOS KeychainEncrypted FileKeystore / File
Local AI InferenceApple Intelligence (macOS 26)Cloud API onlyCloud API only
MCP Schema & Live ReadsBuilt-in berrydb-mcpManual pluginManual bridge
Read-Only GuardSeparate RO Conn + TXPrompt warningSession flag
LicenseApache 2.0ProprietaryPaid Subscription
9 Production Database Engines

One unified workspace across SQL, NoSQL, KV & Vector.

Engine Wire Driver / Protocol SSH Tunnel Inline Edit MCP Cache + Live Reads
Under The Hood

Modular Swift package architecture built for isolation.

Zero-Trust Secret & Bastion Flow Citadel SSH + Keychain
macOS Keychain Passwords · API Keys Passphrases only Citadel SSH Engine Pure Swift port forward Ed25519 / RSA / ECDSA Private DB VPC TLS Verify + Custom CA Client Certificates
AI Egress Boundary

On macOS 26 with Apple Intelligence, on-device turns keep prompts and schema context locally with zero network transfer. Cloud mode shares only questions, DB engine type, cached schema names, and up to 100 result rows per tool run.

On-Device
0 bytes sent to BerryDB AI
Cloud Mode
≤ 100 rows · Sample opt-in
Pure-Swift Wire Stacks

Built atop PostgresNIO, MySQLNIO, valkey-swift, libsqlite3, MongoWireClient, and FreeTDS libsybdb—eliminating external CLI wrappers.

Modular Workspace Diagnostics

Mermaid ER diagram generation, searchable query history replay, batch CSV/JSON/SQL wizards, and table storage/scan telemetry in native tabs.

Install & Build

Ready in seconds on Apple Silicon.

Requirements: macOS 15.0 Sequoia+ · Apple Silicon (arm64) · Apache 2.0 License
Architecture FAQ
How do MCP live reads prevent destructive writes by coding agents? +

SQL live reads via berrydb_execute_read_query are off by default. When enabled per connection, each statement must pass BerryDB's read policy and executes inside a database read-only transaction (SQLite: query_only). Production-labeled connections refuse write-capable DB accounts and require explicit time-bound windows (1h, 8h, 24h default, or 7d).

What leaves the Mac when using Apple Intelligence vs Cloud AI? +

On macOS 26 with Apple Intelligence, on-device turns transmit nothing to BerryDB's AI service. Cloud mode transmits user questions, engine type, table/column schema names, and up to 100 query result rows per tool run. All MCP tool output returned to Claude Code, Codex, or Antigravity flows to that agent's model provider.

How are database credentials and SSH keys stored? +

Passwords, API tokens, SSH passwords, and SSH key passphrases reside exclusively inside the macOS login Keychain. Private key files remain at their user-managed filesystem paths.