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

@smsunarto/bb-plugin-monokai

v0.1.0

Published

A dark Monokai-family palette for bb: one meaning per hue, a single text ladder, and a matching terminal.

Readme

bb Monokai

A dark Monokai palette for bb, terminal included.

bb ≥ 0.36 platform: any dark only

bb draws itself from CSS custom properties, so a theme is just a stylesheet. This plugin adds one: bb Monokai, a dark palette built on a five-step grounds ramp, a single off-white text ladder, and one accent that always means interactive.

It reaches past the app chrome: the terminal, the diff viewer, the file tree's git-status column, and inline code all draw from the same palette rather than keeping bb's defaults.

Install

From npm — install the plugin, then select the palette:

bb plugin install npm:@smsunarto/bb-plugin-monokai
bb theme set plugin:monokai:bb-monokai

From source — clone the repo and install the plugin as a local path source. This is also how you install a change that is not released yet:

git clone https://github.com/smsunarto/bb-plugins.git
cd bb-plugins
bun install
bun run --filter '@smsunarto/bb-plugin-monokai' build
bb plugin install ./plugins/monokai
bb theme set plugin:monokai:bb-monokai

The source path needs Bun and the bb CLI. Note that bb plugin install git:<url>@<ref> does not work for these plugins: bb reads the manifest at the repository root, so it cannot see plugins/<id>.

Usage

Installing the plugin only adds the palette. The bb theme set line above is what selects it. You can also switch in bb under Settings → Appearance → Palette:

Disabling or removing the plugin returns bb to the default palette.

Requirements

  • bb ≥ 0.36
  • bb set to dark appearance. The palette only restyles .dark; light mode keeps bb's defaults.
  • Optional: Berkeley Mono. It is not bundled. Install it yourself and the type stack picks it up. Without it the stack falls back to ui-monospace, Menlo, then monospace. The terminal additionally prefers BerkeleyMono Nerd Font Mono when present.

The palette

| Role | Value | Where it lands | |---|---|---| | Chrome ground | #141414 | cards, popovers, sidebar, terminal ground | | Editor ground | #181818 | the main pane | | Well | #1F1F1F | inputs, code wells | | Raised | #262626 | hover and active fills | | Selection | #404040 | text selection, chips | | Ink | #E3E3DD | the one white; every text tier is an alpha of it | | Accent | #88C0D0 | the only chroma in the chrome — always means interactive | | Success / added | #3FA266 | | | Warning / attention | #F1B467 | | | Danger / removed | #E34671 | | | Merged | #B267E6 | |

One meaning per hue. A color never does two jobs. Text is one white at four alphas (100 / 74 / 55 / 30 %), each annotated inline with its measured contrast ratio against the ground it sits on.

What it restyles

| Surface | Notes | |---|---| | App chrome | panes, panels, sidebar, menus, buttons, mention pills, focus rings | | Terminal | all 16 ANSI colors plus 16 companion foreground tokens, one per ANSI background | | Diff viewer | addition / deletion / modified colors, gutter number grounds and role-colored numbers | | File tree | the git-status column — added, untracked, renamed, modified, deleted, ignored | | Inline code | the sugar-high token set, measured on the #1F1F1F well | | Composer stop button | repainted to the danger hue |

Troubleshooting

The app still looks the same. The palette has to be selected. Run bb theme set plugin:monokai:bb-monokai, or pick bb Monokai under Settings → Appearance → Palette.

Only part of the app changed. Check that bb is in dark appearance. In light mode the palette contributes fonts only.

Some surfaces stay off-palette. CSS cannot reach them:

  • Code and diff syntax tokens. The bundled diff library calls Shiki with a fixed theme pair and writes inline styles inside a shadow root, so no selector reaches them. Code keeps bb's own token colors.
  • File-type icons. Their 13 source swatches are declared on :host, so all 48 language icons collapse to a single color.
  • Terminal font size and cursor blink. Both are xterm constructor arguments, not tokens. Terminal selection alpha is clamped by the host.
  • Mermaid diagrams keep a hardcoded Inter font. Colors follow the palette on the next render.
  • The favicon tint comes from a fixed list, with no CSS involved.
  • Built-in bb plugin panels (tasks, docs, github, workflows, memory) ship their own bundles with raw scale colors.

Develop from source

Install from source as shown under Install. Only server.ts is bundled; the CSS is read in place, so an edit needs no rebuild:

$EDITOR plugins/monokai/themes/bb-monokai.css
bb plugin reload monokai

Re-apply with bb theme set plugin:monokai:bb-monokai if the palette does not refresh.