VibeSQL Micro v0.2.0

LATEST MAJOR
April 3, 2026

We addressed the clumsiness of embedded PostgreSQL by borrowing the best ideas from projects like PGlite and other single-binary distributions. The result is a much cleaner wrapper: streamlined extraction with progress feedback, dynamic port allocation, lock-file guarding, and truly zero-config startup. Cross-platform parity is now verified with 61 automated tests.

Added

  • Comprehensive test suite — 61 tests across unit, integration, and CLI layers
  • test_comprehensive.go — 20 Go integration tests covering JSONB, unicode, concurrency, persistence, JOINs/aggregates, and warm-open performance
  • test_linux_cli.sh — 18 bash CLI tests for Linux (CRUD, complex queries, lock detection, large result sets, path with spaces)
  • Expanded Go unit tests in pkg/vsql/open_test.go and new pkg/vsql/query_test.go
  • TEST_STRATEGY.md and CHANGELOG.md project documentation

Changed

  • Binary extraction now caches once and reuses with visible progress on first run
  • Lock-file based concurrent access protection with user-friendly WarmError messages
  • Zero external PostgreSQL dependency — just vsql.Open("app.vsql")

Fixed

  • vsql-cli --profile flag now correctly routes requests to non-default profiles

Verified

  • Linux (Ubuntu x64): 61/61 tests passing — binary size ~25 MB
  • Windows: DLL loading fixed, CLI smoke-tested — binary size ~67 MB

vibesql-mail v1.0.0

NEW PRODUCT
March 22, 2026

Agent-to-agent mail system for AI coding teams. MCP server, npm distribution, and interactive TUI client.

Added

  • MCP Server — Rust stdio JSON-RPC server with 6 tools: check_inbox, read_message, send_mail, reply, list_agents, search_mail
  • npm packagenpx vibesql-mail-mcp --agent MyAgent auto-downloads platform binary from GitHub releases
  • TUI client — Interactive terminal mail with inbox, compose, reply, forward, sent, agents, thread views
  • MCP resources: mail://agents, mail://inbox/{agent}, mail://thread/{thread_id}
  • Auto-migration on first connection — schema created automatically
  • Windows cmd /c wrapper documentation for MCP config

VibeSQL Micro v1.2.0

March 22, 2026

Parameterized query fix — params array now correctly passes through to PostgreSQL's prepared statement driver.

Fixed

  • params array in request body was silently ignored — queries using $1, $2 placeholders now work correctly with prepared statements

VibeSQL Server — Edge & Sentinel

March 19, 2026

Two new projects join the VibeSQL Server solution: Edge (OIDC gateway) and Sentinel (schema change classifier).

Added

  • VibeSQL.Edge — External-facing OIDC gateway with multi-provider JWT auth, federated identity resolution, SQL permission enforcement (Read/Write/Schema/Admin), and HMAC-signed proxy to Server
  • VibeSQL.Sentinel — Schema change classification library. 4-tier risk taxonomy: Safe, Migration, Destructive, Prohibited. Data-aware verdict downgrading. Zero EF Core dependency.
  • Npgsql replaces Devart across all open-source VibeSQL projects
  • Query size limit raised to 256KB (512KB for schema operations)

vsql CLI v1.1.0

NEW PRODUCT
March 17, 2026

Zero-dependency TypeScript CLI for VibeSQL. Query databases, manage schemas, seed data, rollback versions — all from the command line.

Added

  • vsql query — execute SQL with table/json/csv output formats
  • vsql schema show <collection> — dump active JSON schema
  • vsql schema update <collection> --file schema.json — push schema changes with dry-run and confirmation
  • vsql insert <collection> <table> — insert documents via --file or --data, with --batch for arrays
  • vsql rollback <collection> — roll back schema versions with --list, --dry-run, --yes safety ladder
  • vsql tables, vsql describe <table> — explore database structure
  • vsql config init — named connection profiles at ~/.vsql/config.json
  • vsql health — server connectivity check with latency
  • DDL safety classification (safe/migration/destructive/prohibited)

VibeSQL Server 2.0.0

MAJOR
March 17, 2026

Schema management API, document CRUD routes, Schema Sentinel for safe schema evolution, and simplified container secret authentication.

Added

  • Schema CRUD endpoints — PUT /v1/schemas/{collection}, GET /v1/schemas/{collection}/versions
  • Schema rollback endpoint — POST /v1/schemas/{collection}/rollback with version targeting
  • Document CRUD routes — create, read, update documents within collections
  • Schema Sentinel — automated DDL risk classification (S-100 safe through P-400 prohibited)
  • SchemaDiffEngine — structural change detection between schema versions
  • ChangeClassifier with taxonomy codes for safe, migration, destructive, and prohibited changes
  • PostgresTableInspector — data-aware destructive change verification
  • SentinelPipeline — full diff → classify → inspect → verdict pipeline
  • Agent mail schema — standalone relational schema for agent communication
  • Agent mail performance indexes

Changed

  • Authentication simplified from HMAC to container secret (Authorization: Secret {key})
  • Query size limit raised to 512KB for schema operations

vibesql-mcp v1.0.3

PATCH
March 10, 2026

MCP server for AI coding tools — connect Claude Code, OpenCode, or Codex CLI to a VibeSQL database.

