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

@feanor08/terminal-ui

v0.1.2

Published

A flexible terminal/workbench design system. React components + exportable design tokens.

Readme

@feanor08/terminal-ui

A flexible terminal/workbench design system. Early v0.1.0 — API is not yet stable.

Lightweight React + CSS component library. Structured so its design tokens can export to iTerm2 color schemes, CSS themes, and other application palettes without touching React at all.


Install

npm install @feanor08/terminal-ui

Peer dependencies: react ^18, react-dom ^18.


React usage

import '@feanor08/terminal-ui/styles.css';
import {
  TerminalShell,
  TerminalTitlebar,
  TerminalPanel,
  TerminalMetric,
  TerminalStatusTag,
  TerminalProgressBar,
  TerminalCommandBar,
} from '@feanor08/terminal-ui';

export function App() {
  return (
    <TerminalShell theme="dark">
      <TerminalTitlebar title="my app" />
      <TerminalPanel title="Overview">
        <TerminalMetric label="requests" value="1,204" delta="+8%" deltaDirection="up" />
        <TerminalStatusTag variant="success" dot>online</TerminalStatusTag>
        <TerminalProgressBar label="CPU" value={64} />
      </TerminalPanel>
      <TerminalCommandBar prompt="$" placeholder="run a command…" />
    </TerminalShell>
  );
}

Available components

| Component | Description | |---|---| | TerminalShell | Root wrapper. Sets theme class, scanline overlay. | | TerminalTitlebar | macOS-style title bar with traffic-light dots. | | TerminalPanel | Bordered panel with optional title and header slot. | | TerminalStatusTag | Inline status badge (info / success / warning / danger / accent / muted). | | TerminalMetric | Label + large value + optional delta. | | TerminalTable | Typed data table with column renderers. | | TerminalTabs | Tab bar with accessible role="tab" markup. | | TerminalCommandBar | Prompt + text input styled as a shell prompt. | | TerminalToast | Alert/notification bar with dismiss button. | | TerminalProgressBar | Track + fill bar with variant colors. | | TerminalKbd | Keyboard shortcut display (⌘ + S). |


CSS-only usage

No React required. Import the stylesheet and use the generated class names:

<link rel="stylesheet" href="node_modules/@feanor08/terminal-ui/dist/styles.css" />

<div class="tui-panel">
  <div class="tui-panel__header">
    <span class="tui-panel__title">Status</span>
  </div>
  <div class="tui-panel__body">
    <span class="tui-status-tag tui-status-tag--success">online</span>
  </div>
</div>

Or import the pre-generated standalone CSS theme from dist-themes/:

<link rel="stylesheet" href="dist-themes/css/all-themes.css" />

Theming with CSS variables

All components consume CSS custom properties prefixed --tui-*. Override any variable on :root or a scoped selector:

:root {
  --tui-accent: #f97316;   /* swap accent to orange */
  --tui-bg:     #0a0a0a;   /* deeper background */
}

Switch to the built-in light theme by adding the .tui-light class to your root element:

<TerminalShell theme="light">…</TerminalShell>
// or in plain HTML:
<div class="tui-light">…</div>

Creating a new token theme

  1. Copy src/tokens/terminal-dark.json to src/tokens/my-theme.json.
  2. Edit the meta block: set name, slug, appearance, author, description.
  3. Change color values to taste.
  4. Import and register it:
// src/tokens/index.ts (or your own file)
import myTheme from './my-theme.json';
import type { TerminalTokens } from '@feanor08/terminal-ui';

export const MY_THEME = myTheme as TerminalTokens;
  1. Pass it to any export function:
import { tokensToCss, tokensToIterm } from '@feanor08/terminal-ui';
const css = tokensToCss(MY_THEME, ':root');
const plist = tokensToIterm(MY_THEME);

Exporting iTerm2 themes

npm run export:iterm

Writes .itermcolors plist files to dist-themes/iterm/. Double-click any file to install into iTerm2, or import via Preferences → Profiles → Colors → Color Presets → Import.

See dist-themes/README.md for the full token → iTerm2 color key mapping.


Exporting CSS themes

npm run export:css

Writes CSS custom property files to dist-themes/css/. Useful for non-React apps, static sites, or terminal web UIs that want the same palette.


Export both at once

npm run export:themes

Design goals

  • Tokens first. Colors, spacing, and type live in JSON. Components and export scripts are consumers of that data, not the source of truth.
  • No runtime overhead. CSS variables resolve at paint time. Zero JS for theming.
  • Portable palette. The same token file can drive a React UI, an iTerm2 profile, a static CSS theme, or anything else a script can write.
  • Typed schema. TerminalTokens interface enforces token shape at compile time.

Non-goals

  • Tailwind or CSS-in-JS integration.
  • Backend or API assumptions.
  • App-specific data or business logic.
  • Animation library.
  • Full design system scale (this is intentionally minimal).

License

MIT