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

@zero.sc/admin

v0.0.2

Published

Admin surface kit for Zero services — shell, tables, approval queues and the path contract every Zero admin shares (login-only public path, /dashboard home, flat plural sections).

Downloads

268

Readme


The problem this solves

An admin panel is not one product. It is the twelfth one you built, and the person opening it already learned eleven other layouts. If the home screen is /dashboard here, /overview there and /admin/main somewhere else, that operator pays the difference every time they switch.

Writing the convention down does not fix it — a document has no way to be wrong out loud. So the convention lives here as values you import, and the components read those values instead of restating them.

npm i @zero.sc/admin

The path contract

import { ADMIN_HOME, ADMIN_LOGIN, adminRootTarget, isPublicAdminPath } from '@zero.sc/admin';

ADMIN_HOME;                    // '/dashboard'  — not /home, not /overview, not /console
ADMIN_LOGIN;                   // '/login'      — the only path without a session
adminRootTarget(signedIn);     // '/dashboard' | '/login'
isPublicAdminPath('/reports'); // false

/ renders nothing. It decides. A root that is both a landing page and a home screen has to branch on session state at request time, and then it fights the cache forever.

An unauthorised request goes to /login, not to a 404. Hiding the page would be the right move on a user-facing surface, but here signing in is the normal path — answer an operator with "no such page" and they start doubting their own account instead of their session.

Sections

import { checkAdminSections, type AdminSection } from '@zero.sc/admin';

const sections: AdminSection[] = [
  { href: '/users', label: 'Users' },
  { href: '/approvals', label: 'Approvals' },
];

checkAdminSections(sections);  // [] when they are legal; the reasons when they are not

A section also takes an optional icon (a 12×12 SVG path string, so no icon package comes with this one) and a badge count. A badge of 0 is not drawn — a zero badge is noise.

Flat, plural, one level. /users is the list and /users/42 is one of them — a singular name makes those two indistinguishable without reading the code. Verbs stay out of paths: /approvals is a place, approving is a method.

The check returns reasons rather than throwing, so a service can run it in a test and print all of its violations at once instead of fixing them one build at a time.

The parts

import { AdminShell, AdminTable } from '@zero.sc/admin';

<AdminShell title="Zero Drive Admin" pathname="/users" sections={sections} account={<AccountMenu />}>
  <AdminTable rows={users} columns={cols} />
</AdminShell>

link is optional and defaults to <a>; pass next/link from a 'use client' wrapper if you want client navigation. A server component must not pass it — functions do not serialise.

| group | exports | |---|---| | frame | AdminShell · AdminPage · AdminPanel · PanelGrid · SectionHead · Toolbar | | a list you act on | AdminTable · FilterBar · Paginator · BulkBar · DetailDrawer · useSelection | | a decision queue | ApprovalQueue · AiVerdict | | numbers | StatTile · StatRow · Sparkline · BarMeter · TrendBadge · UsageMeter | | operations | LogStream · AuditTrail · JobList · IncidentBanner · DeployList · HealthGrid | | people | RoleBadge · MemberTable · TokenList · GrantToggle · PersonLine | | data | KeyValueList · JsonView · DiffView | | the honest states | ConfirmAction · EmptyAdmin · ErrorPane · LoadingPane | | settings | SettingRow · DangerZone |

ApprovalQueue takes an optional AiOpinion beside each item. It is rendered as an opinion, with its own label — a recommendation that looks like a verdict is a recommendation nobody audits.

What it does not do

It does not authenticate. Sign-in is Zero ID, and this package holds no session logic — it only tells you where an unauthenticated visitor belongs. It does not fetch, either: every component takes data as props, so the same table renders in a test with no server running.

Peers

React 19 and react-dom 19, and nothing else. @zero.sc/motion and @zero.sc/util come along as dependencies; neither pulls a runtime dependency of its own, and icons are inline SVG paths rather than an icon package.

Where this sits

License

MIT OR the Zero License v1.0 — see LICENSE.