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

@vverchonov/web-components

v0.1.10

Published

A library of reusable UI components built with [Lit 3](https://lit.dev/), shipped as standard web components with first-class [React](https://react.dev/) wrappers.

Readme

@vverchonov/web-components

A library of reusable UI components built with Lit 3, shipped as standard web components with first-class React wrappers.

Features

  • 13 components — Button, Input, Toggle, Table, Menu, Modal, Tabs, Selector, Dropdown Button, Layout, Form Layout, Card, Radio Group
  • React wrappers via @lit/react — use every component as a native React element
  • Dark mode — automatic (system preference) and manual (data-theme)
  • Fully typed — written in TypeScript with exported types for every component
  • Tree-shakeable — import the entire library or only the components you need
  • Themeable — override any design token with CSS custom properties

Installation

npm install @vverchonov/web-components lit

Peer dependencies

| Package | Version | Required | |---------|---------|----------| | lit | ^3.0.0 | Yes | | react | ^18.0.0 \|\| ^19.0.0 | Only for React wrappers |

Usage

Vanilla JS / HTML

Import the entire library or individual components:

// All components
import '@vverchonov/web-components'

// Single component (tree-shakeable)
import '@vverchonov/web-components/button'

Then use the custom element in your markup:

<app-button>Click me</app-button>

React

import { Button } from '@vverchonov/web-components/react/button'

function App() {
  return <Button onClick={() => console.log('clicked')}>Click me</Button>
}

You can also import all React wrappers at once:

import { Button, Input, Table } from '@vverchonov/web-components/react'

Components

| Tag name | React export | Import path | Description | |----------|-------------|-------------|-------------| | app-button | Button | ./button | Button with optional icon slot | | app-input | Input | ./input | Text input with validation states and icons | | app-toggle | Toggle | ./toggle | Boolean switch with optional label | | app-table | Table | ./table | Data table with sorting, pagination, column toggle | | app-menu | Menu | ./menu | Sidebar navigation with search and nested items | | app-modal | Modal | ./modal | Dialog (info, confirm, form variants) with focus trapping | | app-tabs | Tabs | ./tabs | Tabbed interface with keyboard navigation | | app-selector | Selector | ./selector | Dropdown selector (single/multi, searchable, grouped) |

| app-layout | Layout | ./layouts | Page layout with sidebar slot | | app-form-layout | FormLayout | ./layouts | Form shell with multi-step support and column grids | | app-card | Card | ./card | Collapsible content card (elevated, outlined, filled) | | app-radio-group | RadioGroup | ./radio-group | Radio button group with validation states |

Theming

Design tokens are defined as CSS custom properties in src/styles/theme.css. Because they live on :root, they inherit through Shadow DOM boundaries.

Override any token on :root or a parent element:

:root {
  --color-primary: oklch(0.55 0.24 29);
  --radius-button: 0.5rem;
}

Dark mode

Dark mode activates automatically based on prefers-color-scheme. To force a theme manually, set a data-theme attribute on <html>:

<html data-theme="dark">

Available values: "dark", "light" (overrides system preference), or omit the attribute to follow system preference.

Token categories

| Category | Examples | |----------|----------| | Colors | --color-primary, --color-surface, --color-text, --color-border | | State | --color-valid, --color-invalid | | Radius | --radius-button, --radius-card, --radius-input | | Button | --button-font-size, --button-padding-block, --button-icon-gap | | Table | --table-cell-padding-block, --table-header-bg | | Input | --input-font-size, --input-padding-block | | Modal | --modal-width, --modal-padding, --modal-backdrop | | Menu | --menu-width, --menu-collapsed-width | | Toggle | --toggle-track-width, --toggle-thumb-size | | Tabs | --tab-padding-block, --tab-indicator-height | | Dropdown | --dropdown-padding, --dropdown-item-padding-block, --dropdown-item-font-size | | Radio Group | --radio-size, --radio-dot-size, --radio-gap | | Card | --card-padding, --card-gap, --card-transition-duration | | Selector | --selector-min-height, --selector-panel-max-height |

See src/styles/theme.css for the full list of tokens and their default values.

Development

# Start the dev server (opens a demo page showcasing every component)
npm run dev

# Production library build
npm run build

# Preview the production build
npm run preview

Tech stack

License

MIT