Added

  • DDL safety classification in client (classifyDdl() method)
  • ALTER TABLE support with injection prevention
  • getConstraints(), getIndexes(), getDependents() for schema exploration
  • getRowCount() for table statistics

v1.0.7

FEATURE
February 25, 2026

Binary relocation engine — embedded PostgreSQL now works on any system regardless of temp directory paths. Also trims npm package from 62MB to 8KB.

Fixed

  • Linux: initdb failed with could not access file "$libdir/dict_snowball" — extension libraries were not being extracted on Linux
  • Linux: PostgreSQL could not find timezone files — compiled-in PKGDATADIR path didn't match the runtime temp extraction directory

Added

  • Binary relocation engine — scans each extracted binary for compiled-in install paths and patches them in-place (null-padded) to point at the actual extraction directory
  • Patches all 9 PostgreSQL baked-in paths: share, share/locale, share/man, share/doc, lib, include, include/server, etc, bin
  • Embedded plpgsql.so and dict_snowball.so for Linux — required by initdb post-bootstrap

Changed

  • Temp directory prefix shortened from vibe-postgres-* to vb-* for path length compatibility
  • npm package trimmed from 62MB / 137 files to 8KB / 6 files via files whitelist
  • install.js reads version from package.json instead of hardcoding

v1.0.6

PATCH
February 24, 2026

Install script version check — npm upgrades now correctly replace outdated binaries.

Fixed

  • install.js now checks the installed binary version before skipping download — previously any existing binary would skip, even if outdated
  • Upgrading via npm install -g vibesql-micro@<new> now correctly replaces the old binary

v1.0.5

PATCH
February 24, 2026

Linux initdb fix — embedded postgres.bki had CRLF line endings causing startup failure on Linux.

Fixed

  • Linux: initdb failed with input file "...postgres.bki" does not belong to PostgreSQL 16.1 on every startup
  • Root cause: postgres.bki had Windows CRLF line endings — version header read as # PostgreSQL 16\r instead of # PostgreSQL 16
  • Converted postgres.bki to Unix LF line endings in share.tar.gz

v1.0.4

FEATURE
February 23, 2026

Graceful shutdown overhaul, vibe stop command, and a new quickstart showcasing the Rust Agent Mail MCP server for multi-agent coordination on localhost.

Added

  • vibe stop command — cleanly shuts down a running instance via HTTP endpoint or PID file fallback
  • /v1/shutdown localhost-only endpoint for programmatic shutdown
  • Windows Job Object (KILL_ON_JOB_CLOSE) — guarantees child process cleanup even on crash
  • Unix process groups (Setpgid) — group kill ensures no orphaned PostgreSQL processes
  • Hello Agent Intelligence quickstart — install vibesql-micro + Rust Agent Mail MCP server, spin up a multi-agent team on localhost in 5 minutes

Fixed

  • Graceful shutdown: switched from exec.CommandContext to exec.Command so pg_ctl stop actually runs before context cancellation
  • Stop() ordering: PostgreSQL now stops before context is cancelled, preventing data loss
  • Process tree fallback: stopPostgres() kills the entire process tree, not just the main PID

v1.0.3

FEATURE
February 23, 2026

Parameterized query support — pass params alongside sql for safe, typed queries using PostgreSQL $1, $2 placeholders.

Added

  • Optional params array in request body: {"sql": "SELECT $1::text", "params": ["hello"]}
  • PostgreSQL native $1, $2, ... placeholders with automatic type inference
  • Full CRUD support: SELECT, INSERT, UPDATE, DELETE all work with params
  • Backward compatible — existing raw SQL requests without params work unchanged

v1.0.2

PATCH
February 23, 2026

Better startup diagnostics — when PostgreSQL fails to start, you now see exactly why instead of a generic timeout.

Added

  • PostgreSQL stderr output included in startup failure messages (last 20 lines)
  • Step-by-step progress logging: ExtractingInitializingStarting on portWaiting for connections
  • Real-time PostgreSQL LOG and WARNING lines shown during startup (not just FATAL/ERROR)

Fixed

  • Generic "timeout after 30s" message now shows the actual PostgreSQL error (port conflicts, permission issues, missing files)

v1.0.1

PATCH
February 22, 2026

Windows fix for the PostgreSQL /share directory resolution bug that caused startup failures on some machines.

Fixed

  • Windows: PostgreSQL resolves /share as <drive>:\share — now creates share directory on both the temp and CWD drives
  • Clear error message when drive-root write fails (suggests running as Administrator)
  • Automatic cleanup of \share and \lib directories on shutdown

v1.0.0

INITIAL RELEASE
February 22, 2026

First public release. PostgreSQL 16.1 embedded in a single binary with HTTP API. Available on npm and GitHub Releases.

Added

  • Embedded PostgreSQL 16.1 — full ACID, JSONB, arrays, all standard types
  • HTTP API at POST /v1/query — send SQL, get JSON back
  • Single binary for Windows (x64), Linux (x64), and macOS (Intel)
  • npm distribution — npx vibesql-micro downloads and runs automatically
  • Safety: UPDATE/DELETE require WHERE clause, query size limits, row count limits, 5s timeout
  • Auto-creates data directory, initializes PostgreSQL, starts HTTP server
  • Clean shutdown with Ctrl+C — stops PostgreSQL, removes temp files