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

@greg_retro/ui-library

v0.4.0

Published

A modern, ESM-only React UI component library built with Vite, TypeScript, and Tailwind CSS.

Readme

@greg_retro/ui-library

A modern, ESM-only React UI component library built with Vite, TypeScript, and Tailwind CSS.

Features

  • 🚀 Pure ESM - Modern ES modules only, no CommonJS
  • 📦 Tree-shakeable - Import only what you need
  • 🎨 Tailwind CSS - Styled with Tailwind CSS and CSS variables
  • 🧩 Radix UI - Built on accessible Radix UI primitives
  • 📝 TypeScript - Fully typed with TypeScript
  • 🎭 React Cosmos - Component development and documentation with Cosmos
  • 🎯 Zero Runtime - No runtime dependencies for styling

Installation

npm install @greg_retro/ui-library

Peer Dependencies

This library requires React and React DOM as peer dependencies:

npm install react react-dom

Usage

import { Button, Card, Input } from '@greg_retro/ui-library'

function App() {
  return (
    <div>
      <Button variant="default">Click me</Button>
      <Card>
        <CardHeader>
          <CardTitle>Card Title</CardTitle>
        </CardHeader>
        <CardContent>
          <Input placeholder="Enter text..." />
        </CardContent>
      </Card>
    </div>
  )
}

Components

UI Components

  • Button - Versatile button component with multiple variants
  • Card - Container component for content sections
  • Input - Text input component
  • Avatar - User avatar with image and fallback
  • Checkbox - Checkbox input component
  • Switch - Toggle switch component
  • Dialog - Modal dialog component
  • AlertDialog - Alert dialog component
  • Popover - Popover component
  • Select - Select dropdown component
  • Sheet - Side sheet component
  • Tabs - Tab navigation component
  • Tooltip - Tooltip component
  • DropdownMenu - Dropdown menu component
  • Form - Form component with validation
  • Label - Form label component
  • Textarea - Textarea input component
  • Carousel - Carousel component
  • Table - Table component
  • Toaster - Toast notification component
  • Chart - Chart components (ChartContainer, ChartTooltip, etc.)

Reusable Components

  • BaseCarousel - Base carousel component
  • BasePopover - Base popover component
  • BaseSelect - Base select component
  • BaseSheet - Base sheet component
  • BaseTooltip - Base tooltip component
  • FormBase - Base form component
  • FormField - Form field component
  • FormFooter - Form footer component
  • BaseDropdown - Base dropdown component
  • BaseConfirmation - Base confirmation dialog component
  • BaseAvatar - Base avatar component

Development

Prerequisites

  • Node.js 18+
  • npm or yarn

Setup

# Install dependencies
npm install

Build

# Build the library
npm run build

The build output will be in the dist directory:

  • dist/index.js - ESM bundle
  • dist/index.d.ts - TypeScript type definitions

React Cosmos

This library uses React Cosmos for component development and documentation.

# Start Cosmos dev server
npm run cosmos

This will start the Cosmos UI at http://localhost:5002 where you can:

  • Browse and test all components
  • View component fixtures
  • Develop new components in isolation

Linting

# Run ESLint
npm run lint

Styling

This library uses Tailwind CSS with CSS variables for theming. To use the components in your project, you'll need to:

  1. Install Tailwind CSS in your project (if not already installed)
  2. Import the CSS variables - The library components use CSS variables for theming. You may need to configure your Tailwind setup to match the library's theme variables.

The library includes the following CSS variables:

  • --background, --foreground
  • --primary, --primary-foreground
  • --secondary, --secondary-foreground
  • --muted, --muted-foreground
  • --accent, --accent-foreground
  • --destructive, --destructive-foreground
  • --border, --input, --ring
  • And more...

Publishing

This library is configured for npm publishing under the @greg_retro scope.

# Build the library
npm run build

# Publish to npm (requires npm login)
npm publish --access public

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.