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

@w5-ui/react

v0.5.1

Published

React 18 components for the Dash UI design system - ~170 dashboard-focused components with full type defs and SSR support. Part of Webber's design systems.

Readme

@w5-ui/react

React 18 component library for the Dash UI design system. Pairs with @w5-ui/tokens for design tokens and @w5-ui/assets for brand SVGs.

yarn add @w5-ui/react

Quick start

import '@w5-ui/react/styles.css' // ships @w5-ui/tokens/dashboard.css
import { AppLayout, Topbar, Sidebar, PageHeader, Card, Stat, Pill } from '@w5-ui/react'

export function App() {
  return (
    <AppLayout
      pageLabel="Dashboard"
      topbar={<Topbar siteName="HQ" activeApp="system" />}
      sidebar={<Sidebar sections={SECTIONS} activeId={page} onChange={setPage} />}
    >
      <PageHeader title="Dashboard" />
      <div className="grid">
        <Stat span={4} label="Internet" value="847" unit="Mbps" />
        <Stat span={4} label="Clients" value="124" />
        <Stat span={4} label="Throughput" value="12.4" unit="Gbps" />
        <Card span={8}>
          <h3>
            Traffic <Pill variant="success">healthy</Pill>
          </h3>
        </Card>
        <Card span={4}>
          <h3>Top clients</h3>
        </Card>
      </div>
    </AppLayout>
  )
}

That single skeleton (AppLayout then PageHeader then <div className="grid"> then <Card span={n}>) carries every padding, gap, and column value the reference dashboards use. Reproduce it verbatim and spacing falls into place automatically.

The contract (read this before styling anything)

The reference dashboards (apps/dashboard-react, rendered in Storybook under Dashboard) all share one skeleton. Userland looking different almost always comes down to one of these:

| Don't | Do | | -------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | Wrap .grid in your own <div style={{ padding }}> | Render .grid as a direct child of <main>. It already pads 16px x 24px. | | display: flex; gap: ... on the page root | Render <Banner>, <PageHeader>, .grid as siblings. They own their spacing. | | Re-implement .card with a <div> and a custom border-radius | Use <Card> or <Stat>. The radius, padding, and <h3> rhythm ship together. | | <h3> outside a <Card> | Keep titles inside <Card>. The .card h3 selector sizes and colours them. | | <span style={{ color: 'green' }}>online</span> | Use <Pill variant="success">online</Pill> (also <Badge>, <StatusIndicator>). | | Mix span={5} and span={7} | Use 4 / 6 / 8 / 12 so rows divide cleanly into the 12-column grid. | | Skip AppLayout and roll your own .app grid | Use AppLayout once at the root. .app, .workspace, and <main> line up. | | Hand-pick hex colours | Use tokens via the data-motif CSS variables. See @w5-ui/tokens. |

Grid math

.grid is repeat(12, 1fr) with a 12px gap and 16px x 24px outer padding.

| Tile width | span | Typical use | | ---------- | ------ | ------------------------------------ | | Third | 4 | Single-stat card, donut | | Half | 6 | Two-column comparison | | Two-thirds | 8 | Wide table, line chart | | Full | 12 | Time series, sankey, page-wide table |

4+4+4, 8+4, 6+6, and 12 all snap cleanly. Avoid 5 and 7. They leave dead pixels and force the next row to wrap unevenly.

What lives where

| Package | Description | | --------------- | -------------------------------------------------------- | | @w5-ui/react | ~170 React components (this package) | | @w5-ui/svelte | The same component surface for Svelte | | @w5-ui/tokens | CSS variables (data-motif="dark" / "light") + JS map | | @w5-ui/assets | Brand mark, wordmark, app-rail SVGs |

@w5-ui/react/styles.css re-exports @w5-ui/tokens/dashboard.css, so importing it once is enough for tokens, the .app / .workspace / .grid / .card classes, and component styles.

Themes

Two motifs ship in tokens:

<html data-motif="dark">
  <!-- the default -->
</html>
<html data-motif="light"></html>

Set the attribute on <html> (or any ancestor of the app root) to switch.

CSS hooks you can rely on

Stable class names that ship from @w5-ui/tokens/dashboard.css:

  • .app, .workspace, .content: outer chrome, wired up by AppLayout
  • .grid: 12-column page grid with the canonical gutter
  • .card, .card h3: tile shell and title rhythm. Use through <Card> or <Stat>.
  • .ph-bar, .ph-title, .ph-actions: page header primitives. Use through <PageHeader>.
  • .field-stack, .form-row, .form-actions: form rhythm primitives
  • .mac, .name-cell: monospace and avatar-style cell layouts

Anything else (raw colours, ad-hoc paddings) should come from tokens, not bespoke values.

Reference

  • Storybook: full component catalogue plus every Foundations page
  • Foundations / Page layout: the canonical recipe in full, with anatomy and pitfalls
  • Foundations / Spacing: the 12-token spacing scale and rhythm rules
  • Foundations / Colours, Type, Icons, Forms, Tables, Charts, Status & feedback, Navigation, Overlays, Actions: pick-by-question tables for every primitive

The Storybook Dashboard section renders the reference pages 1:1. When your page looks different, open the matching story and diff the markup.