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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@antoniobenincasa/ui

v0.3.1

Published

A personal design system library built with React, TypeScript, and shadcn/ui components. This library provides a collection of reusable, accessible UI components styled with Tailwind CSS.

Downloads

568

Readme

@antoniobenincasa/ui

A personal design system library built with React, TypeScript, and shadcn/ui components. This library provides a collection of reusable, accessible UI components styled with Tailwind CSS.

Features

  • 🎨 shadcn/ui Components - Built on top of shadcn/ui for beautiful, accessible components
  • TypeScript - Fully typed for better developer experience
  • 🎯 Tailwind CSS v4 - Modern utility-first CSS framework
  • 📦 Tree-shakeable - Import only what you need
  • 🧩 Modular - Components can be used independently
  • 📚 Storybook - Interactive component documentation
  • 🧪 Vitest - Comprehensive testing setup
  • Accessible - Built with accessibility in mind

Installation

npm install @antoniobenincasa/ui

Peer Dependencies

This library requires the following peer dependencies:

npm install react react-dom tailwindcss lucide-react

Usage

Import Components

import { Button, Input } from "@antoniobenincasa/ui";
import "@antoniobenincasa/ui/ui.css";

Example

import { Button, Input } from "@antoniobenincasa/ui";
import "@antoniobenincasa/ui/ui.css";

function App() {
  return (
    <div>
      <Input placeholder="Enter your name" />
      <Button variant="default">Click me</Button>
    </div>
  );
}

Available Components

Button

A versatile button component with multiple variants and sizes.

import { Button } from "@antoniobenincasa/ui";

// Variants
<Button variant="default">Default</Button>
<Button variant="destructive">Destructive</Button>
<Button variant="outline">Outline</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="link">Link</Button>

// Sizes
<Button size="sm">Small</Button>
<Button size="default">Default</Button>
<Button size="lg">Large</Button>
<Button size="icon">Icon</Button>

Input

A styled input component with built-in focus states and validation support.

import { Input } from "@antoniobenincasa/ui";

<Input type="text" placeholder="Enter text" />
<Input type="email" placeholder="Enter email" />
<Input type="password" placeholder="Enter password" />

Development

Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn

Setup

# Install dependencies
npm install

# Start development server
npm run dev

# Start Storybook
npm run storybook

Build

# Build the library
npm run build

The build output will be in the dist directory:

  • index.es.js - ES module format
  • index.cjs.js - CommonJS format
  • index.d.ts - TypeScript definitions
  • ui.css - Stylesheet

Testing

# Run all tests
npm test

# Run unit tests with coverage
npm run test:unit

# Run Storybook tests
npm run test:unit:storybook

Linting

npm run lint

Project Structure

src/
├── index.ts          # Main entry point
├── index.css         # Global styles
├── lib/
│   └── utils.ts      # Utility functions
└── ui/
    ├── Button/       # Button component
    ├── Input/        # Input component
    └── index.ts      # Component exports

Tech Stack

  • React - UI library
  • TypeScript - Type safety
  • Vite - Build tool
  • Tailwind CSS v4 - Styling
  • shadcn/ui - Component foundation
  • Radix UI - Accessible primitives
  • Storybook - Component documentation
  • Vitest - Testing framework
  • ESLint - Code linting

License

This is a personal project. All rights reserved.