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

@vanthdev/aiwind

v0.1.1

Published

React + Tailwind v4 UI primitives — typed, accessible, AI- and developer-friendly (no bundled CSS)

Downloads

192

Readme

@vanthdev/aiwind

AIwind — React UI primitives for Tailwind CSS v4: typed, composable components with MUI- and shadcn-style ergonomics (variant / size, forwardRef, className + cn). Designed so humans and AI assistants can ship consistent UIs without fighting the API.

  • No runtime CSS bundle — utilities live in source; your app’s Tailwind build scans the package dist.
  • Accessible defaults — focus rings, roles, and label/control patterns where it matters.
  • Next.js App Router — interactive pieces use 'use client' where required.

Repository: github.com/vanthieu97/aiwind · Contributing & releases: CONTRIBUTING.md · AI / agent hints for your app: AGENTS.md


Install

npm install @vanthdev/aiwind

Peer dependencies: react and react-dom (18.2+ or 19).


Tailwind v4 (required)

This package does not ship a CSS file. Your app must run Tailwind v4 and scan the installed package so class names are generated.

In your global CSS (paths are relative to this CSS file):

@import "tailwindcss";
@source "../node_modules/@vanthdev/aiwind/dist";

Examples:

| Layout | @source line (adjust to your file tree) | |--------|---------------------------------------------| | app/globals.css at project root | @source "../node_modules/@vanthdev/aiwind/dist"; | | src/styles/app.css | @source "../../node_modules/@vanthdev/aiwind/dist"; |

pnpm: dependency paths still live under node_modules; fix the relative segment if your hoisting layout differs.

Local git clone next to your app: @source can point at ../your-clone/dist after npm run build in the clone. See CONTRIBUTING.md.


Dark mode

Components use Tailwind dark: variants. Add a .dark class on an ancestor (commonly <html className="dark">) so dark styles apply.


Usage

Layout

import { Button, Card, CardContent, CardHeader, CardTitle, cn } from '@vanthdev/aiwind';

export function Example() {
  return (
    <Card className={cn('max-w-md')}>
      <CardHeader>
        <CardTitle>Hello</CardTitle>
      </CardHeader>
      <CardContent>
        <Button variant="primary">Action</Button>
      </CardContent>
    </Card>
  );
}

Form row

import { Input, Label } from '@vanthdev/aiwind';

export function Field() {
  return (
    <div className="flex max-w-sm flex-col gap-2">
      <Label htmlFor="email">Email</Label>
      <Input id="email" type="email" placeholder="[email protected]" />
    </div>
  );
}

Overrides

Pass className; it is merged with tailwind-merge via cn on primitives.

<Button variant="secondary" className="w-full">
  Full width
</Button>

Exports

| Export | Notes | |--------|--------| | Button, buttonVariants | variant: primary, secondary, ghost, link · size: sm, md, lg, icon | | Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter | Composable shells | | Label | Works with htmlFor / id and peer-* on controls | | Input, Textarea | Accent focus ring | | Badge, badgeVariants | default, secondary, accent, outline, success, warning, destructive | | Alert, AlertTitle, AlertDescription, alertVariants | default, info, success, warning, destructive | | Separator | orientation: horizontal | vertical | | Skeleton | Pulse placeholder | | Switch | Client component; aria-checked | | Spinner | role="status" | | Progress | role="progressbar", value 0–100 | | cn | clsx + tailwind-merge |

Types are exported as ButtonProps, InputProps, etc., for your own wrappers.


Storybook (this repo)

After cloning: npm installnpm run storybook (port 6006). Theme toolbar toggles light/dark; a11y addon included.


Changelog

See CHANGELOG.md.

License

MIT