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

kotchi-ui

v1.0.0

Published

UI Kit of native web components

Readme

KotchiUI

KotchiUI is a lightweight UI kit that can be used with any framework on any browser, it's fully accessabile and mobile compatible. Each KotchiUI component is a web component that is treated as a native HTML element.

The components have public API to access the composing inner elements and to control the style via CSS variables.

Components

  • Alerts (Soon, contribute)
  • Accordion (Soon)
  • Badge (Soon)
  • Breadcrumb (Soon)
  • Button
  • Button Group (Soon)
  • Cards (Soon)
  • Checkbox (Soon)
  • Carousel (Soon)
  • Dropdowns (Soon)
  • FontAwesome Icon
  • Forms (Soon)
  • Grid (Soon)
  • Input Group (Soon)
  • Images (Soon)
  • Figures (Soon)
  • List Group (Soon)
  • Modal (Soon)
  • Navs (Soon)
  • Navbar (Soon)
  • Overlays (Soon)
  • Pagination (Soon)
  • Popovers (Soon)
  • Progress (Soon)
  • Radio Button (Soon)
  • Spinners (Soon)
  • Switch (Soon)
  • Table (Soon)
  • Tabs (Soon)
  • Tooltips (Soon)
  • Toasts (Soon)

Used Technology

KotchiUI is built with Web Component technology using the native browser API, the elements are extendable and configurable. KotchiUI is an open source with a MIT license, you can view the public repository here on GitHub.

Installation

React, Angular, Vue, etc. ...

Using npm, add the kotchi-ui dependecncy

npm i kotchi-ui

In the view file, where you want to add the component

import "kotchi-ui";

//Some where in your script, when the html variable gets rendered
//the KotchiUI custom element is 
const html = `<kui-button id="myButton" kui-style="kui-button-primary">My Button</kui-button>`;

If you want to save up on bundle size you can be more specific and only import the desored component

import "kotchi-ui/kui-button";
//....
const html = `<kui-button id="myButton" kui-style="kui-button-primary">My Button</kui-button>`;

Once the component is rendered, it's public API is accessabe along with the inner HTML elements, you can have a look at the public API and the exposed inner HTML element on each components README or documentation page.

NativeJS and HTML5

To use with Native JS and HTML5 projects, just add the following two lines in the section

<!-- Polyfill for older browsers and those who don't support web components -->
<script src="https://unpkg.com/@webcomponents/[email protected]/webcomponents-loader.js"></script>
<script src="https://raw.githubusercontent.com/ahmadigbaryia/kotchi-ui/master/dist/kotchi-ui.js"></script>

and then somewhere in your section you can add the KotchiUI components, for example:

<kui-button id="myButton" kui-style="kui-button-primary" kui-size="kui-button-large">KotchiUI Button</kui-button>

To control it using JavaScript, each KotchiUI component has public API, you can refer to the docs of each component to learn more, for example, to add a click handler for the button you can write the following code

const kuiButton = document.getElementById("myButton");
//Using the underling native button 
kuiButton.elements.button.addEventListener("click", function(e) {/** Your Handler Code */});
//Or using the KUIButton public API
kuiButton.addClickHandler(function(e) {/* Your Handler Code */});

Development

So you want to contribute? That's Great, please follow this contribution guide.

License

MIT