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

@infyniche/ui

v1.3.1

Published

Infyniche design system — generic React primitives.

Readme

@infyniche/ui

Generic React component primitives for Infyniche apps. Domain-agnostic — no ecommerce, no app-specific logic.

import { Button, Input, Card, CardBody } from "@infyniche/ui";
import "@infyniche/ui/styles.css";

What's inside (v0.1.0)

| Component | Variants | |---|---| | Button | primary · secondary · ghost · danger · outline · sizes sm/md/lg | | Input | sizes sm/md/lg · invalid state | | Card + CardHeader / CardTitle / CardBody / CardFooter | composable | | cn() | tailwind-merge helper, exported for consumers | | tokens | design tokens as JS values (radius, spacing, duration, easing) |

Theming via CSS custom properties — set --ui-primary, --ui-bg, etc. on any ancestor element.


Local development

pnpm install
pnpm storybook       # http://localhost:6006
pnpm dev             # tsup watch (rebuilds on save)

Other scripts:

pnpm typecheck
pnpm build           # produces dist/{index.mjs,index.js,index.d.ts,styles.css}
pnpm build-storybook # static site in storybook-static/
pnpm test            # vitest (no tests yet — TODO)

Consuming from another repo

  1. .npmrc at repo root of the consumer:
    @infyniche:registry=https://npm.pkg.github.com
    //npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
    always-auth=true
  2. GitHub PAT with read:packages scope, exported in your shell:
    export NODE_AUTH_TOKEN=ghp_xxxxxxxx
  3. Install:
    pnpm add @infyniche/ui
  4. Use (Next.js example, in your root layout):
    import "@infyniche/ui/styles.css";
  5. Render:
    import { Button } from "@infyniche/ui";
    
    export default function Page() {
      return <Button variant="primary">Buy now</Button>;
    }

That's it. No Tailwind setup required in the consumer — the CSS is pre-compiled from this repo's Tailwind into dist/styles.css.

Theming per consumer

Override CSS variables on the root element:

:root {
  --ui-primary: 16 185 129;       /* emerald */
  --ui-radius: 1rem;
  --ui-font-sans: "Geist", system-ui;
}

Releasing

We use Changesets + GitHub Actions.

Every PR

pnpm changeset

Pick a bump:

  • patch — bug fix, internal refactor, doc-only
  • minor — new component, new prop (additive), new variant
  • major — removed/renamed prop, changed default, removed component

Commit the generated .changeset/*.md file with your PR.

How a release ships

  1. Merge PR (with changeset) into main
  2. The release workflow opens a "Version Packages" PR aggregating pending changesets
  3. Merging that PR runs pnpm release → publishes to https://npm.pkg.github.com and tags

Manual release is not supported — always go through CI for an audit trail.


Architecture decisions

Why tsup, not rollup or vite-lib? Library is pure transpile + d.ts emit. tsup is esbuild + dts plugin — one config, ~10× faster than rollup, no dev-server overhead.

Why pre-compile Tailwind into a single CSS file? Consumers don't need Tailwind. Drop in a <link> (or a CSS import) and you're done. Same model as Mantine, Radix Themes.

Why CSS variables for tokens? Themability without rebuilds. Override --ui-primary per route, per tenant, per dark mode. No Sass variable rebuild step.

Why cva for variants? Compile-time variant typing, runtime class composition. Smallest API for "props → classes" mapping that doesn't reinvent CSS-in-JS.

Why no defaults exports? Default exports break tree-shaking and rename-refactors. Always named.


Adding a new component

  1. mkdir src/components/Toggle
  2. Write Toggle.tsx, Toggle.stories.tsx, index.ts (barrel)
  3. Re-export from src/index.ts
  4. pnpm storybook to verify
  5. pnpm changeset → choose minor (additive)
  6. Commit, PR, merge — release pipeline handles the rest