npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@reventlessdev/reventless-postgres

v3.0.0-alpha.20

Published

Postgres storage backend for Reventless (classic + DCB event logs, query DB, change feed). Connection-string only — RDS/Aurora, any managed provider, or a local container.

Downloads

4,662

Readme

npm License: Apache-2.0 Docs

@reventlessdev/reventless-postgres

⚠️ Alpha. APIs and on-disk formats can change without notice between releases. Pin exact versions and expect breaking changes.

The Postgres storage backend for Reventless — a spec-driven, event-sourced CQRS framework written in ReScript. It implements the core storage adapters (classic and DCB event logs, the query database, and change feeds) over a plain Postgres connection. It carries no IaC/provider SDK dependency: it connects by connection string, so it runs against RDS/Aurora, any managed provider, or a local container.

What it provides

ReScript modules, consumed by adding the package to your rescript.json dependencies:

  • PgDriver — the node-postgres (pg) binding (pool/client). Accepts a full connectionString or discrete fields, with SSL and rotating-secret (password-provider) support.
  • PgSchema — an idempotent schema + migration runner (ensureSchema(pool)), safe to run on every startup and concurrently across processes.
  • EventLogStorage_Postgres — the classic optimistic-concurrency event log (event_log / snapshot).
  • DcbEventLogStorage_Postgres — the DCB (Dynamic Consistency Boundary) event log with a global position sequence and a concurrency-critical dcb_append.
  • QueryDbStorage_Postgres — read-side storage over JSONB qdb_<name> tables.
  • QueryEnginePostgres — compiles the core QueryEngine query/scan AST down to SQL, pushing filters into the database.
  • EventLogChangeFeed / PgChangeFeed — checkpointed change feeds for the classic and DCB logs, using an xmin-fenced read plus LISTEN/NOTIFY (pg_notify) for near-real-time wakeup. A documented public consumer surface.

The *_Ops modules hold the runtime-pure operations (no Pulumi import) so a deployed handler's ESM graph stays clean; the wrapper modules add the deploy-time adapter shape.

Where it fits

reventless-postgres is a storage adapter for the Reventless framework. reventless-core is provider-agnostic; this package supplies the Postgres implementation of its event-log, query-db, and change-feed interfaces:

Because it depends only on pg (plus reventless-core, reventless-infra, and reventless-spec), the platform package that embeds it owns provisioning; this package only needs a reachable Postgres.

Install

pnpm add @reventlessdev/reventless-postgres

Then register it as a ReScript dependency in rescript.json:

{
  "dependencies": ["@reventlessdev/reventless-postgres"]
}

Requires ReScript ^12.3.0 (peer dependency).

Links

License

Apache-2.0