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

@sylvester-francis/watchdog-ui

v0.2.0

Published

Design primitives for Watchdog and downstream consumers — Svelte 5 components driven by typed design tokens.

Readme

watchdog-ui

Design primitives for Watchdog and downstream consumers — Svelte 5 components driven by typed design tokens.

Install

Published to both npmjs.com (default, no auth) and GitHub Packages (auth required).

bun add @sylvester-francis/watchdog-ui
# or
npm install @sylvester-francis/watchdog-ui

To pull from GitHub Packages instead (e.g. for in-org mirrors), add to .npmrc:

@sylvester-francis:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}

Usage

<script lang="ts">
  import { Button, Pill, StatusDot, Modal, FormField, Input } from '@sylvester-francis/watchdog-ui';
</script>

<Button variant="primary" onclick={() => (open = true)}>Create</Button>

<Modal bind:open onclose={() => (open = false)} size="md">
  <h3>Hello</h3>
  <FormField label="Name" htmlFor="name">
    <Input id="name" bind:value={name} placeholder="Your name" />
  </FormField>
  <Button variant="primary" type="submit">Save</Button>
</Modal>

Design tokens

The package ships a Tokens interface and a default watchdogTokens value. Consumers can re-export them or supply their own values matching the same shape. Token VALUES are CSS variables consumed by the primitives — change values, primitives follow.

import { type Tokens, watchdogTokens, watchdogTokensToCSS } from '@sylvester-francis/watchdog-ui/tokens';

// Default values:
console.log(watchdogTokens.color.accent); // '#3b82f6'

// Generate CSS to inject into your app:
const css = watchdogTokensToCSS(watchdogTokens);

For chart theming:

import { createChartTheme } from '@sylvester-francis/watchdog-ui';
import { watchdogTokens } from '@sylvester-francis/watchdog-ui/tokens';

const theme = createChartTheme(watchdogTokens);
// { accent, statusUp, statusDown, statusWarn, text, grid, fontMono }

Primitives

| Component | Purpose | | --- | --- | | Button | Action button with variants (primary/secondary/ghost/destructive/outline) + tones (accent/up/warn/down) | | Input, Textarea, Select, Checkbox | Form controls | | FormField | Label + control + error wrapper | | Modal | Centered modal with focus trap, ESC, overlay click, sizes (sm/md/lg/xl) | | Sheet | Side/bottom slide-over with sizes | | BottomSheet | Mobile bottom sheet with drag-to-dismiss + two heights | | Pill, StatusBadge, StatusDot | Status indicators | | StatBlock, Sparkline, ChartFrame | Data viz primitives | | Card, Tabs, Skeleton, EmptyState, Tooltip | Layout helpers |

All primitives consume CSS variables — never hardcode colors. Theme-blind by design.

Storybook

Live demo of every primitive with theme tokens applied: sylvester-francis.github.io/watchdog-ui

Run locally: bun run storybook (port 6006).

License

AGPL-3.0 © Sylvester Francis