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

@anchrd/gate-ui

v0.13.0

Published

The customizable admin UI for **gate** — login and permissions as a finished product. Shipped as a **Vite/React source package**, not a prebuilt bundle: your theme and your languages are applied at build time, which a finished `dist` could not do.

Readme

@anchrd/gate-ui

The customizable admin UI for gate — login and permissions as a finished product. Shipped as a Vite/React source package, not a prebuilt bundle: your theme and your languages are applied at build time, which a finished dist could not do.

  • Consumed through gate build, not imported — the gate CLI turns this source into static assets.
  • Served same-origin by the gate worker — the built output is Workers Static Assets on @anchrd/gate-api, so the session cookie just works: no separate UI worker, no CORS.
  • Themed, branded, and translated at build time — one stylesheet, one language catalog, decided by your gate.json.

Install

npm i @anchrd/gate-ui @anchrd/gate-sdk

You install gate-ui as source and gate-sdk for its gate build command. You never import from @anchrd/gate-ui in your own code — building it is the whole interface.

How it works

npx gate build       # reads gate.json → writes .gate/ui
wrangler deploy      # the gate worker serves .gate/ui same-origin

gate build applies your gate.json to the local gate-ui source and builds it. The output directory is where it belongs to you — never inside node_modules, which the next npm ci would wipe:

| gate-ui found in | output | |---|---| | node_modules/@anchrd/gate-ui (installed) | .gate/ui in your project root | | packages/ui (this workspace) | packages/ui/dist |

Point the worker's assets.directory at that output. Routing is automatic: Cloudflare's asset router serves existing files (/, /assets/*) first, the API routes keep priority, and a browser navigation to a client route falls back to index.html so deep-links and reloads work. The full worker-side wiring is in the @anchrd/gate-api README.

Branding — gate.json

Put a gate.json next to your package.json; gate build reads it. All fields are optional:

{
  "ui": {
    "theme": "./branding/theme.css",
    "logo": "./branding/logo.svg",
    "defaultLanguage": "en",
    "languages": { "de": "./i18n/de.json" }
  }
}

| Field | | |---|---| | ui.theme | A CSS file with your design tokens (:root { --primary: … }). Imported after the UI's own stylesheet, so your tokens win — no component is touched. | | ui.logo · ui.favicon | SVG files. Without a favicon the logo is reused. | | ui.languages | Language code → catalog file. Every file is checked in full against the UI's en.json (the key source). | | ui.defaultLanguage | Which language is built in. Defaults to "en". |

Three things are deliberate, and all fail at build time, never in front of a user:

  • Unknown fields are rejected, not ignored — a typo (langauges) aborts the build naming the field.
  • An incomplete translation aborts the build, naming the file and the missing keys. No silent fallback.
  • No gate.json is fine — you get English and the stock tokens, the same output as if the feature did not exist.

English is the built-in catalog and cannot be removed; every other language is added through ui.languages. The full CLI reference lives in the @anchrd/gate-sdk README.

What the UI does

One screen per thing gate manages, gated by the signed-in user's own permissions — the UI hides what the API would refuse anyway:

| Area | | |---|---| | Sign in | Email/password plus any active provider (Google, Microsoft, Cloudflare Access), invitation acceptance, email verification, password reset and change. | | Principals | Humans and machines in one list; invite people, create machine keys, rename either. | | Roles | Roles and their permissions as a matrix of service → interface → function. | | Services | Registered services, their interfaces, and the functions each interface offers. | | Audit | The append-only "who did what, when" log, read-only. |

The running UI loads no config: it finds exactly one stylesheet and one language catalog, and supports a light/dark toggle. Everything else was decided by gate build.

Related