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

@kenshinx/ui

v1.6.0

Published

Personal React UI component library based on shadcn/ui patterns

Readme

@kenshinx/ui

A React UI component library built with Tailwind CSS and shadcn/ui patterns

npm version License: MIT

Installation

npm install @kenshinx/ui
# or
bun add @kenshinx/ui
# or
yarn add @kenshinx/ui
# or
pnpm add @kenshinx/ui

Peer Dependencies

This package requires the following peer dependencies:

  • react ^18.0.0 || ^19.0.0
  • react-dom ^18.0.0 || ^19.0.0
  • tailwindcss ^3.4.0

Install them if you haven't already:

npm install react react-dom tailwindcss

Quick Start

1. Configure Tailwind CSS

Add the Kenshin UI preset to your tailwind.config.js:

import { kenshinPreset } from '@kenshinx/ui/tailwind-preset';

export default {
  presets: [kenshinPreset],
  content: [
    './src/**/*.{js,jsx,ts,tsx}',
    './node_modules/@kenshinx/ui/**/*.{js,jsx,ts,tsx}',
  ],
};

2. Import Styles

Import the CSS file in your app's entry point:

// main.js or App.js
import '@kenshinx/ui/styles.css';

3. Use Components

import { Button, Card, Input } from '@kenshinx/ui';

function App() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Hello World</CardTitle>
      </CardHeader>
      <CardContent>
        <Input placeholder="Type something..." />
        <Button>Click me</Button>
      </CardContent>
    </Card>
  );
}

Utilities

cn - Class Name Utility

A utility function for merging Tailwind CSS classes, combining clsx and tailwind-merge.

import { cn } from '@kenshinx/ui';

<div className={cn('base-class', condition && 'conditional-class', className)} />

TypeScript

This package is written in TypeScript and includes type definitions. All components are fully typed:

import { Button, type ButtonProps } from '@kenshinx/ui';

const props: ButtonProps = {
  variant: 'default',
  size: 'lg',
  children: 'Click me',
};

Theming

Components use CSS custom properties (CSS variables) for theming. You can customize the theme by overriding these variables in your CSS:

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  /* ... more variables */
}

See src/styles/tokens.css for the complete list of design tokens.

Tree Shaking

This package is tree-shakeable. Import only the components you need:

// ✅ Good - only imports Button
import { Button } from '@kenshinx/ui';

// ❌ Avoid - imports everything
import * as UI from '@kenshinx/ui';

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Development

Building

bun run build

Development Mode

bun run dev

Linting

bun run lint
bun run lint:fix

License

MIT © Mauro Cicerchia

Related