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

@klpod221/kemi-ui

v1.0.4

Published

A simple, lightweight UI component library built with Lit. Provides reusable web components with dark theme, TypeScript support, and form validation utilities.

Readme

📝 Description

Kemi UI is a simple, lightweight UI component library that I use across my personal applications. Built with Lit for optimal performance and minimal bundle size, it offers a comprehensive set of web components including forms, navigation, overlays, and data display elements—all styled with a modern dark theme and built-in validation utilities.

Perfect for developers who want a straightforward, no-nonsense component library that just works. Whether you're building a quick prototype or a full-scale application, Kemi UI provides the essential building blocks without the complexity of larger frameworks.

✨ Features

  • 🎨 Modern Design - Clean and professional dark theme
  • 🚀 Lightweight - Built with Lit for minimal bundle size
  • 🔧 Easy to Use - Simple API with web components
  • 📦 Tree-shakeable - Import only what you need
  • 💪 TypeScript - Full TypeScript support
  • 🎯 Form Validation - Built-in validation utilities

📦 Installation

NPM

npm install @klpod221/kemi-ui

CDN

<script type="module" src="https://unpkg.com/@klpod221/kemi-ui/dist/kemi-ui.js"></script>

🚀 Quick Start

Import the library

import "@klpod221/kemi-ui";

Use components in your HTML

<ui-button variant="primary" size="medium"> Click me! </ui-button>

<ui-input label="Your name" placeholder="Enter your name" required></ui-input>

<ui-card>
  <h3>Card Title</h3>
  <p>Card content goes here</p>
</ui-card>

📚 Components

Kemi UI includes a comprehensive set of components:

Form Components

  • Button - Versatile button with multiple variants
  • Input - Text input with validation
  • Textarea - Multi-line text input
  • Checkbox - Checkbox input
  • Radio - Radio button input
  • Select - Dropdown select with search
  • Slider - Range slider input
  • ColorPicker - Color selection
  • TagInput - Multi-tag input
  • Datepicker - Date selection
  • Form - Form wrapper with validation

Display Components

  • Card - Container card
  • Badge - Status badge
  • Tag - Label tag
  • Avatar - User avatar
  • KeyboardBadge - Keyboard shortcut display
  • Skeleton - Loading placeholder
  • Empty - Empty state
  • Spin - Loading spinner
  • Table - Data table with pagination

Navigation Components

  • Breadcrumb - Breadcrumb navigation
  • Pagination - Page navigation
  • Dropdown - Dropdown menu

Overlay Components

  • Modal - Modal dialog
  • Drawer - Side drawer
  • Popover - Popover tooltip
  • Message - Toast notification

🔧 Utilities

Form Validation

Kemi UI provides a powerful validation utility:

import { validate, registerRule, setMessage } from "@klpod221/kemi-ui/validators";

// Built-in rules: required, email, min, max, minLength, maxLength, pattern

// Register custom validation rule
registerRule("custom", (value, params) => {
  return value === params.expected;
});

// Set custom error message
setMessage("custom", "Value must match expected value");

// Validate
const errors = validate("[email protected]", [
  { rule: "required" },
  { rule: "email" },
]);

🎨 Theming

The library uses CSS custom properties for theming. You can customize colors by overriding these variables:

:root {
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-bg: #0d0d0d;
  --color-bg-sidebar: #171717;
  --color-bg-block: #1f2937;
  --color-text: #f3f4f6;
  --color-text-secondary: #9ca3af;
  --color-border: #374151;
}

🔌 Usage with Frameworks

Kemi UI works seamlessly with any framework since it's built with standard web components.

Vanilla JavaScript

import "@klpod221/kemi-ui";

document.querySelector("#app").innerHTML = `
  <ui-button variant="primary">Click me</ui-button>
`;

React

import "@klpod221/kemi-ui";

function App() {
  return <ui-button variant="primary">Click me</ui-button>;
}

Vue

<template>
  <ui-button variant="primary"> Click me </ui-button>
</template>

<script>
import "@klpod221/kemi-ui";

export default {
  name: "App",
};
</script>

Angular

import { Component, CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";
import "@klpod221/kemi-ui";

@Component({
  selector: "app-root",
  template: ` <ui-button variant="primary"> Click me </ui-button> `,
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppComponent {}

💻 Development

Install dependencies

npm install

Run development server

npm run dev

This will start a development server for testing the library.

Build

npm run build

Preview production build

npm run preview

📖 Documentation

For component API documentation and examples, refer to the TypeScript type definitions in the dist folder after building.

🏗️ Project Structure

kemi-ui/
├── src/
│   ├── components/     # All UI components
│   ├── styles/         # Shared styles and variables
│   ├── utils/          # Utility functions
│   └── index.ts        # Main entry point
└── dist/               # Build output

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

👤 Author

Bùi Thanh Xuân (klpod221)

🤝 Contributing

This is primarily maintained for personal use, but suggestions and improvements are welcome.

🔗 Links


Made with ❤️ by klpod221

Star this repository if you find it helpful!