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

@aggc/ui

v0.5.1

Published

Shared Vue UI primitives, patterns, and tokens for AGGC desktop and web.

Readme

@aggc/ui

Shared Vue UI primitives, styles, and patterns for AGGC desktop and web surfaces.

Scope

This package is intentionally limited to reusable UI:

  • theme tokens
  • Panda styles, recipes, layouts, and patterns
  • visual Vue components with stable props and slots

This package does not include:

  • stores
  • routing
  • Tauri integrations
  • filesystem access
  • product-specific feature flows

Installation

npm install @aggc/ui

Peer dependency:

  • vue@^3.5

Usage

import "@aggc/ui/css";
import { UiButton, StatusBadge } from "@aggc/ui";

If you want the package fonts as well:

import "@aggc/ui/fonts";
import "@aggc/ui/css";

You can also consume the public subpaths:

  • @aggc/ui/components
  • @aggc/ui/styles
  • @aggc/ui/tokens — full token map (core + desktop-only)
  • @aggc/ui/tokens/core — shared tokens: text.*, bg.*, border.*, badge.*, spacing, radii, typography, motion
  • @aggc/ui/tokens/desktop-only — desktop-only tokens: result.*, nav.*, sync.*
  • @aggc/ui/ui.css — direct CSS asset (for bundlers that handle CSS imports natively)

PandaCSS consumer setup

If you use PandaCSS in your app, add the package sources to your panda.config.ts scanner. This is required because PandaCSS does static analysis — it needs the original source files where cva, css, etc. appear by name. The compiled dist/ renames these functions and PandaCSS cannot recognize them.

// panda.config.ts
export default defineConfig({
  include: [
    './src/**/*.{ts,vue}',
    './node_modules/@aggc/ui/src/**/*.{ts,vue}',
  ],
})

The src/ directory is published in the package specifically for this purpose.

Everything else in this repo is maintenance tooling for the package itself:

  • src/stories/** powers Storybook docs
  • tests/visual/** powers Playwright visual regression
  • examples/vue-consumer/ validates external consumption
  • docs/ contains internal maintenance notes

Theme contract

@aggc/ui/css is intentionally headful. It includes:

  • base reset and focus-visible treatment
  • minimal theme-aware document colors
  • shared animation keyframes used by the exported components

@aggc/ui/css does not embed fonts anymore. Load @aggc/ui/fonts if you want the default IBM Plex Sans and Space Grotesk setup from the package itself.

Consumers should set data-theme="dark" on a parent container or document root for dark mode.

Variant policy

Shared components expose a closed set of visual props:

  • size
  • variant
  • tone
  • state

Do not add ad hoc visual props like raw padding, color, or background to product code. If a visual need is reusable, add it as a documented recipe or component variant here.

Development

npm install
npm run typecheck
npm run test
npm run docs
npm run test:visual
npm run build

Release workflow

  • Record versioned changes with npm run changeset
  • CI must pass typecheck, test, and build
  • Releases are published from main through Changesets

Stories and visual testing

Storybook is the human-facing source of truth for component stories, examples and docs.

The Storybook manager stays in dark mode. Each component story exposes its own local light/dark preview switch without changing the global docs shell.

  • npm run docs
  • npm run docs:build
  • npm run docs:preview

Playwright visual regression runs against iframe.html routes generated from those same Storybook stories.

  • npm run test:visual
  • npm run test:visual:update
  • npm run test:visual:ui

Example test targets:

  • /iframe.html?id=ui-button--solid&viewMode=story
  • /iframe.html?id=ui-select--open&viewMode=story

That keeps previews, code examples and screenshot baselines tied to one story system instead of separate demos.

These docs and tests are internal repo tooling. They are not part of the published package API.

Contribution boundary

The package must stay platform-agnostic.

Do not add:

  • router-aware components
  • stores or feature state
  • Tauri or filesystem bindings
  • product-only workflows

Publishing policy

  • semver for API and visual breakage
  • public exports only through documented entrypoints
  • reusable pieces must stay platform-agnostic

Accessibility baseline

Shared components should provide:

  • keyboard support when interactive
  • visible focus treatment
  • disabled and loading states
  • reduced-motion friendly animations where applicable