{"adoption": {"forks": 116, "observed_at": "2026-08-28T04:07:53.450801+00:00", "stars": 3276}, "canonical_url": "https://ross.abutalabs.com/products/pgtyped", "card": {"archived": false, "artifact_type": "library", "description": "pgTyped - Typesafe SQL in TypeScript", "domain": ["databases", "developer-tools", "web-development", "backend"], "enriched": true, "function": ["database", "database-driver", "type-system", "developer-tools"], "health_score": 92, "homepage": "https://pgtyped.dev", "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["adelsz/pgtyped"], "name": "adelsz/pgtyped", "platform": ["cross-platform"], "pushed_at": "2026-08-26T15:52:30+00:00", "repo": "adelsz/pgtyped", "stars": 3276, "tags": ["sql", "postgres", "type-safety", "query-generator", "code-generation", "raw-sql", "esm", "nodejs", "typescript"], "topics": ["postgres", "typescript", "query", "generator", "types", "postgresql", "sql", "type-safety"], "urls": [], "use_cases": ["generate TypeScript types for raw SQL queries", "use raw SQL with type safety in a Node.js app", "avoid writing an ORM schema mapping for Postgres", "prevent SQL injection when writing parameterized queries", "auto-generate query result and parameter interfaces from a live Postgres database", "write SQL in .sql files and get typed query functions"], "what_it_is": "PgTyped is a TypeScript library that generates static types for raw SQL queries against a running PostgreSQL database. It parses queries from SQL or TS files and produces typed query functions without requiring schema definitions or acting as an ORM.", "when_to_avoid": ["you need an ORM with relations, migrations, and schema management", "you use a database other than PostgreSQL", "you don't want a running database connection during development for type generation", "you need runtime query building or dynamic SQL composition"], "when_to_choose": ["you prefer writing raw SQL over query builders or ORMs", "you want compile-time type checking of query parameters and results", "your team uses PostgreSQL with TypeScript and wants minimal runtime overhead", "you want the live database schema to be the source of truth for types"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pgtyped", "repo": "adelsz/pgtyped", "role": "main", "score": 74}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:43:22.023675+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "13b736c7793e46e0580fcb8e49a9443a15cbeb5cefaec6fa90a5233bfc9edd7b", "fetched_at": "2026-08-28T04:07:53.450801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adelsz/pgtyped"}, {"content_hash": "062f3f53da9165f42f89b4c1a0b86f0853b9b36d32cdc5ee61f588cbb815eefa", "fetched_at": "2026-08-29T09:36:24.426938+00:00", "kind": "homepage", "missing": false, "url": "https://pgtyped.dev"}, {"content_hash": "f50ec97f6489fc98c05ba73de522b3da1542decb1311822dbe72ee46c2d9f377", "fetched_at": "2026-08-29T09:36:24.435832+00:00", "kind": "site_page", "missing": false, "url": "https://pgtyped.dev/docs"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:43:22.023675+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "13b736c7793e46e0580fcb8e49a9443a15cbeb5cefaec6fa90a5233bfc9edd7b", "fetched_at": "2026-08-28T04:07:53.450801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adelsz/pgtyped"}, {"content_hash": "062f3f53da9165f42f89b4c1a0b86f0853b9b36d32cdc5ee61f588cbb815eefa", "fetched_at": "2026-08-29T09:36:24.426938+00:00", "kind": "homepage", "missing": false, "url": "https://pgtyped.dev"}, {"content_hash": "f50ec97f6489fc98c05ba73de522b3da1542decb1311822dbe72ee46c2d9f377", "fetched_at": "2026-08-29T09:36:24.435832+00:00", "kind": "site_page", "missing": false, "url": "https://pgtyped.dev/docs"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:43:22.023675+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "13b736c7793e46e0580fcb8e49a9443a15cbeb5cefaec6fa90a5233bfc9edd7b", "fetched_at": "2026-08-28T04:07:53.450801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adelsz/pgtyped"}, {"content_hash": "062f3f53da9165f42f89b4c1a0b86f0853b9b36d32cdc5ee61f588cbb815eefa", "fetched_at": "2026-08-29T09:36:24.426938+00:00", "kind": "homepage", "missing": false, "url": "https://pgtyped.dev"}, {"content_hash": "f50ec97f6489fc98c05ba73de522b3da1542decb1311822dbe72ee46c2d9f377", "fetched_at": "2026-08-29T09:36:24.435832+00:00", "kind": "site_page", "missing": false, "url": "https://pgtyped.dev/docs"}], "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:07:53.450801+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:43:22.023675+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "13b736c7793e46e0580fcb8e49a9443a15cbeb5cefaec6fa90a5233bfc9edd7b", "fetched_at": "2026-08-28T04:07:53.450801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adelsz/pgtyped"}, {"content_hash": "062f3f53da9165f42f89b4c1a0b86f0853b9b36d32cdc5ee61f588cbb815eefa", "fetched_at": "2026-08-29T09:36:24.426938+00:00", "kind": "homepage", "missing": false, "url": "https://pgtyped.dev"}, {"content_hash": "f50ec97f6489fc98c05ba73de522b3da1542decb1311822dbe72ee46c2d9f377", "fetched_at": "2026-08-29T09:36:24.435832+00:00", "kind": "site_page", "missing": false, "url": "https://pgtyped.dev/docs"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:43:22.023675+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "13b736c7793e46e0580fcb8e49a9443a15cbeb5cefaec6fa90a5233bfc9edd7b", "fetched_at": "2026-08-28T04:07:53.450801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adelsz/pgtyped"}, {"content_hash": "062f3f53da9165f42f89b4c1a0b86f0853b9b36d32cdc5ee61f588cbb815eefa", "fetched_at": "2026-08-29T09:36:24.426938+00:00", "kind": "homepage", "missing": false, "url": "https://pgtyped.dev"}, {"content_hash": "f50ec97f6489fc98c05ba73de522b3da1542decb1311822dbe72ee46c2d9f377", "fetched_at": "2026-08-29T09:36:24.435832+00:00", "kind": "site_page", "missing": false, "url": "https://pgtyped.dev/docs"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:43:22.023675+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "13b736c7793e46e0580fcb8e49a9443a15cbeb5cefaec6fa90a5233bfc9edd7b", "fetched_at": "2026-08-28T04:07:53.450801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adelsz/pgtyped"}, {"content_hash": "062f3f53da9165f42f89b4c1a0b86f0853b9b36d32cdc5ee61f588cbb815eefa", "fetched_at": "2026-08-29T09:36:24.426938+00:00", "kind": "homepage", "missing": false, "url": "https://pgtyped.dev"}, {"content_hash": "f50ec97f6489fc98c05ba73de522b3da1542decb1311822dbe72ee46c2d9f377", "fetched_at": "2026-08-29T09:36:24.435832+00:00", "kind": "site_page", "missing": false, "url": "https://pgtyped.dev/docs"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:53.450801+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:43:22.023675+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "13b736c7793e46e0580fcb8e49a9443a15cbeb5cefaec6fa90a5233bfc9edd7b", "fetched_at": "2026-08-28T04:07:53.450801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adelsz/pgtyped"}, {"content_hash": "062f3f53da9165f42f89b4c1a0b86f0853b9b36d32cdc5ee61f588cbb815eefa", "fetched_at": "2026-08-29T09:36:24.426938+00:00", "kind": "homepage", "missing": false, "url": "https://pgtyped.dev"}, {"content_hash": "f50ec97f6489fc98c05ba73de522b3da1542decb1311822dbe72ee46c2d9f377", "fetched_at": "2026-08-29T09:36:24.435832+00:00", "kind": "site_page", "missing": false, "url": "https://pgtyped.dev/docs"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:43:22.023675+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "13b736c7793e46e0580fcb8e49a9443a15cbeb5cefaec6fa90a5233bfc9edd7b", "fetched_at": "2026-08-28T04:07:53.450801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adelsz/pgtyped"}, {"content_hash": "062f3f53da9165f42f89b4c1a0b86f0853b9b36d32cdc5ee61f588cbb815eefa", "fetched_at": "2026-08-29T09:36:24.426938+00:00", "kind": "homepage", "missing": false, "url": "https://pgtyped.dev"}, {"content_hash": "f50ec97f6489fc98c05ba73de522b3da1542decb1311822dbe72ee46c2d9f377", "fetched_at": "2026-08-29T09:36:24.435832+00:00", "kind": "site_page", "missing": false, "url": "https://pgtyped.dev/docs"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:43:22.023675+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "13b736c7793e46e0580fcb8e49a9443a15cbeb5cefaec6fa90a5233bfc9edd7b", "fetched_at": "2026-08-28T04:07:53.450801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adelsz/pgtyped"}, {"content_hash": "062f3f53da9165f42f89b4c1a0b86f0853b9b36d32cdc5ee61f588cbb815eefa", "fetched_at": "2026-08-29T09:36:24.426938+00:00", "kind": "homepage", "missing": false, "url": "https://pgtyped.dev"}, {"content_hash": "f50ec97f6489fc98c05ba73de522b3da1542decb1311822dbe72ee46c2d9f377", "fetched_at": "2026-08-29T09:36:24.435832+00:00", "kind": "site_page", "missing": false, "url": "https://pgtyped.dev/docs"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:43:22.023675+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "13b736c7793e46e0580fcb8e49a9443a15cbeb5cefaec6fa90a5233bfc9edd7b", "fetched_at": "2026-08-28T04:07:53.450801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adelsz/pgtyped"}, {"content_hash": "062f3f53da9165f42f89b4c1a0b86f0853b9b36d32cdc5ee61f588cbb815eefa", "fetched_at": "2026-08-29T09:36:24.426938+00:00", "kind": "homepage", "missing": false, "url": "https://pgtyped.dev"}, {"content_hash": "f50ec97f6489fc98c05ba73de522b3da1542decb1311822dbe72ee46c2d9f377", "fetched_at": "2026-08-29T09:36:24.435832+00:00", "kind": "site_page", "missing": false, "url": "https://pgtyped.dev/docs"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 28}, "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": 2536, "days_push": 7, "days_rel": 537, "gap_med": 33, "n_releases_24m": 2}, "score": 74, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}