# jawj/zapatos

Zero-abstraction Postgres for TypeScript: a non-ORM database library

Repository: https://github.com/jawj/zapatos
Canonical: https://ross.abutalabs.com/products/zapatos
Homepage: https://jawj.github.io/zapatos/
Language: TypeScript
License: NOASSERTION
License Family: other
Topics: postgresql, postgres, postgresql-database, postgres-database, typescript, orm
Last push: 2025-09-19T08:59:31+00:00

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

## Adoption (not part of the score)
Stars 1402, forks 48 (observed 2026-08-28T04:04:37.726645+00:00)

## What it is
Zapatos is a TypeScript library providing zero-abstraction, fully typed access to Postgres. It generates a TypeScript schema from your database and offers typed helpers for arbitrary SQL, CRUD, nested LATERAL JOINs, and transactions.

## Use cases
- write type-safe SQL queries in TypeScript against Postgres
- generate TypeScript types from a Postgres schema
- run typed CRUD queries without an ORM
- build nested JSON results from LATERAL JOINs
- manage and retry Postgres transactions in TypeScript
- avoid ORM abstractions while keeping type safety

## When to choose
- you know SQL and want Postgres-first, type-safe queries in TypeScript
- you want automatic types generated from your actual database schema
- you need complex nested JSON query results without an ORM
- you find traditional ORMs too heavy or leaky

## When to avoid
- you need multi-database support beyond Postgres
- you want a full ORM with migrations, models, and change tracking
- your project is not TypeScript or JavaScript with type checking
- you prefer query-builder abstractions over raw SQL

## Facets
- artifact type: library
- maturity: active
- function: database, database-driver, orm
- domain: databases, backend, web-development, developer-tools
- platform: cli
- tags: postgres, type-safety, sql, non-orm, tagged-templates, schema-generation, lateral-joins, transactions, nodejs, typescript

## Member repositories
- jawj/zapatos (main) score 51

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:37.726645+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-30T04:38:59.007494+00:00, confidence not recorded.
  - readme: https://github.com/jawj/zapatos (fetched 2026-08-28T04:04:37.726645+00:00, sha a33cc2b026b9)
  - homepage: https://jawj.github.io/zapatos/ (fetched 2026-08-29T11:53:06.655083+00:00, sha aedcfbffb9fc)
  - registry_npm: https://registry.npmjs.org/zapatos (fetched 2026-08-29T11:53:06.668781+00:00, sha 3bf6eaa2ed49)
- Data as of 2026-08-30T08:39:29.467469+00:00.
