New advertisers: 50% off your first month with code FIRSTMONTHSee slots
reason-machines avatar

Pgmicro Postgres Sqlite

Embeddable in-process PostgreSQL that stores data in SQLite-compatible files, with no server process required.

skills.sh installs
764
GitHub stars
98
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers full PostgreSQL SQL via the real PG parser, compiled to SQLite bytecode and run by Turso
  • Includes a CLI (pg-micro, pgmicro), a WASM-based JavaScript/TypeScript SDK, and an optional wire-protocol server
  • Produces standard SQLite .db files readable by any SQLite tool, with pg_class, pg_attribute, and pg_type exposed as virtual tables
  • Designed for embedding in applications and for per-request, isolated in-memory databases used by AI agents or sandboxes

Install

$ npx -y skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

pgmicro

Skill by ara.so — Daily 2026 Skills collection.

pgmicro is an in-process reimplementation of PostgreSQL backed by a SQLite-compatible storage engine. It parses PostgreSQL SQL using the real PostgreSQL parser (libpg_query) and compiles it directly to SQLite VDBE bytecode, executed by Turso. The result is a fast, embeddable, single-file (or in-memory) database that speaks PostgreSQL — no server process required.

Key capabilities

  • Full PostgreSQL SQL syntax (via the actual PG parser)
  • SQLite-compatible .db file format (readable by any SQLite tool)
  • JavaScript/TypeScript SDK (WASM-based, runs in Node.js and browsers)
  • PostgreSQL wire protocol server mode (connect with psql, ORMs, etc.)
  • Dialect switching: access the same database with PG or SQLite syntax
  • PostgreSQL system catalog virtual tables (pg_class, pg_attribute, pg_type, etc.)

Installation

CLI (Node.js)

# Run without installing
npx pg-micro

# Install globally
npm install -g pg-micro
pg-micro myapp.db

JavaScript/TypeScript SDK

npm install pg-micro

From source (Rust)

Details

Repository
github.com/reason-machines/trending-skills
Categories
Databases, AI Agents & LLM Apps
First seen
May 16, 2026

More from reason-machines/trending-skills

All 163

Similar to Pgmicro Postgres Sqlite

More Databases