Skip to content
JS
Package

extract-pg-schema

Reads various metadata from your postgres database and return a Javascript object. This package is used by [Kanel](https://github.com/kristiandupont/kanel) to generate Typescript types and [Schemalint](https://github.com/kristiandupont/schemalint) to prov

v5.8.2, 25 Jun 2026MITCommonJSTypes: BundledDatabase clients and drivers
$ npm install extract-pg-schema

Key numbers

As of 25 Sept 2026
Weekly downloads
172.3k
+170% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
5
Direct, from package.json
Last release
2 months ago
v5.8.2
GitHub stars
61
25 forks
Open issues / PRs
3 / 10
Contributors
-
Commits, last 52 weeks
14

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300kSept 2025Mar 2026Sept 2026High 285.4k (18 Aug 2026)Low 23.8k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

172,277 downloads last week, 977,203 in the last month. The 12-month change of +170% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
5.8.2, 25 Jun 20262 months ago
First published
-
Last push to GitHub
25 Sept 2026same day as the snapshot
Repository archived
No
Open issues
3
Open pull requests
10
Commits, last 52 weeks
14
Dependents on npm
10

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=16.0.0
Runtimes
-
Unpacked size (npm)
840 kB
Dependencies (5)
pgknexramdaknex-pglitepg-query-emscripten
npm install extract-pg-schema
  • jsDelivrhttps://cdn.jsdelivr.net/npm/extract-pg-schema@5.8.2/
  • unpkghttps://unpkg.com/extract-pg-schema@5.8.2/
  • esm.shhttps://esm.sh/extract-pg-schema@5.8.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.