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

frootui

v1.0.4

Published

Stripe-inspired modular UI component library and CLI for FrootKit, Preact, and React

Readme

FrootUI (⚡)

Stripe-Inspired Modular Component Library & CLI for FrootKit, Preact, and React

FrootUI is a modern, structured UI library and component generator inspired by shadcn/ui and crafted around the Stripe Design System.

npm version License: MIT


Features

  • ⚡ Stripe Design System: Authentic voltage accent (#533afd), multi-layer blue-tinted shadows, tabular numbers, clean micro-borders, and slanted ribbon accents.
  • 📦 Dual-Mode (Package or Copy/Paste CLI):
    • Import directly: import { Button, Card, Badge } from 'frootui';
    • Or scaffold locally with zero lock-in: npx frootui add button card
  • 🎨 Complete Theme Customizability: Full support for CSS variables and Tailwind CSS v4 @theme directives with dark mode out-of-the-box.
  • 🚀 Ultra-Fast & Lightweight: Zero external runtime overhead; SSR-safe and optimized for Preact VNodes and React.
  • 🛡 Fully Typed: First-class TypeScript definitions for all props, variants, and compound variants via cva.

Quickstart

1. Initialize FrootUI in your project

npx frootui init

This generates frootui.json, initializes src/components/ui/, creates src/utils/cn.ts, and injects Stripe tokens into your styles.css.

2. Add components locally (shadcn-style)

npx frootui add button card badge input table

Or add the entire suite at once:

npx frootui add --all

3. Or install as an NPM package

npm install frootui

Component Suite

| Component | Description | | :--- | :--- | | Button | Stripe Voltage Indigo button with bevels, secondary, outline, ghost, danger | | Badge | Stripe status badges (success, warning, danger, info, voltage, neutral) | | Card | Stripe surface card with micro-borders, optional top accent gradient bar | | Input | Form input with Stripe voltage focus glow | | Table | Stripe Dashboard data table with tabular figures (tabular-nums) | | MetricCard | Stripe Analytics KPI card with delta badge (+14.2%) and sparkline | | Tabs | Stripe underline and pill tabs | | Dialog | Accessible modal dialog with backdrop blur | | Alert | Semantic status alert with SVG icons | | Avatar | User avatar with fallback initials and online/offline status dot | | Separator | Hairline border divider with optional label | | StripeMesh | Stripe signature slanted ribbon and mesh gradient hero container |


Example Usage

import {
  Button,
  Card,
  CardHeader,
  CardTitle,
  CardContent,
  Badge,
  Input,
  MetricCard,
  StripeMesh
} from 'frootui';

export default function Dashboard() {
  return (
    <div class="space-y-6">
      {/* Stripe Slanted Mesh Header */}
      <StripeMesh slantAngle={-6} gradient="mesh" class="py-12 px-6 rounded-2xl text-white">
        <h1 class="text-3xl font-semibold tracking-tight">Financial Infrastructure</h1>
        <p class="text-white/80 text-sm mt-2">Real-time payments and telemetry reconciliation.</p>
      </StripeMesh>

      {/* Stripe KPI Metric Cards */}
      <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
        <MetricCard
          label="Net Volume"
          value="$128,420"
          change="+18.4%"
          isPositive={true}
          context="vs last 30 days"
          sparklineData={[10, 25, 40, 35, 60, 85, 120]}
        />
        <MetricCard
          label="Active Subscriptions"
          value="4,821"
          change="+8.2%"
          isPositive={true}
          context="342 new this week"
        />
        <MetricCard
          label="Dispute Rate"
          value="0.04%"
          change="-0.01%"
          isPositive={true}
          context="Well below threshold"
        />
      </div>

      {/* Card with Voltage Button */}
      <Card accentTop>
        <CardHeader>
          <div class="flex items-center justify-between">
            <CardTitle>API Access Credentials</CardTitle>
            <Badge variant="voltage" dot>Production Mode</Badge>
          </div>
        </CardHeader>
        <CardContent class="space-y-4">
          <Input label="Publishable Key" defaultValue="pk_live_froot_5109..." readOnly />
          <Button variant="primary">Roll Secret Key</Button>
        </CardContent>
      </Card>
    </div>
  );
}

CLI Reference

# Initialize FrootUI
npx frootui init

# List available components
npx frootui list

# Add specific components
npx frootui add button card input table

# Add all components
npx frootui add --all

License

MIT © OrbitNorth LLC