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

@s3p/console-ui

v0.14.0

Published

The auto-generated /server admin console for an s3p project (object browser, users, roles, secrets, email, functions).

Readme

@s3p/console-ui

The ONE admin console for S3-Native App Platform projects — this project's equivalent of the Firebase Console. It is deployed once by the platform and served at console.s3p.dev/{slug} for every project; operators sign in with their platform identity (operator federation), not a per-project account. Projects do not ship or embed their own copy.

Historical naming: each project used to serve its own copy at {slug}.s3p.dev/server. That URL now 302s to the hosted console; "/server" and "server-ui" are dead names (the mount API and custom element keep their legacy identifiers for compatibility).

s3p dev still auto-serves a local /server/ console shell for any project that has an s3p.project.json record — a dev convenience so you can inspect your project without leaving localhost.

Panels (today)

Identity, Project, Users (App users — this project's own pool), Server users (Admins — operators, via app.operators), Roles (edits s3p.permissions.json / .s3p/permissions.json + sync), Database (s3db/), Files, Logs, Functions (registry + CloudWatch logs + in-flight viewer), Secrets (ciphertext list; decrypting is runtime-only), Email (templates + suppression), Domains, Scratchpad (REPL over app.*), and an object browser.

All S3 calls go through the caller-supplied app.getS3Client() so the panels share the host's STS session and credential refresh path — no second auth dance. Refresh buttons everywhere (no auto-poll) so the UI doesn't churn while operators are typing.

Usage (platform-internal / dev shell)

Web component (drop-in HTML)

<script type="module">
  import { connect } from "/sdk/index.js";
  import "/console-ui/index.js";  // side-effect: defines <s3p-server-ui>

  const app = await connect();

  const el = document.querySelector("s3p-server-ui");
  el.platform = app;          // pass the configured SDK client
  el.project = app.project;
</script>

<s3p-server-ui></s3p-server-ui>

Programmatic mount

import { mountServerUi } from "@s3p/console-ui";

const unmount = mountServerUi(document.getElementById("console-root"), {
  platform: app,                 // anything that exposes getS3Client()
  defaultBucket: app.bucket,
  defaultPrefix: "s3db/",
  project: app.project,
});

// later
unmount();

Host shape

interface ServerUiHost {
  getS3Client(): Promise<S3Client>;
  getClaims?: () => { sub?, role?, preferred_username? } | null;
  users?: UsersFacade;          // enables the App-users panel
  operators?: OperatorsFacade;  // enables the Admins panel
  roleAdmin?: RolesFacade;      // enables the Roles panel
}

The PlatformClient returned by @s3p/sdk matches this shape; any equivalent object works.

Dev loop

From the workspace root:

npm run build --workspace=@s3p/console-ui
npm test --workspace=@s3p/console-ui
npm run typecheck --workspace=@s3p/console-ui
npm run lint --workspace=@s3p/console-ui

Tests

Vitest covers:

  • Database panel classifier (collection / log / doc detection from storage layout).
  • Scratchpad eval loop (REPL invariants, output formatting).