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

@litoho/ui

v0.1.4

Published

Small, framework-native Lit UI primitives for Litoho.

Readme

@litoho/ui

Small, framework-native Lit UI primitives for Litoho.

The package aims for a shadcn-style developer experience:

  • import one package
  • get ready-to-use components
  • style through attributes, slots, and CSS parts
  • keep the surface area small and composable

It now supports selective imports as well, so you do not have to load the whole set when you only need one primitive.

Included components

  • <lui-button>
  • <lui-badge>
  • <lui-card>
  • <lui-card-header>
  • <lui-card-title>
  • <lui-card-description>
  • <lui-card-content>
  • <lui-card-footer>
  • <lui-input>
  • <lui-textarea>
  • <lui-dialog>
  • <lui-dropdown-menu>
  • <lui-tabs>
  • <lui-toast-region>
  • <lui-select>

Example

import "@litoho/ui";
import { html } from "lit";

export const page = html`
  <lui-card>
    <lui-card-header>
      <lui-badge variant="outline">New</lui-badge>
      <lui-card-title>Litoho UI</lui-card-title>
      <lui-card-description>Lit components with a calm, modern default theme.</lui-card-description>
    </lui-card-header>

    <lui-card-content>
      <lui-input placeholder="Project name"></lui-input>
    </lui-card-content>

    <lui-card-footer>
      <lui-button>Continue</lui-button>
      <lui-button variant="ghost">Cancel</lui-button>
    </lui-card-footer>
  </lui-card>
`;

Selective Imports

Import only the component module you need:

import "@litoho/ui/badge";
import { html } from "lit";

export default {
  render: () => html`<lui-badge variant="outline">Minimal</lui-badge>`
};

Useful subpaths:

  • @litoho/ui/badge
  • @litoho/ui/button
  • @litoho/ui/card
  • @litoho/ui/dialog
  • @litoho/ui/dropdown
  • @litoho/ui/input
  • @litoho/ui/select
  • @litoho/ui/tabs
  • @litoho/ui/toast

CLI Add Flow

If you are inside a Litoho app, you can register components from the CLI:

pnpm exec litoho ui list
pnpm exec litoho ui diff
pnpm exec litoho ui info dialog
pnpm exec litoho ui info form
pnpm exec litoho ui add badge
pnpm exec litoho ui add form
pnpm exec litoho ui add overlay --copy
pnpm exec litoho ui upgrade
pnpm exec litoho ui upgrade overlay --force
pnpm exec litoho ui add badge button card

By default this adds package imports like @litoho/ui/badge into your app layout or page entry.

If you want a shadcn-style local copy instead of package imports:

pnpm exec litoho ui add dialog tabs --copy

That copies component source files into app/components/ui and imports them from there.

To inspect or sync local copied components:

pnpm exec litoho ui diff
pnpm exec litoho ui upgrade
pnpm exec litoho ui upgrade overlay --force

ui upgrade is safe by default and skips files that differ from upstream unless you pass --force.

ui diff now understands metadata headers added to copied files and can report:

  • up_to_date: local file matches upstream
  • outdated: local file still matches the old copied source, but upstream changed
  • modified: local file was edited by you while upstream stayed the same
  • diverged: both local file and upstream changed
  • legacy: local file exists without Litoho copy metadata

Current presets:

  • form: input, textarea, select, button
  • overlay: dialog, dropdown, toast, button
  • content: card, badge, button
  • navigation: tabs, dropdown, button