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

@dain-os/e2e-auth

v0.1.1

Published

Mints a real Supabase session and writes a Playwright storage-state for seeded E2E/MCP logins (host-scoped to localhost, port-agnostic).

Readme

@dain-os/e2e-auth

Mints a real Supabase session for a user and writes a Playwright storage-state file, so --isolated Playwright MCP sessions start already logged in — no interactive SSO/MFA. The cookie is reproduced via the same @supabase/ssr version the apps use, host-scoped to localhost so it works across every evergreen dev port.

Shared dev-tooling package — install it in any repo whose apps you want to drive with seeded Playwright/MCP logins.

Usage

npm i -D @dain-os/e2e-auth
npx e2e-auth-seed <herbert|mabel|edna> <email> [envFile]
# e.g. from a consuming repo root:
npx e2e-auth-seed herbert [email protected]

envFile resolution (first hit wins):

  1. the [envFile] CLI arg
  2. $E2E_AUTH_ENV_FILE
  3. <cwd>/apps/web/.env.local — works when run from a consuming repo's root
  4. ~/dev/eoc-herbert/apps/web/.env.local — dev-machine fallback

The chosen file must carry all three projects' Supabase keys. Output: ~/.cache/e2e-auth/<project>.json (mode 600).

Playwright MCP integration

launch.sh <project> <email> <outdir> [envFile] re-mints the session when the saved state is stale (>45 min) and then execs @playwright/mcp with --storage-state. It degrades gracefully: if seeding fails it reuses any existing state, and if there's none it launches unseeded so the MCP never hard-fails to start. Wire it into ~/.claude.json as a stdio MCP server.

Tenant scoping

herbert is tenant-scoped — its RLS reads tenant_id from the JWT (app_metadata.tenant_id), so seed.mjs requires that claim (requiresTenant: true) and fails loudly if it's missing. mabel/edna gate on home membership keyed on auth.uid() instead, so they don't require a tenant_id claim and the seeder just notes its absence.

Notes

  • For MCP use, pass an explicit envFile as the 4th arg to launch.sh so the seeder never depends on the caller's cwd (the MCP host's cwd is unspecified).
  • Consuming a published build requires @dain-os/e2e-auth to be published to the registry (like other @dain-os/* packages); until then it resolves via the workspace.