{"adoption": {"forks": 116, "observed_at": "2026-08-28T04:06:40.823388+00:00", "stars": 2360}, "canonical_url": "https://ross.abutalabs.com/products/pg-mem", "card": {"archived": false, "artifact_type": "library", "description": "An in memory postgres DB instance for your unit tests", "domain": ["databases", "testing", "developer-tools"], "enriched": true, "function": ["database", "testing", "mocking", "parser"], "health_score": 70, "homepage": null, "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["oguimbal/pg-mem"], "name": "oguimbal/pg-mem", "platform": ["browser"], "pushed_at": "2026-02-26T11:33:42+00:00", "repo": "oguimbal/pg-mem", "stars": 2360, "tags": ["in-memory-database", "postgresql-emulation", "sql-parser", "unit-testing", "test-doubles", "nodejs", "deno", "typescript"], "topics": ["hacktoberfest", "pg-promise", "typeorm", "node-postgres", "pg-mem", "postgresql", "typescript", "unit-testing", "unit-tests", "nodejs", "mocha", "deno", "node", "slonik", "sql-syntax-parser"], "urls": [], "use_cases": ["mock a postgres database in unit tests", "run sql queries in memory without a real postgres server", "test typeorm or pg-promise code without a database", "create restore points and roll back database state between tests", "parse and validate postgres sql syntax in javascript"], "what_it_is": "pg-mem is an in-memory emulation of a PostgreSQL database written in TypeScript, usable in Node.js or the browser. It lets you run SQL queries against a fake Postgres instance, making it ideal for mocking the database layer in unit tests.", "when_to_avoid": ["you need full postgres feature coverage or complex query fidelity", "you are running integration tests against a real database", "your sql uses advanced postgres syntax that may not be supported"], "when_to_choose": ["you want fast, dependency-free database mocks for unit tests", "your tests use pg-promise, typeorm, node-postgres, or slonik", "you need to run simple postgres queries in a browser or deno"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pg-mem", "repo": "oguimbal/pg-mem", "role": "main", "score": 54}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:36:12.709950+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4cc36a19f23e846c2807ad8a2f2f8fca1c3234bc3f1ec8e8036d86f540309267", "fetched_at": "2026-08-28T04:06:40.823388+00:00", "kind": "readme", "missing": false, "url": "https://github.com/oguimbal/pg-mem"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:36:12.709950+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4cc36a19f23e846c2807ad8a2f2f8fca1c3234bc3f1ec8e8036d86f540309267", "fetched_at": "2026-08-28T04:06:40.823388+00:00", "kind": "readme", "missing": false, "url": "https://github.com/oguimbal/pg-mem"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:36:12.709950+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4cc36a19f23e846c2807ad8a2f2f8fca1c3234bc3f1ec8e8036d86f540309267", "fetched_at": "2026-08-28T04:06:40.823388+00:00", "kind": "readme", "missing": false, "url": "https://github.com/oguimbal/pg-mem"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:36:12.709950+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4cc36a19f23e846c2807ad8a2f2f8fca1c3234bc3f1ec8e8036d86f540309267", "fetched_at": "2026-08-28T04:06:40.823388+00:00", "kind": "readme", "missing": false, "url": "https://github.com/oguimbal/pg-mem"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:36:12.709950+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4cc36a19f23e846c2807ad8a2f2f8fca1c3234bc3f1ec8e8036d86f540309267", "fetched_at": "2026-08-28T04:06:40.823388+00:00", "kind": "readme", "missing": false, "url": "https://github.com/oguimbal/pg-mem"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:36:12.709950+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4cc36a19f23e846c2807ad8a2f2f8fca1c3234bc3f1ec8e8036d86f540309267", "fetched_at": "2026-08-28T04:06:40.823388+00:00", "kind": "readme", "missing": false, "url": "https://github.com/oguimbal/pg-mem"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:40.823388+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:36:12.709950+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4cc36a19f23e846c2807ad8a2f2f8fca1c3234bc3f1ec8e8036d86f540309267", "fetched_at": "2026-08-28T04:06:40.823388+00:00", "kind": "readme", "missing": false, "url": "https://github.com/oguimbal/pg-mem"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:36:12.709950+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4cc36a19f23e846c2807ad8a2f2f8fca1c3234bc3f1ec8e8036d86f540309267", "fetched_at": "2026-08-28T04:06:40.823388+00:00", "kind": "readme", "missing": false, "url": "https://github.com/oguimbal/pg-mem"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:36:12.709950+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4cc36a19f23e846c2807ad8a2f2f8fca1c3234bc3f1ec8e8036d86f540309267", "fetched_at": "2026-08-28T04:06:40.823388+00:00", "kind": "readme", "missing": false, "url": "https://github.com/oguimbal/pg-mem"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:36:12.709950+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "4cc36a19f23e846c2807ad8a2f2f8fca1c3234bc3f1ec8e8036d86f540309267", "fetched_at": "2026-08-28T04:06:40.823388+00:00", "kind": "readme", "missing": false, "url": "https://github.com/oguimbal/pg-mem"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 69, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2239, "days_push": 188, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 54, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}