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

@artificialpoets/components

v0.1.0

Published

Poetic UI — neutral React UI primitives. Consume design tokens exclusively; zero brand assumptions; framework-agnostic (no next/* imports).

Downloads

122

Readme

@artificialpoets/components

~50 neutral React UI primitives. Tokens-only styling. HeadlessUI v2. CVA variants. Framework-agnostic.

bun  add @artificialpoets/components @artificialpoets/tokens
pnpm add @artificialpoets/components @artificialpoets/tokens
npm  install @artificialpoets/components @artificialpoets/tokens
yarn add @artificialpoets/components @artificialpoets/tokens

Peer dependencies you also need: react@^19, react-dom@^19, @headlessui/react@^2, clsx@^2, tailwind-merge@^3, motion@^12, lucide-react@^1, dayjs@^1.11. Next.js is currently a peer too (DES-49 will decouple Link + Avatar from next/*).

Quick start

import { Button } from "@artificialpoets/components/core";
import { Card, Heading, Text, Badge } from "@artificialpoets/components/data-display";

export default function Example() {
  return (
    <Card>
      <Badge color="green">v0.1.0</Badge>
      <Heading as="h2">Welcome</Heading>
      <Text>Built with @artificialpoets/components.</Text>
      <Button color="dark/zinc">Get started</Button>
    </Card>
  );
}

Wire the CSS once in your app entry — your globals.css or equivalent:

@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));
@import "@artificialpoets/tokens";

That's it. Components paint with the neutral theme by default. To rebrand, layer a theme overlay defining the 6 brand slots — see @artificialpoets/tokens for the contract.

Component categories

Each category is a separate subpath export so bundlers tree-shake unused code, and so the import surface is grep-able:

| Subpath | Components | |---|---| | @artificialpoets/components/core | Button, Link, TouchTarget | | @artificialpoets/components/data-display | Avatar, Badge, BadgeButton, Card, Code, DescriptionList family, Divider, Heading, ImageWithFallback, Skeleton, Stat, Strong, Subheading, Table family, Text, TextLink | | @artificialpoets/components/forms | Checkbox, Combobox, Date-range-picker, Fieldset family (Field, Label, Description, ErrorMessage), Input, Listbox, Radio, Select, Switch family, Textarea | | @artificialpoets/components/feedback | Alert, Callout, Dialog family, EmptyState, Hint | | @artificialpoets/components/layout | DrawerShell, PageHeader, SectionHeader, SidebarLayout, StackedLayout | | @artificialpoets/components/navigation | Breadcrumbs, Navbar family, Pagination, SegmentedTabs, Sidebar family, Tabs | | @artificialpoets/components/tables | DataTable family, FilteredTable, TablePaginationFooter, useDataTableState, useFilteredTable | | @artificialpoets/components/misc | Dropdown family, Hint, Popover | | @artificialpoets/components/icons | ServiceIcon |

The full root barrel re-exports everything: import { Button } from "@artificialpoets/components" works too — pick whichever import style you prefer.

Live preview — Storybook

git clone https://github.com/artificialpoets/poeticui.git
cd poeticui && bun install
bun run storybook

Opens at http://localhost:6006 with every component, every variant, light/dark toggle, a11y addon.

Design principles

Seven non-negotiable rules drive every authoring decision. See docs/RFC-ARCHITECTURE.md for the full RFC and CONTRIBUTING.md for the authoring spec.

  1. HTML semantics first<h1> with base styles, no .type-h1 utility
  2. Semantic tokensbg-primary and text-muted-foreground, never bg-orange-500
  3. Neutral by default — theme overlay rebrands the whole library in 20 lines of CSS
  4. Light + dark is a contract — every token has :root + .dark values; no dark: prefixes in component source
  5. Primary / Secondary / Semantic role / Surface — four distinct token categories with clear use cases
  6. LLM-friendlydata-component attributes, JSDoc @example per primitive, single canonical export path
  7. No utility class that duplicates HTML meaning — kills .type-h1, .type-body, etc.

Theme contract

Six CSS variables turn the neutral library into your brand:

@layer base {
  :root {
    --primary: oklch(0.488 0.243 264);
    --primary-foreground: oklch(0.985 0 0);
    --ring: oklch(0.488 0.243 264);
    --sidebar-primary: oklch(0.488 0.243 264);
    --sidebar-primary-foreground: oklch(0.985 0 0);
    --sidebar-ring: oklch(0.488 0.243 264);
  }
  .dark {
    /* same six, dark values */
  }
}

Full theming guide in @artificialpoets/tokens.

Contributing

The authoring spec is in CONTRIBUTING.md — ~650 lines covering slot composition, CVA patterns, semantic token usage, HeadlessUI integration, ref forwarding, testing conventions, file organization, and agent-friendly authoring (§9).

License

Apache-2.0. See LICENSE at the repo root.