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

@kktestdev/keact-ui

v0.1.0

Published

A modern React UI component library built with TypeScript and Vite

Readme

keact-ui

A modern React UI component library built with TypeScript, Vite, Tailwind CSS, and Design Tokens.

Installation

pnpm add keact-ui
# or
npm install keact-ui
# or
yarn add keact-ui

Usage

import { Button } from 'keact-ui';
import 'keact-ui/dist/style.css';

function App() {
  return (
    <Button variant="primary" size="md">
      Click me
    </Button>
  );
}

Theming & Customization

keact-ui supports powerful theming through design tokens and Tailwind CSS configuration.

Quick Theme customization

Create your tailwind.config.ts:

import type { Config } from 'tailwindcss';
import { designTokens } from 'keact-ui';

export default {
  content: ['./src/**/*.{js,jsx,ts,tsx}', './node_modules/keact-ui/dist/**/*.{js,mjs}'],
  theme: {
    colors: {
      // Customize primary color for your brand
      primary: {
        50: '#f0f9ff',
        100: '#e0f2fe',
        200: '#bae6fd',
        300: '#7dd3fc',
        400: '#38bdf8',
        500: '#0ea5e9', // Your brand color
        600: '#0284c7',
        700: '#0369a1',
        800: '#075985',
        900: '#0c3d66',
      },
      // Reuse other tokens as-is
      secondary: designTokens.colors.secondary,
      success: designTokens.colors.success,
      warning: designTokens.colors.warning,
      error: designTokens.colors.error,
      neutral: designTokens.colors.neutral,
    },
  },
} satisfies Config;

Using Design Tokens

Access and customize design tokens in your app:

import { designTokens, useDesignTokens } from 'keact-ui';

// Static access
console.log(designTokens.colors.primary[500]);
console.log(designTokens.spacing[4]);

// Reactive access in components
export function MyComponent() {
  const tokens = useDesignTokens();

  return <div style={{ color: tokens.colors.primary[500] }}>Styled with tokens</div>;
}

Available Design Tokens

  • Colors: Primary, Secondary, Success, Warning, Error, Neutral (10 shades each)
  • Typography: Font families, sizes (xs-4xl), weights
  • Spacing: 13 predefined scale values
  • Border Radius: 8 radius options
  • Shadows: 5 shadow levels
  • Transitions: Duration and timing functions

For complete theming documentation, see THEMING.md.

Components

Button

A versatile button component with multiple variants and sizes.

Props

| Prop | Type | Default | Description | | ----------- | -------------------------------------------------- | ----------- | ----------------------- | | variant | 'primary' \| 'secondary' \| 'outline' \| 'ghost' | 'primary' | Button style variant | | size | 'sm' \| 'md' \| 'lg' | 'md' | Button size | | loading | boolean | false | Shows loading spinner | | fullWidth | boolean | false | Makes button full width | | disabled | boolean | false | Disables the button |

Example

<Button variant="primary" size="lg" onClick={() => console.log('clicked')}>
  Primary Button
</Button>

<Button variant="outline" loading>
  Loading...
</Button>

<Button variant="ghost" size="sm" fullWidth>
  Full Width Button
</Button>

Development

We use pnpm as the package manager for better performance and efficiency.

# Install dependencies
pnpm install

# Run Storybook
pnpm storybook

# Run tests
pnpm test

# Build library
pnpm build

# Lint code
pnpm lint

# Format code
pnpm format

Scripts

  • pnpm dev - Start Vite development server
  • pnpm build - Build library for production
  • pnpm lint - Lint code with ESLint
  • pnpm lint:fix - Fix linting issues
  • pnpm format - Format code with Prettier
  • pnpm format:check - Check code formatting
  • pnpm test - Run tests
  • pnpm test:watch - Run tests in watch mode
  • pnpm test:coverage - Run tests with coverage
  • pnpm storybook - Start Storybook development server
  • pnpm build-storybook - Build Storybook for production

Documentation

License

MIT