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

kf-component-library

v4.0.1

Published

A modern, accessible, and customizable React component library built with [Radix UI](https://www.radix-ui.com/), [Tailwind CSS](https://tailwindcss.com/), and [Vite](https://vitejs.dev/). Perfect for building beautiful, production-ready UIs with speed and

Downloads

335

Readme

kf-component-library

A modern, accessible, and customizable React component library built with Radix UI, Tailwind CSS, and Vite. Perfect for building beautiful, production-ready UIs with speed and consistency.

Features

  • Accessible: Built on top of Radix UI primitives for accessibility out of the box.
  • Customizable: Style with Tailwind CSS and easily override component styles.
  • Comprehensive: Includes Accordions, Alerts, Badges, Buttons, Cards, Carousels, Dropdowns, Forms, Tables, Tooltips, and more.
  • Type-safe: Written in TypeScript with full type definitions.
  • Fast: Powered by Vite for instant HMR and fast builds.

Installation

pnpm add kf-component-library

Usage

Import components directly from the library:

import {
  Button,
  Card,
  Badge,
  Accordion,
  Alert,
  // ...and more
} from "kf-component-library";

Example:

import { Button, Card, Badge } from "kf-component-library";

function Example() {
  return (
    <Card>
      <Badge>New</Badge>
      <h2>Card Title</h2>
      <Button>Click me</Button>
    </Card>
  );
}

Components

  • Accordion, Alert, AlertDialog, AspectRatio, Avatar, Badge, Breadcrumb, Button, Calendar, Card, Carousel, Checkbox, Collapsible, Command, ContextMenu, Dialog, Drawer, DropdownMenu, HoverCard, Input, InputOTP, Label, Menubar, NavigationMenu, Pagination, Popover, Progress, RadioGroup, Resizable, ScrollArea, Select, Separator, Sheet, Sidebar, Skeleton, Slider, Switch, Table, Tabs, Textarea, Toaster, Toggle, ToggleGroup, Tooltip, and more.

See the source code for a full list of exports.

Theming

All components are styled with Tailwind CSS utility classes.
You can override styles using the className prop or extend Tailwind's config.

Development

Scripts

  • pnpm dev – Start the development server
  • pnpm build – Build the library for production
  • pnpm lint – Lint the source code
  • pnpm check-types – Type-check the codebase
  • pnpm test – Run tests

Requirements

  • Node.js 18+
  • pnpm

Daily Development

This project follows a feature branch workflow with automated releases using Changesets.

Development Workflow

  1. Start from develop
git checkout develop
git pull origin develop
  1. Create a branch
git checkout -b feature/new-component
# or: git checkout -b fix/button-styling
  1. Implement changes and push
# edit files...
git add .
git commit -m "Implement feature"
git push -u origin HEAD

Open a PR: feature/fix → develop. Merge after review.

Lockfile policy:

  • Lockfile conflicts are avoided via .gitattributes (pnpm-lock.yaml merge=ours) which keeps develop’s lockfile.
  • If your change updates package.json, do not hand-merge the lockfile in the PR; let develop win and regenerate on develop later.
  1. Prepare release on develop (after features are merged)
git checkout develop
git pull origin develop

# Bump versions with Changesets
pnpm changeset
pnpm changeset version
  1. Regenerate lockfile deterministically
rm -f pnpm-lock.yaml
pnpm install --lockfile-only --ignore-scripts

git add .changeset/ package.json pnpm-lock.yaml
git commit -m "chore: version and lockfile"
git push origin develop
  1. Release PR: develop → main
  • Open PR from develop into main.
  • If package.json conflicts, keep develop (it already contains the version bumped above).
  • Merge to main to release.

Notes:

  • package.json has a packageManager field. Run corepack enable locally to use the pinned pnpm version.
  • Prefer regenerating the lockfile over manual conflict resolution.

Branch Strategy

  • main - Production releases, triggers automatic npm publishing
  • develop - Integration branch for features
  • feature/* - Feature development branches
  • fix/* - Bug fix branches
  • docs/* - Documentation update branches

Contributing

  1. Fork the repo and create your branch.
  2. Run pnpm install to install dependencies.
  3. Run pnpm dev to start the playground.
  4. Submit a pull request!

License

MIT

Author

Asbjørn Ness, Kreftforeningen