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

@plink/ui-library

v0.6.0

Published

Reusable React UI component library with TypeScript and Tailwind CSS

Readme

@plink/ui-library

A reusable React UI component library built with TypeScript and Tailwind CSS.

Features

  • 🎨 Plink Brand Colors - Consistent design tokens with auto-generated palettes
  • 🎭 Tailwind CSS v4 - Modern CSS-first configuration
  • 📦 Tree-shakeable - ES modules with optimized bundles
  • 🔷 TypeScript - Full type safety with advanced patterns
  • Vite Powered - Lightning-fast builds and HMR
  • 🎯 React 18+ - Modern React with hooks and memoization
  • 🖋️ Custom Fonts - Montserrat (headings) + Open Sans (body)
  • 🔧 Node.js Ready - Use color tokens in any project (/tokens export)

Installation

# Using pnpm
pnpm add @plink/ui-library

# Using npm
npm install @plink/ui-library

# Using yarn
yarn add @plink/ui-library

Usage

React Projects

Import components in your React application. Styles are automatically included:

import { Heading, Text, colors } from '@plink/ui-library';

function App() {
  return (
    <div>
      <Heading as="h1" color="primary">
        Plink Dashboard
      </Heading>

      <Text size="lg" color="neutral">
        Welcome back!
      </Text>

      {/* Use color tokens directly */}
      <div style={{ backgroundColor: colors.primary[50] }}>
        Custom styled component
      </div>
    </div>
  );
}

Node.js Projects (Tokens Only)

Use Plink's brand colors in Node.js projects (emails, PDFs, etc.):

import { colors } from '@plink/ui-library/tokens';

// Email templates
const emailHTML = `
  <div style="color: ${colors.primary[500]}">
    Hello from Plink!
  </div>
`;

Note: CSS is automatically injected when you import components. No separate stylesheet import is needed!

Adding Custom Colors

Edit src/theme/tokens.ts to add new colors:

export const colorDefinitions = {
  primary: '#334BC1',    // Plink primary blue
  accent: '#30CCD5',     // Plink accent cyan

  // Add your colors here:
  brand: '#FF5733',

  // ...
};

Then run pnpm generate-theme to regenerate theme files. See src/theme/README.md for details.

Development

Prerequisites

  • Node.js 18+
  • pnpm 10+

Setup

  1. Clone the repository
  2. Run setup:
pnpm setup

This will install dependencies and auto-generate theme files.

Available Scripts

  • pnpm setup - Install dependencies + generate theme files (first time setup)
  • pnpm generate-theme - Regenerate theme files from src/theme/tokens.ts
  • pnpm dev - Start the development server with component playground
  • pnpm build - Build the library for production
  • pnpm preview - Preview the production build
  • pnpm lint - Run ESLint

Project Structure

ui-library/
├── src/
│   ├── components/         # React components (Text, Heading, etc.)
│   ├── theme/
│   │   ├── tokens.ts      # ← Edit colors/fonts here
│   │   ├── colors.ts      # Auto-generated
│   │   ├── colorClassMap.ts # Auto-generated
│   │   └── README.md      # Theme system docs
│   ├── styles/
│   │   └── index.css      # Auto-generated (Tailwind v4)
│   ├── typeHelpers.ts     # Advanced TypeScript utilities
│   ├── index.ts           # Main entry point
│   └── tokens-only.ts     # Node.js-only export
├── scripts/
│   └── generate-theme.ts  # Theme generator script
├── dist/                  # Built output (generated)
├── .github/
│   └── workflows/         # CI/CD workflows
├── vite.config.ts         # Vite configuration
└── tsconfig.json          # TypeScript configuration

Building

The library is built using Vite in library mode, which generates:

  • ESM format (dist/index.js) with CSS injected
  • CommonJS format (dist/index.cjs) with CSS injected
  • TypeScript declarations (dist/index.d.ts)
pnpm build

Publishing

The library is automatically published to npm when a new release is created on GitHub. The CI/CD pipeline handles:

  1. Running type checks
  2. Building the library
  3. Publishing to npm (on release events)

To publish manually:

pnpm build
pnpm publish

CI/CD

This project uses GitHub Actions for continuous integration and deployment:

  • CI/CD Pipeline: Runs on all pushes and pull requests, performs type checking and builds
  • Claude Code Review: Automated PR reviews using Claude AI
  • Claude Interactive: Trigger Claude by mentioning @claude in issues or PRs