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

@net-advantage/jo-ui-chip

v2.1.0

Published

Chip and Badge marks.

Readme

@net-advantage/jo-ui-chip

Chip and Badge marks.

Chip is a label that can stay static or become a toggle button. Badge is the compact count or status mark. Both follow MVVM. The model normalizes tone and labels. Each view-model projects render-ready state. Each view renders its view-model.

MVVM

flowchart LR
  ChipProps["ChipProps"] --> ChipViewModel["useChipViewModel"]
  BadgeProps["BadgeProps"] --> BadgeViewModel["useBadgeViewModel"]
  Model["jo-ui-chip.model.ts<br/>tone, class, badge label"] --> ChipViewModel
  Model --> BadgeViewModel
  ChipViewModel --> ChipView["Chip.tsx"]
  BadgeViewModel --> BadgeView["Badge.tsx"]
  ChipView -->|"onClick"| ChipViewModel

| Layer | File | Responsibility | | --- | --- | --- | | Contract | jo-ui-chip.types.ts | Chip and Badge props and view-models | | Model | jo-ui-chip.model.ts | Normalize tone, class names, and the badge label | | View-model | jo-ui-chip.view-model.ts | Framework-free chip observable; guard a disabled click | | View-model | badge.view-model.ts | Framework-free badge observable | | View | jo-ui-chip.use-view-model.ts | useChipViewModel reads that observable | | View | badge.use-view-model.ts | useBadgeViewModel reads that observable | | View | Chip.tsx | Render a span, or a button when onClick is set | | View | Badge.tsx | Render the badge |

Models

flowchart TD
  Tone["ChipTone"] --> ChipClass["chip class"]
  Tone --> BadgeClass["badge class"]
  Value["value or children"] --> Label["badge label"]
  ChipClass --> ChipViewModel["ChipViewModel"]
  BadgeClass --> BadgeViewModel["BadgeViewModel"]
  Label --> BadgeViewModel
  • Tones are neutral, accent, success, and danger. A missing tone is neutral.
  • A chip with onClick renders a button and sets aria-pressed from selected. A disabled chip does not call onClick.
  • A badge shows value when it is present, including 0. An empty value falls back to children.
  • Chip radius uses --jo-radius-control (12px). Badge radius uses --jo-radius-sm (6px).

Publish footprint

This package publishes dist and README.md.