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

@videntia/review-stack

v0.0.1

Published

Multi-slot Docker dev stack (api/web/db) with per-PR port isolation, hot reload, idempotent up/down/migrate/seed. Runtime-agnostic (bun, pnpm, npm).

Readme

@videntia/review-stack

Multi-slot Docker dev stack — bring up an isolated web + api + db per PR with hot reload, deterministic port allocation, and one-command teardown.

Built on top of docker compose. Runtime-agnostic — works under bun, pnpm, npm.

Why

Reviewing PRs locally means spinning up a fresh DB + API + web instance per branch without colliding ports. review-stack does port math + project naming + lifecycle commands so you don't.

Install

# bun
bun add -d @videntia/review-stack

# pnpm
pnpm add -D @videntia/review-stack

# npm
npm i -D @videntia/review-stack

Or one-shot:

bunx @videntia/review-stack up
pnpm dlx @videntia/review-stack up
npx @videntia/review-stack up

Quickstart

# 1. scaffold config + a runnable sample compose
review-stack init --sample --prefix myapp-review

# 2. start (uses current PR number from `gh pr view`, else fallback)
review-stack up

# 3. inspect
review-stack ps
review-stack logs --service api --follow

# 4. teardown
review-stack down            # keep volumes
review-stack down --volumes  # drop volumes
review-stack reset           # nuke + restart

Port allocation

web = base + (slot % modulus) * stride
api = web + 1
db  = web + 2

Defaults: base=10000, stride=10, modulus=5554. Slot = PR number, or fallbacks.main on main, fallbacks.noPr otherwise.

| PR | web | api | db | |-------|-------|-------|-------| | 7 | 10070 | 10071 | 10072 | | 230 | 12300 | 12301 | 12302 | | 1234 | 22340 | 22341 | 22342 |

Config (review.config.json)

{
  "projectPrefix": "myapp-review",
  "composeFile": "docker-compose.review.yml",
  "services": { "web": "web", "api": "api", "db": "db" },
  "ports": { "base": 10000, "stride": 10, "modulus": 5554 },
  "fallbacks": { "main": 80, "noPr": 90 },
  "hooks": {
    "migrate": "pnpm --filter @workspace/api db:migrate",
    "seed": "pnpm --filter @workspace/api db:seed"
  }
}

Env vars exposed to your compose file and hooks:

  • REVIEW_SLOT — PR/slot number
  • REVIEW_WEB_PORT, REVIEW_API_PORT, REVIEW_DB_PORT — computed host ports
  • COMPOSE_PROJECT_NAME<prefix>-<slot> (set automatically)

Commands

| Command | Purpose | |---------|---------| | init [--sample] [--prefix] | Write review.config.json (and optional sample compose) | | up [--slot N] [--pull] | Build + start + run hooks.migrate + hooks.seed | | down [--volumes] | Stop containers; -v also drops volumes | | reset | down -v then up | | ps | docker compose ps for the active stack | | logs [--service api] [--follow] | Tail logs | | migrate | Run hooks.migrate | | seed | Run hooks.seed |

Slot resolution order: --slotREVIEW_SLOT env → gh pr view → fallback.

License

MIT