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

@rljson/uikit

v0.0.3

Published

rljson UI kit — reusable browser UI components

Readme

@rljson/uikit

A rljson UI kit for browser apps, published as an npm library. The package ships:

  • A library build (src/index.tsdist/index.js + dist/index.d.ts).
  • A Vite demo app (index.html + src/main.ts) used for local dev and as the target of the e2e tests — it is not part of the published package.
  • Vitest unit tests (test/**/*.spec.ts, jsdom environment).
  • Playwright end-to-end tests (test/e2e/**/*.e2e.ts).
  • Screenshot snapshots stored in test/golden/snapshots.
  • A Storybook (src/**/*.stories.ts) for developing and browsing the components in isolation — it is not part of the published package.

Installation

pnpm add @rljson/uikit
import { renderApp } from '@rljson/uikit';

renderApp(document.querySelector('#app')!);

Getting started

pnpm install
pnpm exec playwright install chromium   # one-time: download the browser
pnpm dev          # start the demo app's dev server
pnpm storybook    # start Storybook on http://localhost:6006
pnpm test         # vitest unit tests + coverage + lint
pnpm test:e2e     # playwright e2e tests (writes/compares screenshots)
pnpm build        # library build (dist/index.js + dist/index.d.ts)

Storybook

pnpm storybook

Open http://localhost:6006 and pick a story in the sidebar, e.g. UIKIT → App → Default. The Controls panel edits a story's args live — for App that is the title prop.

Add a story by putting a *.stories.ts file next to the component in src/:

import type { Meta, StoryObj } from '@storybook/html-vite';

import { renderApp, type RenderAppOptions } from './app.ts';

const meta: Meta<RenderAppOptions> = {
  title: 'UiKit/App',
  render: (args) => renderApp(document.createElement('div'), args),
  args: { title: '@rljson/uikit' },
  argTypes: { title: { control: 'text' } },
};

export default meta;

export const Default: StoryObj<RenderAppOptions> = {};

Because the components are framework-free DOM builders, a story's render just creates a host element, hands it to the render function and returns it.

pnpm build:storybook produces a static site in storybook-static/ (gitignored) that can be deployed for review.

Layout

| Path | Purpose | | ------------------------ | --------------------------------------------------- | | src/index.ts | Public library entry point. | | src/app.ts | Reusable, testable UI logic. | | src/main.ts | Demo app bootstrap — mounts #app (not published). | | src/**/*.stories.ts | Storybook stories (not published). | | .storybook/ | Storybook config (main.ts, preview.ts). | | test/*.spec.ts | Vitest unit tests. | | test/e2e/*.e2e.ts | Playwright e2e tests against the demo app. | | test/golden/snapshots/ | Committed screenshot snapshots. | | playwright.config.ts | Playwright config (web server + snapshot path). |

Snapshot policy

Screenshot snapshots are written on first run (updateSnapshots: 'missing') and compared on later runs. The actual review of the rendered output is done via git diff of the committed PNGs — mirroring the golden-file policy of the rljson libraries. Use pnpm updateSnapshots to refresh them intentionally.

Publishing

pnpm build type-checks, bundles src/index.ts into dist/index.js, and emits dist/index.d.ts. Only dist/, LICENSE, and README.md are included in the published package (see files in package.json). Run pnpm publish to publish — prepublishOnly runs the build automatically.