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

@luishernandezcoding/ui

v1.0.0

Published

Shared UI component library extracted from Budget-boogie

Readme

@projectsproud/ui

A minimal npm library for reusable UI components built with React + Tailwind CSS.

Installation

npm install @projectsproud/ui
# or
yarn add @projectsproud/ui
# or
pnpm add @projectsproud/ui

Usage

Import the CSS styles and components in your application:

import React from 'react';
import { Button, Card, Input, Badge, Modal, Navbar } from '@projectsproud/ui';

function App() {
  return (
    <div className="p-4">
      <Card>
        <h2 className="text-xl font-bold mb-4">Welcome to Project Sproud UI</h2>
        <div className="space-y-4">
          <Input placeholder="Enter your name" />
          <div className="flex gap-2">
            <Button variant="primary">Primary Button</Button>
            <Button variant="secondary">Secondary Button</Button>
            <Button variant="ghost">Ghost Button</Button>
          </div>
          <Badge variant="success">Success Badge</Badge>
        </div>
      </Card>
    </div>
  );
}

export default App;

Components

Atoms

Button

<Button variant="primary" size="md" loading={false}>
  Click me
</Button>

Props:

  • variant: "primary" | "secondary" | "ghost" | "destructive"
  • size: "sm" | "md" | "lg"
  • loading: boolean
  • Standard HTML button props

Input

<Input 
  placeholder="Enter text" 
  error={false} 
  variant="default" 
/>

Props:

  • error: boolean
  • variant: "default" | "dark"
  • Standard HTML input props

Badge

<Badge variant="success">Status</Badge>

Props:

  • variant: "default" | "success" | "danger" | "warning" | "muted"

Card

<Card padding={true} shadow={true}>
  <p>Card content</p>
</Card>

Props:

  • padding: boolean (default: true)
  • shadow: boolean (default: true)

Molecules

Modal

<Modal 
  open={isOpen} 
  onClose={() => setIsOpen(false)}
  title="Modal Title"
  showCloseButton={true}
>
  <p>Modal content</p>
</Modal>

Props:

  • open: boolean
  • onClose: () => void
  • title: React.ReactNode (optional)
  • showCloseButton: boolean (default: true)

Organisms

Navbar

<Navbar 
  brand={<Logo />}
  position="sticky"
>
  <Button variant="ghost">Login</Button>
</Navbar>

Props:

  • brand: React.ReactNode (optional)
  • position: "fixed" | "sticky" | "relative" (default: "relative")

Architecture

This library follows atomic design principles:

  • atoms/ — tiny, presentational building blocks (Button, Input, Badge, Card)
  • molecules/ — composed components that combine atoms with labels, helpers, and behaviour (Modal, FormField, etc.)
  • organisms/ — larger sections that compose molecules and atoms into UX patterns (Navbar, Header, Footer)

Styling

This library uses Tailwind CSS. Make sure you have Tailwind CSS configured in your project, or include the CSS file directly:

// Import the CSS file
import '@projectsproud/ui/dist/index.css';

Development

# Install dependencies
pnpm install

# Build the library
pnpm run build

# Build with Vite (alternative)
pnpm run build:vite

# Run Storybook
pnpm run storybook

# Generate Storybook stories
pnpm run generate-stories

Build Outputs

The library provides multiple build formats:

  • ESM: dist/index.mjs - ES modules for modern bundlers
  • CommonJS: dist/index.js - For Node.js and older bundlers
  • TypeScript: dist/index.d.ts - Type definitions
  • CSS: dist/index.css - Compiled Tailwind styles

TypeScript

This library is fully typed and includes TypeScript definitions.

Publishing

  • Update package.json fields (author, repository, version) before publishing to npm or GitHub Packages.
  • The package has react and react-dom as peerDependencies; consumers must provide them.

License

MIT

Contributing

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