# glommer/pgmicro

An in-process reimplementation of PostgreSQL, backed by a SQLite-compatible storage engine

Repository: https://github.com/glommer/pgmicro
Canonical: https://ross.abutalabs.com/products/pgmicro
Language: Rust
License: MIT
License Family: permissive
Last push: 2026-08-08T20:45:48+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 35, longevity 11
- inputs: {"age_days": 160, "days_push": 25, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1203, forks 27 (observed 2026-08-28T04:03:58.535863+00:00)

## What it is
An in-process reimplementation of PostgreSQL in Rust, backed by a SQLite-compatible storage engine, built as an experimental fork of Turso. It parses PostgreSQL SQL with PostgreSQL's own parser and compiles it to SQLite bytecode, offering an embeddable single-file database that speaks PostgreSQL.

## Use cases
- run postgres-compatible queries in an embedded single-file database
- give ai agents ephemeral scratch databases without a server
- use postgresql syntax and type system without running a postgres server
- embed a lightweight database in a rust application
- replace sqlite with postgres-compatible semantics in-process

## When to choose
- you want postgresql dialect in an embeddable, serverless database
- you need ephemeral per-task or per-user databases for agents
- you prefer rust and a single-file storage engine over a full postgres install

## When to avoid
- you need full postgres features, extensions, or production parity
- you want active development - it has merged into Turso
- you need multi-client server deployments with process-per-connection

## Facets
- artifact type: library
- maturity: maintenance
- function: database, database-driver, parser
- domain: databases, developer-tools
- platform: rust, cross-platform, embedded
- tags: postgresql, sqlite, embedded-database, turso, in-process

## Member repositories
- glommer/pgmicro (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:58.535863+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:20:30.482985+00:00, confidence not recorded.
  - readme: https://github.com/glommer/pgmicro (fetched 2026-08-28T04:03:58.535863+00:00, sha 084cec96d0e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
