Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

postgrelize

Latest version: v1.9.1

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: kuznietsov48
0 Stars
0 Forks
17 Versions
1.2K Downloads
TypeScript Repo language

Scan summary

postgrelize was last scanned on 25 Nov 2026 at version 1.9.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 17 versions; the latest 5 were published within 2 days (24 and 25 Nov 2026).
  • Findings: No rules fired in version 1.9.1.
  • Downloads: 1,200 downloads.

Versions

17 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.9.1 LATEST 25 Nov 2026 No rules fired
1.9.0 25 Nov 2026 No rules fired
1.8.5 25 Nov 2026 No rules fired
1.8.4 24 Nov 2026 Not shown
1.8.3 24 Nov 2026 Not shown

No rules fired in 1.9.1

Findings

Findings for v1.9.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.9.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Why postgrelize

  • Drop-in for Sequelize v6. Sequelize, Model, DataTypes, Op, hooks, validations, scopes, paranoid models, associations and include, transactions, QueryInterface and sync behave like v6. A differential test suite runs every scenario on both libraries and compares results. The TypeScript types follow the v6 declarations too (Model, ModelStatic, query<T>, association mixins), checked by a type-level parity test.
  • PostgreSQL first. One dialect, so every feature can use PostgreSQL fully instead of the lowest common denominator.
  • Fast. In the library-overhead benchmark (no database) most operations take 3–10× less CPU time than on Sequelize v6, and a where with an Op.in of 5 000 values 18× less. Reads of many rows or with hasMany / belongsToMany includes gain 1.3–1.9×, and build + toJSON is on par. The table, the method and tuning tips are on the Performance page.
  • Safe by default. Values are always bound parameters; identifiers are quoted; order directions, cast types and operators are allow-listed.
  • Typed and documented. Strict TypeScript, TSDoc on every export, API reference.
What you get on top of Sequelize v6

Everything below is new in postgrelize; Sequelize v6 behaviour never changes. Each area links to its guide page and a runnable example. The full list, with PostgreSQL versions, is on the extensions page.

  • Upserts and RETURNING: onConflict with any target, expression updates, WHERE, DO NOTHING; Model.insert() with wasInserted; returningOld (PostgreSQL 18). Guide · upserts · returning-old
  • Bulk writes and COPY: bulkCreate({ unnest: true }), MERGE, UPDATE ... FROM, DELETE ... USING, INSERT ... SELECT, COPY FROM / COPY TO streaming. Guide · bulk-writes · merge-returning · copy
  • Advanced queries: CTEs and WITH RECURSIVE, set operations, LATERAL, subqueries, DISTINCT ON, window functions, keyset pagination, TABLESAMPLE, JSON_TABLE, operator and full-text search helpers, server-side cursors. Guide · advanced-queries · operator-helpers · json-table
  • Sessions and scaling: LISTEN/NOTIFY, SET LOCAL for RLS, advisory locks, DEFERRABLE transactions, statementTimeout, read replicas, named prepared statements. Guide · sessions · connection
  • Decorators: @Table, @Column, associations and hook decorators with sequelize.addModels, in TC39 and legacy modes. Guide · decorators
  • Schema objects, constraints and indexes: sequences, views, materialized views, RLS policies, functions, triggers, partitioning, expression indexes, EXCLUDE, temporal constraints. Schema objects · Constraints and indexes · schema-objects · constraints-indexes
  • Data types: identity and generated columns, INTERVAL, HSTORE, LTREE, geometric types, multiranges, composite types, PostGIS as GeoJSON, Standard Schema validation. Guide · types · geometry · multirange · composite · postgis

Looking for one option or method? Use the option reference and the API reference.

Install

npm install postgrelize pg

The package is published on npmjs.com as postgrelize. The former GitHub Packages name @tormozz48/postgrelize is deprecated: switch the dependency and your imports to postgrelize.

For LLMs and agents

The package ships llm/USAGE.md (a compact, tested usage guide) and an Agent Skill in skills/postgrelize/, next to the typed .d.ts files with TSDoc. The docs site publishes llms.txt and llms-full.txt. See Using with LLMs and agents.

Quick start

Define a model, sync it and run a first query: Getting started (runnable: getting-started.ts). Coming from Sequelize? Read Migrating from Sequelize.

Guides for the Sequelize v6 API: models and data types · associations · querying · transactions · hooks and validation · errors · connection · schema and sync.

All examples live in docs/examples; each one runs in CI.

Compatibility

  • PostgreSQL 16, 17 and 18 (tested in CI); some features need newer servers: MERGE ... RETURNING 17+, returningOld 18+.
  • Node.js 20+ (tested on 20, 22 and 24), pg driver.
  • A few behaviours intentionally differ from Sequelize v6 where v6 is wrong for PostgreSQL (e.g. describeTable defaults to current_schema() instead of public); see Sequelize issues fixed in postgrelize for the full list.

Links

Development

npm ci
npm run db:up        # PostgreSQL 16 in Docker on port 54329
npm run lint && npm run format:check && npm run typecheck
npm test             # unit + integration + differential (vs sequelize@6)
npm run build && npm run test:build
npm run llm:build    # regenerate llm/USAGE.md and skills/ from docs/llm + docs/examples/llm-usage.ts
npm run docs         # documentation site into docs/.vitepress/dist (npm run docs:dev to preview)
npm run test:coverage # coverage report into coverage/

The performance gate (bench/) also runs on a GitHub runner: the manual workflow bench gate compares a ref with the latest tag.

Contribution rules (architecture, tests, documentation sync, releases) are in AGENTS.md. Design records, ADRs and reviews live in .10x/.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm postgrelize

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229