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

@doxajs/auth-postgres

v0.1.0-alpha.33

Published

First-party PostgreSQL email/password, session, and bearer authentication for Doxa.

Readme

@doxajs/auth-postgres

Controlled-adoption prerelease: Publicly downloadable under Apache-2.0; Midtown Home Improvements is the sole supported consumer. External use is permitted without compatibility, support, warranty, roadmap, or production-readiness commitments.

Framework-owned PostgreSQL authentication for Doxa: existing identity models, Argon2id credentials, opaque browser sessions, opaque bearer tokens, verification and recovery challenges, durable abuse controls, opt-in native impersonation, audit evidence, and existing-table mapping.

Authentication identities, sessions, access tokens, challenges, and authentication context expose Instant values from @doxajs/core; JavaScript Date never crosses the application-facing auth boundary. PostgreSQL stores those instants in UTC, and the adapter keeps any driver-level Date conversion private.

pnpm add @doxajs/auth-postgres

The package includes forward-only authentication migrations. Review the repository security policy before production use; Doxa is currently pre-1.0.

Mapped authentication treats the configured external password column as the only credential authority. credentials.upgrade defaults to never; the only writable policy is an explicit in-place Doxa Argon2id replacement using compare-and-swap in the session/audit transaction. Password and verification state never use auxiliary mapped-auth tables. External identity mappings enable Doxa email verification only by explicitly mapping a native verification timestamp column; otherwise that flow is disabled. Dropping the alpha sidecar migrations is a pre-1.0 re-baseline: recreate prerelease databases or manually retire leftover mapped-auth sidecar tables.

Applications configure authentication through framework.auth.identity in root app.config.ts and import only Auth from @doxajs/core. The concrete adapter is intentionally available from @doxajs/auth-postgres/framework for generated framework code and migration from older alpha applications. Direct PostgresAuth imports from the package root must move to that framework subpath; direct table mappings should move into the compiled application configuration.

Native impersonation uses framework.auth.impersonation. It rotates the owning opaque session on start and stop, records target/reason/expiry, preserves original identity as initiator and authentication evidence, and reuses compiled target-eligibility predicates. Applications must declare and grant accounts.impersonate; Doxa provides no default administrator grant.