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

@svelterm/ui

v0.3.1

Published

UI components for SvelTERM — terminal and browser from the same source

Readme

@svelterm/ui

Experimental. These components are early and their APIs, markup, and design tokens will change without notice between releases. Try them out, but don't build on them yet — @svelterm/core is the stable surface.

Component library for svelterm — terminal and browser from the same Svelte source.

Distributed as .svelte source: install it and compile with your own renderer setup (nothing is pre-compiled, so the components pick up your @svelterm/core version and your scoped-CSS pipeline).

npm install @svelterm/ui

An interactive storybook lives in the svelterm-site repo at /ui — local preview only (npm run dev) while the components are experimental.

Components

  • Dialog — floating modal with focus trap and Escape-to-close.
  • List — keyboard-navigable selectable list with optional scrolling.
  • Tabs — tab bar with an active panel snippet.
  • FuzzyPicker — filter input over a fuzzy-matched, ranked list.
  • Toaster + toast() — timed notifications, callable from anywhere.
  • Colour pickerColorPicker and its parts (swatch, palette, sliders, panel, input).
<script>
    import { List, Toaster, toast } from '@svelterm/ui'
    let items = ['alpha', 'bravo', 'charlie']
    let selected = $state(0)
</script>

<List {items} bind:selected onselect={(item) => toast(`picked ${item}`)} />
<Toaster />

Theming

Components read semantic design tokens via var(--svt-*, default), so they work with zero configuration and theme from one place. Custom properties inherit: set tokens on :root to theme the app, or on any container to theme a subtree.

:root {
    --svt-accent: magenta;
    --svt-border-family: rounded;
}

| Token | Default | Used for | |---|---|---| | --svt-background | light-dark(#f5f5f0, #1a1d23) | panel/dialog/toast surfaces | | --svt-foreground | terminal default | text on those surfaces | | --svt-accent | cyan | titles, active tab, focus highlights | | --svt-muted | light-dark(#888888, #666666) | secondary text, inactive items | | --svt-selection-background | light-dark(#d5e5f5, #26415c) | selected rows | | --svt-selection-foreground | light-dark(#0a3055, #cfe6ff) | text on selected rows | | --svt-success | green | success toasts, positive status | | --svt-destructive | red | error toasts, destructive actions | | --svt-warning | yellow | warnings, attention states | | --svt-border | light-dark(#bbbbbb, #444444) | component frame colour | | --svt-border-family | single | border glyphs: single/rounded/double/heavy | | --svt-focus | yellow | keyboard-focus highlight (terminals have no hover) |

Values may be ANSI colour names, hex, or light-dark(). All components consume the set; defaults per component preserve its zero-config appearance (Dialog's border-family default is double, Toaster's rounded). Tokens are plain CSS custom properties, so the same theming works in browser display mode.

Theme recipes

Copy-paste starting points — every component follows:

/* Monochrome: no colour, structure from weight and borders */
:root {
    --svt-accent: light-dark(#222222, #dddddd);
    --svt-muted: light-dark(#999999, #555555);
    --svt-selection-background: light-dark(#dddddd, #333333);
    --svt-selection-foreground: light-dark(#000000, #ffffff);
    --svt-success: light-dark(#222222, #dddddd);
    --svt-destructive: light-dark(#222222, #dddddd);
    --svt-warning: light-dark(#222222, #dddddd);
    --svt-focus: light-dark(#000000, #ffffff);
    --svt-border-family: single;
}

/* Solarized */
:root {
    --svt-background: light-dark(#fdf6e3, #002b36);
    --svt-accent: #268bd2;
    --svt-muted: light-dark(#93a1a1, #586e75);
    --svt-selection-background: light-dark(#eee8d5, #073642);
    --svt-selection-foreground: light-dark(#586e75, #93a1a1);
    --svt-success: #859900;
    --svt-destructive: #dc322f;
    --svt-warning: #b58900;
    --svt-focus: #cb4b16;
    --svt-border: light-dark(#93a1a1, #586e75);
    --svt-border-family: rounded;
}

Helpers

fuzzyMatch / fuzzyFilter (the picker's matching), and the colour conversion functions (parseColor, rgbToOklch, …) are exported for reuse.

MIT