Ross ROSS = Recommend OSS · open-source software intelligence for agents

hexclave/pgmock

In-memory Postgres for unit/E2E tests observed · 2026-08-28

github.com/hexclave/pgmock · homepage · JavaScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

49/100

  • Activity 54
  • Release rhythm 35
  • Longevity 63

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 887
  • days_rel: n/a
  • days_push: 281
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1231 stars · 24 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

pgmock is an in-memory PostgreSQL mock server for unit and E2E tests that runs entirely in WebAssembly on Node.js and in the browser, with no external dependencies. It emulates a full Postgres server via an x86 emulator to achieve feature parity with production PostgreSQL environments.

Use cases

  • run an in-memory postgres database for unit tests
  • mock postgres in e2e tests without docker
  • use a real postgres server in the browser for testing
  • test node-postgres clients against a disposable database
  • avoid discrepancies between test and production postgres environments

When to choose

  • you need full Postgres feature parity (connections, extensions) in tests
  • you want a zero-dependency, in-process Postgres for Node.js or browser tests
  • performance of the database is not critical but correctness is

When to avoid

  • you only need a lightweight browser-side SQL database (consider pglite)
  • test suite performance is critical, since x86 emulation is slow
  • you need a production-grade persistent Postgres instance

Facets

library · maturity active

testing mocking database e2e-testing testing databases developer-tools browser wasm in-memory-postgres wasm unit-testing postgres-mock test-doubles nodejs javascript

1 source

Member repositories

RepositoryRoleHealth v2
hexclave/pgmockmain49

For agents

markdown · JSON · MCP: product_card(name="hexclave/pgmock")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem