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

@oluwafemiakinsiku/acme-ui

v0.1.2

Published

Example component library built with tsdown — usable in Next.js and installable by others.

Readme

@oluwafemiakinsiku/acme-ui

A small React component library built with tsdown (JS + types) and Tailwind CSS v4 (styles), usable in Next.js and installable by anyone.

npm install @oluwafemiakinsiku/acme-ui

What's in the box

src/
  index.ts            # public entry — the barrel of exports
  theme.css           # Tailwind entry that compiles to dist/style.css (no global reset)
  tokens.css          # brand design tokens (@theme) shared by lib + playground
  lib/cn.ts           # className merge helper (clsx + tailwind-merge)
  components/
    Button.tsx        # cva variants + sizes, forwardRef
    Badge.tsx         # cva tones
    Card.tsx          # compound component (Card / CardTitle / CardBody)
playground/           # dev-only app to SEE components (never published)
tsdown.config.ts      # JS/types build config
postcss.config.mjs    # Tailwind plugin (used by the Vite playground)

Develop (see what you're doing)

npm run dev      # starts the Vite playground at http://localhost:5173

Edit anything under src/ and it hot-reloads instantly. The playground imports from ../src — the exact public API consumers get.

Build (what gets published)

npm run build    # tsdown builds dist/*.js + *.d.ts, then Tailwind builds dist/style.css
npm run lint:pkg # publint + attw: verify the package is publish-ready

Why two tools? A bundler pre-resolves CSS @imports in a way that breaks Tailwind's source scanning, so JS is built by tsdown and CSS by the Tailwind CLI. The library ships utilities without Tailwind's Preflight reset, so it never clobbers the host app's base styles.

Output in dist/:

| file | what it is | | -------------- | ------------------------------ | | index.js | ESM bundle | | index.cjs | CommonJS bundle | | index.d.ts | types for ESM | | index.d.cts | types for CJS | | style.css | compiled Tailwind (import once)|

Publish to npm

# 1. Log in (once per machine)
npm login

# 2. Bump the version (semver) — you can NEVER republish an existing version
npm version patch      # e.g. 0.1.1 -> 0.1.2

# 3. Build + validate, then publish
npm run build
npm run lint:pkg
npm publish            # access:public is already set in package.json publishConfig

package.json "files": ["dist"] means only dist/ is shipped — run npm pack --dry-run to preview the tarball before publishing.

Install and use in another app (e.g. Next.js)

npm install @oluwafemiakinsiku/acme-ui react react-dom
// app/layout.tsx  (Next.js App Router) — import the CSS ONCE, globally
import '@oluwafemiakinsiku/acme-ui/style.css'

// any component
import { Button, Card, CardTitle, CardBody, Badge } from '@oluwafemiakinsiku/acme-ui'

export default function Page() {
  return (
    <Card>
      <CardTitle>Hello</CardTitle>
      <CardBody>Rendered from acme-ui.</CardBody>
      <Badge tone="success">installed</Badge>
      <Button variant="primary">Click me</Button>
    </Card>
  )
}

The consumer does not need Tailwind installed — the styles are prebuilt in @oluwafemiakinsiku/acme-ui/style.css. If the consumer does use Tailwind, our brand-* colors won't collide because they live in our shipped CSS.