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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@charged-ui/components

v1.0.3-alpha.29

Published

Universal web components built with Lit.

Readme

@charged/ui

A collection of universal web components built with Lit that work seamlessly in any environment.

Features

  • 🌐 Universal: Works in any JavaScript framework or no framework at all
  • 🎨 Styled with Tailwind: Beautiful, responsive components out of the box
  • 📦 Tree-shakeable: Import only what you need
  • 🔷 TypeScript: Full type definitions included
  • Lightweight: Built on Lit for minimal bundle size
  • 🎯 SSR Compatible: Works with server-side rendering

Installation

npm install @charged/ui

Alpha/Beta versions

# Install latest alpha version
npm install @charged/ui@alpha

# Install specific alpha version
npm install @charged/[email protected]

# Install latest beta version
npm install @charged/ui@beta

Usage

React 19+

React 19 has excellent native web component support:

import '@charged/ui/alert';
import { AlertVariant } from '@charged/ui/alert';

function App() {
	return (
		<ui-alert data-variant={AlertVariant.Success}>
			<span slot="icon">✅</span>
			<span slot="heading">Success!</span>
			<span slot="message">Your changes have been saved.</span>
		</ui-alert>
	);
}

Vanilla HTML

<!DOCTYPE html>
<html>
	<head>
		<script
			type="module"
			src="https://unpkg.com/@charged/ui/dist/alert/index.js"
		></script>
	</head>
	<body>
		<ui-alert data-variant="error">
			<span slot="icon">❌</span>
			<span slot="heading">Vanilla HTML</span>
			<span slot="message">No framework required!</span>
		</ui-alert>
	</body>
</html>

Available Components

  • Alert - Display contextual feedback messages
  • Button - Customizable button component
  • Details - Expandable accordion component
  • Icon - Display Heroicons
  • Spinner - Animated loading spinner
  • Text - Typography component with consistent styling

See individual component READMEs for detailed documentation, props, and examples.

Import Patterns

Import all components at once

import '@charged/ui';

Import individual components

import '@charged/ui/alert';
import '@charged/ui/button';
import '@charged/ui/text';

Import with TypeScript types

import '@charged/ui/alert';
import { AlertVariant, type AlertProps } from '@charged/ui/alert';

Browser Support

These components work in all modern browsers that support:

  • Custom Elements v1
  • Shadow DOM v1
  • ES2022+ modules

Development

This repository contains both the component library and a documentation site built with React Router.

Component Library Development

# Install dependencies
npm install

# Build the library
npm run build:lib

# Watch mode for library development
npm run dev:lib

# Type checking
npm run typecheck

Documentation Site Development

# Run the docs site
npm run dev

# Build the docs site
npm run build:app

# Start production docs server
npm start

Publishing

Alpha/Beta Releases

# Publish alpha version
npm run publish:alpha

# Publish beta version
npm run publish:beta

Stable Releases

# Publish stable version
npm run publish:stable

Project Structure

charged-ui/
├── app/
│   ├── elements/          # Component source files
│   │   ├── alert/
│   │   ├── button/
│   │   ├── text/
│   │   └── index.ts       # Main entry point
│   └── routes/            # Documentation site routes
├── dist/                  # Built library (generated)
├── public/               # Documentation site assets
├── vite.config.lib.ts    # Library build config
├── vite.config.ts        # Docs site build config
└── tsconfig.lib.json     # Library TypeScript config

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Links