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

@pibit.ai/cure-design-system

v0.2.0

Published

CURE Design System - React component library

Readme

@pibit/components

Component library for Pibit B2B SaaS platform.

Phase 0 - Foundation (v0.1.0)

This is the initial release with core primitive components.

Installation

npm install @pibit/components

Peer Dependencies

You need to have these installed in your project:

npm install react react-dom tailwindcss

Setup

1. Add to Tailwind Config

Update your tailwind.config.js:

/** @type {import('tailwindcss').Config} */
export default {
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/@pibit/components/**/*.{js,ts,jsx,tsx}', // Add this
  ],
  // ... rest of your config
};

2. Import Styles

In your main entry file (e.g., main.tsx or App.tsx):

import '@pibit/components/styles';

Components

Phase 0 Primitives

  • Button - Accessible button with multiple variants
  • Input - Text input with label, error states, and icons
  • Checkbox - Accessible checkbox with label support
  • Badge - Labels and status indicators
  • Avatar - User profile images with fallbacks
  • Icon - Icon component (abstracts Untitled UI)

Usage Examples

Button

import { Button } from '@pibit/components/primitives/button';

function App() {
  return (
    <>
      <Button>Click me</Button>
      <Button variant="secondary" size="lg">Large Secondary</Button>
      <Button variant="destructive">Delete</Button>
      <Button isDisabled>Disabled</Button>
    </>
  );
}

Input

import { Input } from '@pibit/components/primitives/input';
import { Icon } from '@pibit/components/primitives/icon';

function LoginForm() {
  return (
    <>
      <Input
        label="Email"
        type="email"
        placeholder="[email protected]"
        isRequired
      />
      <Input
        label="Search"
        type="search"
        placeholder="Search..."
        leftIcon={<Icon name="SearchMd" size={16} />}
      />
      <Input
        label="Password"
        type="password"
        errorMessage="Password is required"
      />
    </>
  );
}

Checkbox

import { Checkbox } from '@pibit/components/primitives/checkbox';

function TermsForm() {
  const [accepted, setAccepted] = useState(false);

  return (
    <Checkbox
      label="I accept the terms and conditions"
      description="You must accept to continue"
      checked={accepted}
      onCheckedChange={(checked) => setAccepted(!!checked)}
    />
  );
}

Badge

import { Badge } from '@pibit/components/primitives/badge';

function StatusIndicator({ status }) {
  return (
    <>
      <Badge variant="success">Active</Badge>
      <Badge variant="warning">Pending</Badge>
      <Badge variant="error">Failed</Badge>
      <Badge variant="outline">Draft</Badge>
    </>
  );
}

Avatar

import { Avatar } from '@pibit/components/primitives/avatar';

function UserProfile({ user }) {
  return (
    <Avatar
      src={user.avatarUrl}
      alt={user.name}
      fallback={user.initials}
      size="lg"
    />
  );
}

Icon

import { Icon } from '@pibit/components/primitives/icon';

function IconExamples() {
  return (
    <>
      <Icon name="ChevronDown" size={16} />
      <Icon name="SearchMd" size={20} className="text-gray-500" />
      <Icon name="CheckCircle" size={24} className="text-success-600" />
    </>
  );
}

Import Strategies

✅ Recommended: Direct Imports (Tree-shakeable)

import { Button } from '@pibit/components/primitives/button';
import { Input } from '@pibit/components/primitives/input';

✅ Also Good: Barrel Import for Primitives

import { Button, Input, Badge } from '@pibit/components';

Development

Install Dependencies

npm install

Run Storybook

npm run storybook

Build Library

npm run build

Run Tests

npm test

Architecture

src/
├── primitives/     # Phase 0 - Basic UI components (Button, Input, etc.)
├── patterns/       # Phase 1 - Composable patterns (Select, Modal, etc.)
├── complex/        # Phase 2 - Heavy library abstractions (DataTable, etc.)
├── domain/         # Phase 3 - Business-aware components (FieldRenderer, etc.)
├── utils/          # Shared utilities
└── styles/         # Design tokens and global styles

Bundle Size

Phase 0 primitives are designed to be lightweight:

  • Button: ~5KB
  • Input: ~8KB
  • Checkbox: ~6KB
  • Badge: ~3KB
  • Avatar: ~5KB
  • Icon: ~2KB (+ Untitled UI icons as needed)

Total (all primitives): ~30KB (tree-shaken)

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Accessibility

All components are built with accessibility in mind:

  • ✅ WCAG 2.1 AA compliant
  • ✅ Keyboard navigation
  • ✅ Screen reader support
  • ✅ Focus management
  • ✅ Semantic HTML

License

MIT

Contributing

See CONTRIBUTING.md for development guidelines.

Roadmap

  • v0.1.0 (Week 1) - Phase 0: Primitives ← YOU ARE HERE
  • v0.2.0 (Week 2) - Phase 1: Patterns (Select, Modal, DatePicker)
  • v0.3.0 (Week 3) - Phase 2: Complex (DataTable, RichTextEditor)
  • v0.4.0 (Week 4) - Phase 3: Domain (FieldRenderer, PermissionGate)
  • v1.0.0 (Week 4) - Stable release