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

@hanzo/dash

v0.3.0

Published

Hanzo Base tenant-management screens — host-agnostic @hanzo/gui v7 React surface, shared by the standalone dashboard (base.hanzo.ai) and the embedded console module (console.hanzo.ai).

Readme

SuperBase Dashboard

Static SPA that the superbase Go binary embeds via go:embed and serves at /dashboard/* (with /_/tenants/* redirecting here as a legacy alias).

  • Vite + React 19 + React Router
  • @hanzo/gui v7 for all UI (no shadcn, no Radix-direct)
  • @hanzo/iam PKCE OIDC against hanzo.id
  • Talks to the local Base instance at /v1/collections/tenants/records

No Svelte. No Express. No server-side. Pure static bundle.

Build

bun install
bun run build

The output lands in dist/ — that's what the Go binary embeds. Each asset is content-hashed; dist/index.html is the SPA shell. The Go binary rewrites the <meta name="hanzo-iam-*"> tags in index.html at serve time to inject the right environment's IAM client id, so the bundle has no env-specific configuration baked in.

Dev

bun run dev

Vite serves at http://127.0.0.1:5180/dashboard/ and proxies /v1/* to http://127.0.0.1:8090 (a locally-running Base / superbase binary).

If you don't have a local IAM, the SPA still loads — useIam() surfaces the sign-in screen and clicking it redirects to https://hanzo.id. Override the IAM target with:

VITE_IAM_SERVER_URL=https://iam-local.hanzo.ai \
VITE_IAM_CLIENT_ID=hanzo-superbase-local \
bun run dev

What's where

  • src/main.tsxHanzoguiProviderIamProvider → router
  • src/App.tsx — header + auth gate
  • src/auth.ts — IAM config (meta-tag → env → defaults)
  • src/api.ts — typed Base client (list/get/create/update/delete)
  • src/routes/TenantsList.tsx — table + drawer + 5s polling
  • src/routes/NewTenant.tsx — create form with kebab-slug validation
  • src/routes/LoginCallback.tsx — OIDC PKCE callback
  • src/components/ — TenantRow, TenantStatusBadge, ConfirmDialog
  • gui.config.ts — @hanzogui/config v5 default + dark theme
  • vite.config.ts — base /dashboard/, hanzogui dedupe + optimizeDeps