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

@ktnpm_devops/react-component

v0.4.1

Published

Kenmei Technologies React Component Library

Readme

@ktnpm_devops/react-component

Kenmei's Orbit design system as a tree-shakeable React component library with CSS Modules, full dark mode support, and Storybook documentation.

Installation

pnpm add @ktnpm_devops/react-component

Peer Dependencies

Required:

pnpm add react react-dom

Optional (only needed for chart/table components):

pnpm add echarts echarts-for-react    # Chart components
pnpm add @tanstack/react-table        # Advanced table features
pnpm add lucide-react                 # Icon components

Setup

Import the design tokens in your app entry point:

// main.tsx or App.tsx
import '@ktnpm_devops/react-component/tokens';

Quick Start

import { Button, Card, CardHeader, CardContent, Badge } from '@ktnpm_devops/react-component';

function App() {
  return (
    <Card>
      <CardHeader>
        <h2>Dashboard</h2>
        <Badge variant="success">Active</Badge>
      </CardHeader>
      <CardContent>
        <Button variant="primary" onClick={() => alert('Hello!')}>
          Click Me
        </Button>
      </CardContent>
    </Card>
  );
}

Dark Mode

Set data-theme="dark" on your root element:

document.documentElement.setAttribute('data-theme', 'dark');

All components automatically adapt — no additional configuration needed.

Components

Primitives

| Component | Description | |-----------|-------------| | Button | Variants: primary, secondary, outline, ghost, danger. Sizes: sm, md, lg | | Badge | Status indicator: success, warning, danger, info | | Input | Text input with focus ring | | Textarea | Multi-line text input | | Select | Native select dropdown | | Card | Compound: Card + CardHeader + CardContent + CardFooter | | Table | TableContainer + Table with styled headers/rows | | Modal | Dialog overlay with portal, ESC-to-close, focus management | | Avatar | Initials-based avatar with gradient background |

Composites

| Component | Description | |-----------|-------------| | MultiSelectDropdown | Multi-select with search, select/deselect all, pending apply/cancel | | SingleSelectDropdown | Single-select with search and optional clear button | | CustomRangePicker | Date range picker with preset ranges and custom selection | | ResizableSplitPanel | Draggable split layout with keyboard support | | ChartExpandModal | Full-screen modal for expanded chart views, portal-based with resize | | ContextMenu | Right-click context menu with keyboard navigation, portal-based |

Hooks

| Hook | Description | |------|-------------| | useClickOutside | Detect clicks outside a referenced element | | useEscapeKey | Listen for Escape key press | | useResizeObserver | Track element dimensions |

Utilities

| Utility | Description | |---------|-------------| | formatNumber | Locale-aware number formatting | | formatBytes | Human-readable byte sizes | | formatDataTimestamp | Timezone-aware date formatting | | exportTableToCsv | Export table data as CSV | | sanitizeFilename | Safe filename generation |

Development

pnpm install       # Install dependencies
pnpm dev           # Start Storybook (port 6006)
pnpm test          # Run tests
pnpm build         # Build library
pnpm lint          # Lint code
pnpm typecheck     # Type check

OpenSpec + Changelog Workflow

This project uses OpenSpec for spec-driven development and Changesets for versioning.

OpenSpec does not update the changelog. After completing and archiving a change, manually sync both:

  1. Create a changeset for the automated release pipeline:

    pnpm changeset

    Or create the file directly in .changeset/<change-name>.md:

    ---
    "@ktnpm_devops/react-component": patch
    ---
    
    Description of what changed.

    Use patch for docs/stories/fixes, minor for new components/features, major for breaking changes.

  2. Update CHANGELOG.md — add a ### Added or ### Enhanced entry under [Unreleased] and update the Status Board table if component status changed.

  3. On release, Changesets consumes the .changeset/ files and versions the package:

    pnpm changeset version   # Bumps version, updates CHANGELOG
    pnpm build && pnpm publish

License

MIT