Skip to content
PluginStats

@jdg32794/prettier-plugin-pgsql weekly downloads statistics

By jdg32794 · npm · Prettier plugins

Prettier plugin for PostgreSQL, powered by the Rust pgsqlfmt formatter

View on npm Fresh · Oct 18, 2026

@jdg32794/prettier-plugin-pgsql has 8 recorded weekly downloads on npm, a change of -92.4% over the past 7 days, ranking #2087 of 2,322 tracked listings.

Weekly downloads
8
Official API · Oct 18, 2026
7-day growth
-92.4%
-97 weekly downloads
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#2087
Among tracked npm listings

About @jdg32794/prettier-plugin-pgsql

@jdg32794/prettier-plugin-pgsql

A Prettier plugin for PostgreSQL. Formatting is done by the Rust pgsqlfmt crate, compiled to a native Node addon with napi-rs.

-- before
select a,b from t where x=1;

-- after
SELECT
  a,
  b
FROM t
WHERE x = 1;

Install

npm install --save-dev prettier @jdg32794/prettier-plugin-pgsql

Requires Prettier 3.

Prerelease: the current next build (0.1.0-alpha.x) only includes a binary for macOS on Apple Silicon (arm64). Binaries for macOS x64, Linux x64 (glibc) and Windows x64 are planned for the first stable release.

Usage

Add the plugin to your Prettier config:

{
  "plugins": ["@jdg32794/prettier-plugin-pgsql"]
}

Files ending in .sql, .pgsql and .psql are then formatted automatically:

npx prettier --write "**/*.sql"

To use the plugin for other files, set "parser": "postgresql" in an override.

Statements that pgsqlfmt cannot parse are left unchanged.

Options

OptionDefaultDescription
pgKeywordCase"upper"Case of SQL keywords: "upper", "lower" or "preserve".
pgCommaStyle"trailing"Comma position when items go one per line: "trailing" or "leading".

Prettier's own printWidth and tabWidth are respected (tabWidth minimum 2).

{
  "plugins": ["@jdg32794/prettier-plugin-pgsql"],
  "pgKeywordCase": "lower",
  "pgCommaStyle": "leading"
}

Using the formatter directly

The native binding can also be used without Prettier:

const { formatSql } = require('@jdg32794/prettier-plugin-pgsql/index.js')

formatSql('select 1', { maxWidth: 80, indentWidth: 2, keywordCase: 'upper', commaStyle: 'trailing' })

Development

Requires a recent Rust toolchain and Node.js.

yarn install
yarn build   # builds prettier-plugin-pgsql.<platform>.node
yarn test

License

MIT

Description from the npm listing.

  • prettier
  • prettier-plugin
  • postgresql
  • postgres
  • pgsql
  • sql
  • formatter
  • napi-rs

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@jdg32794/prettier-plugin-pgsql weekly downloads on npm, last 90 days: 8 weekly downloads as of Oct 18, 2026.@jdg32794/prettier-plugin-pgsqlWeekly downloads on npm · Last 90 days8downloads / week020406080100120Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@jdg32794/prettier-plugin-pgsql weekly downloads on npm, last 90 days: 8 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

@jdg32794/prettier-plugin-pgsql weekly downloads growth on npm: -92.4% over 7 days, 30-day growth unavailable, 90-day growth unavailable.@jdg32794/prettier-plugin-pgsqlWeekly downloads growth on npm8downloads / week now7-day growth-97 weekly downloads-92.4%30-day growth+8 weekly downloadsInsufficient history90-day growth+8 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@jdg32794/prettier-plugin-pgsql weekly downloads growth on npm: -92.4% over 7 days, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@jdg32794/prettier-plugin-pgsql npm ranking history: currently #2087 (by weekly downloads).@jdg32794/prettier-plugin-pgsqlnpm ranking · by weekly downloads · Last 90 days#2087current rank#2084#2086#2088#2090#2092#2094#2096#2098#2100Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@jdg32794/prettier-plugin-pgsql npm ranking history: currently #2087 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 105, #11 (overall #2,091)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 7, #13 (overall #133)
Prettier plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for @jdg32794/prettier-plugin-pgsql
Date (UTC)Weekly downloadsChange vs. previous
8+5
3-1
4-2
6-5
11-3
140
14-91
105+2
103+1
102+3
99+5
94+3
910
91—

Similar npm Prettier plugins plugins

All 20 @jdg32794/prettier-plugin-pgsql alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@jdg32794/prettier-plugin-pgsql. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.