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

@cubric/ui

v0.1.1

Published

Shared component foundation for the Cubric family — vanilla TypeScript OOP components, tier-enforced, accent-themeable.

Readme

@cubric/ui

The shared component foundation for the Cubric family (Mad Pony Interactive) — Cubric Prompt, Vision, Audio, Studio. One component layer, installed by every app, so the family looks and behaves identically. Change a primitive once → every app gets it. The only thing an app overrides is its accent colour.

Vanilla TypeScript. No framework — an OOP Component base class with a template-method lifecycle and inherited cleanup, plus directory-enforced tier boundaries. (Same philosophy as the apps: discipline enforced by the compiler/linter, not by prose.)

Status: foundation (v0.1). Ships the core (Component, Command, CommandBus), the typed EventBus, the shared tier-boundaries ESLint config, the Stage CSS contract, and Button. More components migrate in one at a time.

Install

npm install @cubric/ui

Use

import { Button } from '@cubric/ui';
import '@cubric/ui/styles';            // the Stage CSS contract (tokens + fonts + base)

new Button({ variant: 'primary', text: 'Enhance' }).mount(document.body);

Set your app's accent once, in a stylesheet loaded after @cubric/ui/styles:

:root { --accent-heat: oklch(0.88 0.13 102); } /* Cubric Prompt — yellow */

That single variable is the only per-app visual difference. Everything else is shared verbatim for pixel parity.

Tier boundaries (shared ESLint config)

The family rule is primitive → compound → organism → block, no import up, enforced as a lint error. Inherit it by spreading the factory into your eslint.config.mjs:

import boundaries from 'eslint-plugin-boundaries';
import { createTierBoundariesConfig } from '@cubric/ui/eslint';

export default [
  ...createTierBoundariesConfig({
    boundaries,
    componentBase: 'src/renderer/components', // where YOUR tier folders live
    infra: { core: 'src/renderer/core', events: 'src/renderer/events', shared: 'src/shared' },
    tsconfigPath: './tsconfig.json',
  }),
];

Requires eslint-plugin-boundaries and eslint-import-resolver-typescript as dev deps in the consuming repo.

Develop

npm install
npm run dev:gallery   # live component gallery + accent switcher (the visual cue)
npm run test          # vitest
npm run lint          # the repo dogfoods its own tier config
npm run build         # → dist/ (JS + .d.ts + styles); gallery/tests are NOT published

The gallery (npm run dev:gallery) is the blast-radius viewer: change a base component, watch every showcased component react, and flip the accent switcher to confirm cross-app parity. It lives in the repo and is excluded from the published package.

License

MIT © Mad Pony Interactive