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

@eekaam/ui

v1.1.0

Published

Eekaam's UI kit for apps: web components that look like the admin, served from the Eekaam CDN.

Readme

@eekaam/ui

The Eekaam UI kit: web components that look like the merchant admin, for apps that run inside it. Served from the Eekaam CDN so a design change reaches every app without the app redeploying.

Use it

<script type="module" src="https://themes-cdn.eekaam.com/ui/v1/ui.js"></script>

<e-page heading="Payments">
  <e-button slot="primary-action">Save</e-button>
  <e-card heading="Provider">
    <e-text-field name="name" label="Display name" required></e-text-field>
  </e-card>
</e-page>

React: @eekaam/ui-react gives typed components over the same elements. Keep the script tag; the wrappers contain no element code.

window.eekaam offers toast, navigate, setTitle, sessionToken, isEmbedded, onSchemeChange, setAppLocation and openAdmin for apps without a bundler.

App navigation (1.1)

List the app's pages in the admin's navigation, under the app:

<e-app-nav>
  <a href="/" rel="home">Home</a>
  <a href="/settings">Settings</a>
</e-app-nav>

Paths are relative to the app's embedded URL. The home link (rel="home", else the first href="/") is not listed — the app's own entry leads there. The links stay the app's own elements, so a router's <a> keeps working, and the list is sent again whenever they change. Inside the admin the element draws nothing; outside it, or in an admin that cannot list pages, it draws the links as a row of tabs (mark the current one with aria-current="page").

Clicking a listed page reloads the frame at that path. After a client-side navigation, report where the app is so the admin's address bar follows:

setAppLocation(location.pathname); // query and fragment are left out

React: <AppNav> with the same children, and setAppLocation from @eekaam/ui-react (call it from your router's location effect).

Opening admin pages (1.1)

openAdmin("edit:product", "gid://eekaam/Product/123"); // or a plain id
openAdmin("create:order");

Intents: edit: / create: for product, order and collection, and edit:customer. The admin moves the merchant through its unsaved-changes guard.

Modal and save bar inside the admin

Inside the admin, some overlays are drawn by the admin itself, over the whole window, instead of inside the app's frame.

  • <e-modal> is drawn by the admin when its body is plain text (no elements outside the primary-action / secondary-action slots, which hold <e-button>s, at most two secondary). The buttons become the admin's buttons; pressing one clicks the <e-button>, so click handlers work unchanged. Escape or ✕ in the admin fires e-request-close (reason "escape"); prevent it to keep the modal open. Rich content, loading, size="fullscreen", the in-frame attribute, or an admin that does not answer draw in the frame as before.

  • <e-save-bar> puts the admin into its "unsaved changes" state, which also stops the merchant leaving the page. Outside the admin it is a sticky bar at the top of its container.

    <e-save-bar watch-form="settings" discard-confirmation></e-save-bar>
    <form id="settings">…</form>

    Editing the form opens the bar. Save fires e-save and, unless prevented, submits the form and sets saving; end the save with open = false when it worked or saving = false when it did not — the admin shows its spinner only while saving is set. Discard fires e-discard and, unless prevented, resets the form and closes the bar. Without watch-form, set open yourself and handle both events.

Versions

  • /ui/v1/ui.js — latest 1.x. Apps load this.
  • /ui/<x.y.z>/ui.js — one exact build, never changes.

Inside v1, props, attributes, events, slots and parts only ever get added. Anything that would break an app waits for /ui/v2/.

Work on it

pnpm --filter @eekaam/ui dev        # index.html: every component
pnpm --filter @eekaam/ui test       # headless Chromium
pnpm --filter @eekaam/ui build      # dist/ui.js + dist/types
EEKAAM_UI_BUCKET=… EEKAAM_UI_DISTRIBUTION_ID=… pnpm --filter @eekaam/ui release [--dry-run]

Colours, spacing and type come from @eekaam/tokens, which the dashboard also reads. Change a token there, not here.