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

@tag-kit/ui

v0.3.1

Published

Headless React components for tag-kit — TagPicker (catalog browser + search) and TagChip (display + remove). Bring your own styles.

Readme

@tag-kit/ui

Headless React primitives for tag-kit — pickers, chips, summaries, and filters for human-in-the-loop annotation.

Zero CSS shipped. Style it with whatever you already use.

npm version License: MIT

Requires React ≥18 and @tag-kit/core.

Install

npm install @tag-kit/core @tag-kit/ui
# or
pnpm add @tag-kit/core @tag-kit/ui

What's in the box

| Export | What it does | | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | | TagPicker | Catalog browser — modality filter, free-text search over tagId/displayName/description, group bucketing. Disables already-staged tags. | | TagChip | Renders one applied tag, with optional remove. Falls back to the raw tagId while the catalog is still loading. | | TagSummary | Buckets applied tags by group, severity, or modality with counts. | | TagFilter | Faceted filter UI over a catalog — severity, group, modality. | | useTagStaging | Staging state for tags a reviewer has picked but not yet saved. | | useTagFilter | Filters a tag list by modality, severity, group, or query. |

Usage

import { useState } from "react";
import { TagPicker, TagChip, TagSummary, useTagStaging } from "@tag-kit/ui";
import { defineCatalog } from "@tag-kit/core";

const CATALOG = defineCatalog([
  {
    tagId: "audio.harassment",
    displayName: "Audio harassment",
    description: "Spoken harassment, slurs, or threats.",
    applicableModalities: ["audio", "video"],
    severity: "danger",
    group: "Audio",
    supportsSegmentScope: true,
    supportsSpanScope: false,
  },
]);

export function TagEditor({ modality }: { modality: string }) {
  const staging = useTagStaging();

  return (
    <>
      <TagPicker
        catalog={CATALOG}
        staged={staging.staged}
        modality={modality}
        onPick={staging.stage}
      />
      {staging.staged.map((tag) => (
        <TagChip
          key={tag.tagId}
          tag={tag}
          entry={CATALOG.find((c) => c.tagId === tag.tagId)}
          state="staged"
          onRemove={() => staging.unstage(tag.tagId)}
        />
      ))}
      <TagSummary tags={staging.staged} catalog={CATALOG} groupBy="severity" />
    </>
  );
}

void useState;

Styling

Every component renders semantic data-tag-kit-* attributes and nothing else — no classes, no inline styles, no design-system assumptions:

[data-tag-kit-severity="danger"] {
  border-color: crimson;
}
[data-tag-kit-state="staged"] {
  opacity: 0.7;
}

When attribute hooks aren't enough, pass a children render-prop to take over the markup entirely. TagChip and TagFilter hand you a render-info object (label, severity, state, facet toggles); TagPicker hands you the composed content so you can drop it into a popover, modal, or sheet.

Status

v0.3.1 — API stable for the 0.3.x line; pre-1.0 overall. Headless by policy: no default styles will be added, not even utility classes.

Links

License

MIT