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

@bostrino/db

v0.1.4

Published

Bostrino platform: pooled/direct Postgres clients, schema-per-app provisioning, and the migration runner.

Readme

@bostrino/db

Connection client, migration runner, and schema/role provisioning helpers for the bostrino-one Neon project.

Neon project

  • Org: Bostrino (org-late-lake-43545426)
  • Project: bostrino-one (nameless-shadow-28494287), region aws-eu-central-1, Postgres 17
  • Owner role: neondb_owner — the migration credential. Full neon_superuser membership (CREATEROLE, CREATEDB, etc). Used only over the direct connection, only by pnpm migrate, never by the deployed app.

Branches

  • main — the real database. bostrino-one-run's role_platform connects here over the pooled endpoint. Migrations are applied here explicitly (pnpm migrate -- --branch main).
  • dev — created for the future build machine (see the architecture table in the root README.md: the build machine reaches "Neon dev branch only"). Not wired into anything yet — no migrations run against it, nothing reads or writes to it. It exists now so the build machine's eventual isolation (no production secrets, no production database) has a real branch to target instead of being designed against a placeholder.

Ephemeral branches (isolation-test-<timestamp>, created and destroyed automatically by src/isolation.test.ts) are not listed here — they don't outlive a single test run.

Migrations

pnpm migrate -- --branch <name> [--push-fly-secret]
  • --branch is required, always. There is no default, so it's structurally impossible to hit the wrong target by omission.
  • The direct/migration connection string is fetched live from the neon CLI for the given branch and role (default neondb_owner) — it is never stored in a file or env var for this path.
  • --push-fly-secret only matters the first time role_platform (or a future app role) is created — it pushes the freshly generated password straight to fly secrets set on bostrino-one-run, entirely in-memory, never printed. Omit it to just apply schema/role changes without touching Fly.
  • Re-running is always safe — already-applied migrations are skipped (tracked in public.schema_migrations).

For local development against your own branch instead of bostrino-one, copy .env.example to .env.local and set MIGRATION_DATABASE_URL there.

Tests

pnpm test runs the pure unit tests (provision.test.ts) plus isolation.test.ts, which requires the neon CLI to be authenticated in the running environment — it creates a real ephemeral Neon branch, proves the five isolation assertions against it, and deletes the branch afterward regardless of outcome. It never touches main.