Package
pg-to-ts
Generate TypeScript-friendly interfaces and constants from (postgres) SQL database schema
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 2.6k
- +12% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 4
- Direct, from package.json
- Last release
- 3 years ago
- v4.1.1
- GitHub stars
- 126
- 20 forks
- Open issues / PRs
- 11 / 7
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
2,604 downloads last week, 11,947 in the last month. The 12-month change of +12% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 4.1.1, 29 Aug 20233 years ago
- First published
- -
- Last push to GitHub
- 26 Nov 20231,033 days before the snapshot
- Repository archived
- No
- Open issues
- 11
- Open pull requests
- 7
- Commits, last 52 weeks
- 0
- Dependents on npm
- 0
Major versions
-
Recent releases
-
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=8.15.1
- Runtimes
- -
- Unpacked size (npm)
- 114 kB
- Dependencies (4)
yargslodashpg-promisetypescript-formatter- Peer dependencies (1)
typescript
npm install pg-to-ts- jsDelivr
https://cdn.jsdelivr.net/npm/pg-to-ts@4.1.1/ - unpkg
https://unpkg.com/pg-to-ts@4.1.1/ - esm.sh
https://esm.sh/pg-to-ts@4.1.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @effect/sql-pglite | 38.1k | - | 1 month ago | ESM only | - |
| prostgles-server | 5.7k | - | today | CommonJS | - |
| pg-logical-replication | 33.1k | - | 3 months ago | CommonJS | - |
| @fedify/postgres | 6.3k | - | 3 days ago | ESM + CommonJS | - |
| slonik | 112k | - | 3 days ago | ESM only | - |
| windmill-client | 91.8k | - | - | ESM + CommonJS | - |
| @slonik/types | 55.2k | - | 3 days ago | ESM only | - |
| @slonik/sql-tag | 52.8k | - | 3 days ago | ESM only | - |
Indexability: Not indexed (discovery only): downloads_week 2604 < 10000.