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

@rilaptra/tui

v1.0.0

Published

Zero-dependency terminal UI toolkit for Bun — interactive prompts, native OS notifications, progress bars, an editor, and more.

Readme

@rilaptra/tui

License: MIT Runtime: Bun Dependencies: 0

A zero-dependency terminal UI toolkit for Bun — interactive prompts, native OS notifications, progress bars, a full-screen editor, and more. Every component is crafted for instant startup and buttery-smooth rendering, using nothing but Bun's native APIs and raw ANSI escape sequences.

Extracted from and battle-tested in digester.

Features

  • Zero dependencies — no chalk, no ink, no react. Just Bun.
  • 12 production-grade components covering the whole CLI interaction lifecycle.
  • Native OS notifications with the full Windows Toast API (buttons, progress bars, images, sounds, scenarios, in-place updates) plus macOS and Linux support.
  • Smooth rendering — stable-height viewports, auto-scrolling pagination, and flicker-free redraws.
  • Fully typed & documented — strict TypeScript with JSDoc on every export, plus a structured API reference.

Components

| Component | One-liner | Docs | | --- | --- | --- | | Confirm | Yes/No confirmation toggle | docs/components/Confirm.md | | TextPrompt | Text input with validation & password masking | docs/components/TextPrompt.md | | Select | Single-select menu with grids & pagination | docs/components/Select.md | | MultiSelect | Checklist with min-selection validation | docs/components/MultiSelect.md | | AutoComplete | Token-aware input with live suggestions | docs/components/AutoComplete.md | | TreeSelect | Interactive directory tree browser | docs/components/TreeSelect.md | | CommandPalette | Full-screen fuzzy command launcher | docs/components/CommandPalette.md | | Editor | Full-screen multi-line text editor | docs/components/Editor.md | | SpinNumber | Numeric stepper with manual typing | docs/components/SpinNumber.md | | ProgressBar | Styled progress bar with gradients & ETA | docs/components/ProgressBar.md | | Notification / ToastBuilder | Cross-platform native OS notifications | docs/components/Notification.md | | core (ANSI, c, useInput, ...) | Low-level primitives | docs/components/core.md |

Requirements

  • Bun v1.1.0 or newer — the library uses Bun.color, Bun.stringWidth, and Bun.spawn.
  • A TTY (interactive terminal) for the prompt components.

Installation

bun add @rilaptra/tui

Quick start

import { Confirm, Select, ToastBuilder } from "@rilaptra/tui";

// 1. Ask a question.
const deploy = await new Confirm({ title: "Deploy to production?" }).run();

// 2. Pick from a list.
const env = await new Select<string>()
  .title("Target environment")
  .add("Staging", "staging", { desc: "Safe to break" })
  .add("Production", "production", { desc: "Break carefully" })
  .run();

// 3. Tell the user it worked — with a native OS notification.
if (deploy) {
  await ToastBuilder.create(`Deployed to ${env} ✅`)
    .setTitle("Deploy")
    .setAppName("My CLI")
    .setSound("Default")
    .show();
}

Try the examples

The repository ships with a runnable demo for every component — including a notification showcase that walks through all ten toast scenarios (live progress updates, buttons, images, alarms, and more).

git clone https://github.com/Rilaptra/tui.git
cd tui
bun install

bun run example                  # interactive gallery of every component
bun run example notification     # jump straight to the notification showcase
bun run example select editor    # run specific demos in sequence

See docs/examples.md for the full list of example commands.

Documentation

License

MIT © 2026 Rilaptra