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

bun-simplcli

v1.5.0

Published

Comprehensive zero-dependency headless console & RAD toolkit for Bun with rich UI, telemetry, redis, and 54 CLI tools

Readme

SimpleCLI: Headless Console & RAD Toolkit for Bun

Runtime Language License Zero Dependencies Platform

SimpleCLI for Bun is a comprehensive, lightweight, zero-dependency console utility framework and Rapid Application Development (RAD) toolkit built natively for the Bun JavaScript/TypeScript runtime.

It delivers cross-platform OS system telemetry, hardware resource monitoring, desktop notifications, speech synthesis, standard path resolvers, high-speed cryptography (via Bun.CryptoHasher and Bun.password), native namespaced multi-tenant Redis, interactive prompts (select, multi-select, fuzzy search, form wizards), multi-step task pipelines with animated spinners, structured multi-level logging, CLI flag parsing, and a complete suite of 54 pre-built production CLI applications.


🎬 Live Demos & Terminal Recordings

🧮 Mathematics & Scientific Computing Suite

SimpleCLI Mathematics Suite

🔴 Multi-Tenant Namespaced Redis Manager

Namespaced Redis Showcase

🚀 Bun SimpleCLI Full Showcase

Bun SimpleCLI Showcase

| Application | Themed VHS Preview | Description | | :--- | :--- | :--- | | Kalker Scientific & CalculusTrigonometry, Calculus (d/dx, ∫) & Constants | Kalker Demo | Numerical differentiation & integration | | Programmer CalculatorBase Radix & Bitwise Engine | Calc Demo | 64-bit Hex, Octal, Binary & Bitwise ops | | Statistics StudioCentral Tendency, RMS & StdDev | Stats Demo | Mean, median, variance & sparklines | | Terminal Graph VisualizerDistribution Charts & Bar Graphs | Graph Demo | ASCII/Unicode terminal graphs & distributions | | Crypto StudioSHA-256 & AES-256 Encryption | Crypto Demo | Native hashing & AES-256 symmetric encryption | | Namespaced Redis ManagerMulti-Tenant Isolation & Keys | Redis Demo | Zero-overhead key prefixing, isolated tenants & inspection |

📼 Recording Your Own Demos with VHS

You can re-render all VHS tapes using the built-in scripts:

# Render all VHS tape scripts to assets/
vhs scripts/tapes/math_suite.tape
vhs scripts/tapes/bun_simplcli_showcase.tape
vhs scripts/tapes/kalker.tape
vhs scripts/tapes/calc.tape
vhs scripts/tapes/stats.tape
vhs scripts/tapes/graph.tape
vhs scripts/tapes/crypto.tape
vhs scripts/tapes/redis.tape


# Or run the live demonstration shell script
./scripts/demo_showcase.sh
./scripts/math_showcase.sh

📑 Table of Contents


✨ Features

  • 🚀 Zero External Runtime Dependencies: 100% native Bun APIs and modern TypeScript standard library.
  • 🎨 Rich RAD Console UI: Framed panels, Unicode data tables, ASCII banners, status badges, GitHub-style alert boxes, sparklines, meter gauges, hierarchical trees, and colored line diffs.
  • 🎛️ Interactive Terminal Prompts: Keyboard arrow-navigated single/multi-select menus, live fuzzy search, masked password prompts, email/URL validators, and multi-field form wizards.
  • ⚡ Multi-Step Pipelines: Chained workflow execution with step spinners, precise timers, and summary reporting.
  • 🪵 Structured Multi-Level Logging: Trace, Debug, Info, Success, Warn, Error, and Fatal logging with automatic timestamps and file streaming.
  • 📊 Hardware & Telemetry: CPU load averages, RAM allocation, disk capacity, Wi-Fi SSID, network IP addresses, and TCP port scanner.
  • 🔒 Security & Cryptography: Native SHA-256/512/MD5, AES-256-CBC encryption/decryption, HMAC, native BCrypt/Argon2 (via Bun.password), and UUID v4 / UUID v7.
  • 🌐 HTTP & Networking: REST API client with status codes, headers, and file downloads with live progress bars.
  • 📦 Generic Data Structures: Stack, Queue, SetCollection, RingBuffer, MinHeap, PriorityQueue, and LRUCache.
  • 🧮 Statistics & Math: Mean, median, mode, standard deviation, RMS, variance, and numeric aggregations.
  • 🔴 Native Namespaced Redis Wrapper: Multi-tenant key isolation, typed JSON, sub-namespaces, hashes, sets, distributed locks, and pub/sub.
  • 🛠️ 54 Pre-Built Production CLI Tools: Ready-to-run utilities for DevOps, security, databases, text processing, media, and mathematics.

📦 Installation & Setup

Install as a Library in Your Project

# Using Bun (Recommended)
bun add bun-simplcli

# Using npm
npm install bun-simplcli

Install Globally as a CLI Suite (54 Tools)

# Global CLI installation
bun add -g bun-simplcli

# Or run instantly with bunx without installing:
bunx bun-simplcli
bunx simplcli --list

Local Development & Source Setup

# Clone the repository
git clone https://github.com/codecaine-zz/bun_simplcli.git
cd bun_simplcli

# Run tests
bun test

# Launch the unified CLI suite
bun run start

Homebrew & Subprocess Dependencies Setup

While the core SimpleCLI library is 100% zero-dependency, certain pre-built CLI applications in cli_apps/ leverage external system utilities (e.g. ffmpeg, ripgrep, fd, jq, redis, imagemagick, tesseract, pandoc, vhs, qalc, numbat, kalker, nmap) via fast subprocess execution.

An automated dependency installer script is included to install Homebrew (if missing) and all required toolchains:

# Check existing tool status without installing
bun run check:deps
# or: ./scripts/install_dependencies.sh --check

# Interactive setup wizard
bun run setup:brew
# or: ./scripts/install_dependencies.sh

# Install all dependencies for all 54 CLI tools + VHS recordings
bun run setup:brew:all
# or: ./scripts/install_dependencies.sh --all

Selective Installation Profiles:

# Install core essentials (ripgrep, fd, jq, ffmpeg, redis)
./scripts/install_dependencies.sh --essential

# Install media & OCR processing tools (ffmpeg, yt-dlp, imagemagick, tesseract, exiftool, id3v2)
./scripts/install_dependencies.sh --media

# Install scientific & calculus tools (libqalculate, numbat, kalker)
./scripts/install_dependencies.sh --math

# Install network reconnaissance & security tools (nmap, subfinder)
./scripts/install_dependencies.sh --security

# Install terminal GIF recorder & tape generator (vhs, ttyd)
./scripts/install_dependencies.sh --vhs

🚀 Quick Start

import { SimpleCLI } from 'bun-simplcli';

const app = SimpleCLI.newApp('DeployPilot', '1.0.0')
  .setDescription('Cloud Infrastructure Deployment Automation');

// Define CLI Flags
app.addFlagString('env', 'e', 'staging', 'Target deployment environment (staging|prod)');
app.addFlagInt('port', 'p', 8080, 'Listening port number');
app.addFlagBool('dry-run', 'd', false, 'Simulate deployment without modifying resources');

if (!app.parseCli()) process.exit(0);

const targetEnv = app.getFlagString('env');
const isDryRun = app.getFlagBool('dry-run');

app.banner('DeployPilot Cloud Runner', `Target: ${targetEnv}`);

app.step(1, 'Validating Credentials');
app.success('Authentication tokens verified');

app.step(2, 'Running Infrastructure Pipeline');
const pipeline = app.newPipeline('Deployment Stages');
pipeline.addStep('Provision compute instances', async () => true);
pipeline.addStep('Apply database migrations', async () => true);
pipeline.addStep('Configure load balancer routes', async () => true);
await pipeline.run();

app.panel('Status Summary', `All deployment stages completed successfully on ${targetEnv}.`);

🖥️ Console UI & RAD Components

Formatted Tables & Key-Value Pairs

// Aligned Key-Value Dictionary
app.printKv({
  'Host Name': 'srv-prod-api-01',
  'IP Address': '10.0.4.18',
  'Architecture': 'aarch64 (Apple Silicon)',
  'Uptime': '14 days, 6 hours',
});

// Formatted Data Grid with Borders
app.table(
  ['Endpoint', 'Protocol', 'Latency', 'Status'],
  [
    ['https://api.internal/v1', 'HTTP/2', '12.4 ms', '200 OK'],
    ['https://auth.internal', 'HTTP/2', '8.1 ms', '200 OK'],
    ['postgres://10.0.0.5:5432', 'TCP', '1.2 ms', 'CONNECTED'],
    ['redis://10.0.0.9:6379', 'TCP', '0.4 ms', 'CONNECTED'],
  ]
);

Sparklines & Bar Charts

// Unicode Inline Sparkline
const latencies = [12.0, 15.0, 45.0, 90.0, 120.0, 80.0, 30.0, 14.0];
const spark = app.sparkline(latencies);
app.info(`Latency Trend: ${spark}`); // ▂▄▆█▆▂ 

// Horizontal Bar Chart
app.barChart('Resource Allocation (%)', {
  'CPU Core 0': 42.5,
  'CPU Core 1': 89.0,
  'Memory': 64.2,
  'Disk /': 23.8,
}, 30);

Interactive Menus & Prompts

// Arrow-key single select
const env = await app.select('Choose build target environment:', [
  'Local Development',
  'Staging Integration',
  'Production Release',
]);

// Live fuzzy search selector
const branch = await app.fuzzySelect('Search Git branch:', [
  'main',
  'feature/rad-components',
  'feature/graphql-api',
  'bugfix/state-persistence',
]);

// Masked secret prompt
const apiToken = await app.promptPassword('Enter secret API access token:');

🛠️ Complete Suite of 54 CLI Applications

Run any tool directly via bun run bin/simplcli.ts <app-name> or run individual scripts in cli_apps/:

| Application | Description | | :--- | :--- | | api_stress_bench | HTTP benchmark & latency stress tester with statistical distribution | | api_studio_cli | Interactive REST API client & request builder | | app_bundler_cli | macOS native .app bundle packager & generator | | audiotag_cli | Audio file ID3 & metadata tag inspector | | brew_cli | Homebrew package manager assistant & health dashboard | | calc_cli | Programmer calculator (HEX, DEC, OCT, BIN, Bitwise Ops) | | crypto_cli | Cryptographic hash (MD5/SHA256/BCrypt) & AES-256 studio | | cut_cli | Stream & file column/field cutting utility | | dataconvert_cli | Tabular data format converter (CSV, JSON, Markdown, TSV) | | devops_sentinel | System resource guardian & hardware telemetry sentinel | | disk_cli | Disk storage capacity & partition usage visualizer | | dns_cli | DNS lookup, nameserver & latency inspector | | docker_cli | Docker container & image management dashboard | | dot_cli | Dotfiles manager & config symlink synchronizer | | env_cli | Environment secret auditor, syntax validator & .env.example diff inspector | | exif_cli | Image EXIF metadata inspector & stripper | | fd_cli | Fast filesystem search & directory traversal tool | | ffmpeg_cli | Video & audio transcoding preset pipeline helper | | find_cli | UNIX-like file hierarchy search utility | | gawk_cli | Pattern scanning & text processing engine | | graph_cli | Terminal Unicode graph, bar chart & sparkline visualizer | | ifconfig_cli | Network interface & IP configuration inspector | | imagemagick_cli | Batch image converter, resizer & thumbnail engine | | jq_cli | JSON query, filter, and syntax highlighter | | jwt_cli | Zero-dependency JSON Web Token decoder & claim analyzer | | kalker_cli | Scientific mathematics & calculus calculator | | launchd_cli | macOS launchd service manager & supervisor | | media_studio_cli | Multi-purpose media production toolkit | | multirepo_git_pilot | Multi-repository Git orchestrator | | nmap_cli | TCP port scanner & service discovery tool | | numbat_cli | Physical unit & dimensional physics calculator | | ocr_cli | Optical character recognition text extractor | | ouch_cli | Universal archive compressor & decompressor | | pandoc_cli | Universal document & markup converter | | port_kill_cli | Inspect listening network ports & kill stuck dev server processes | | qalc_cli | Advanced equation solver & algebraic calculator | | recon_cli | Security & network reconnaissance suite | | redis_cli | Namespaced Redis key explorer, value inspector & multi-tenant manager | | regex_cli | Regular expression tester & capture group visualizer |

| rg_cli | Fast recursive code & text search (ripgrep style) | | say_cli | Text-to-speech voice synthesis CLI | | sd_cli | Search & replace text utility with line diffs | | sed_cli | Stream editor & line transformation utility | | speedtest_cli | Network throughput, latency, and ping benchmarker | | sqlite_cli | SQLite database explorer & table formatter | | statistics_cli | Statistical analysis & metrics engine | | subfinder_cli | Subdomain discovery & DNS enumeration tool | | task_manager_cli | Terminal task checklist & productivity manager | | terminal_recorder_studio | Terminal recording assistant & VHS tape generator | | text_editor_cli | Zero-dependency console text viewer & editor | | tr_cli | Character translation & transformation utility | | vault_backup_manager | Encrypted backup & restore manager (AES-256) | | wget2_cli | Fast HTTP file downloader with progress bar | | yt_dlp_cli | Media download orchestrator & quality preset engine |

🧩 Subprocess Engine Dependency Map

For CLI applications that interface with external engines via subprocesses, the corresponding Homebrew formulas can be installed individually or in bulk via ./scripts/install_dependencies.sh --all:

| CLI Application | Homebrew Formula | Underlying Binary | Profile | Description | | :--- | :--- | :--- | :--- | :--- | | rg_cli | ripgrep | rg | --essential | Fast recursive regex code and text search | | fd_cli | fd | fd | --essential | Fast directory traversal and filesystem search | | jq_cli | jq | jq | --essential | Command-line JSON processor and filter | | ffmpeg_cli | ffmpeg | ffmpeg | --essential / --media | Video/audio transcoding and encoding engine | | redis_cli | redis | redis-server | --essential | In-memory multi-tenant key-value database | | imagemagick_cli | imagemagick | magick | --media | Batch image manipulation and format converter | | ocr_cli | tesseract | tesseract | --media | Optical character recognition text extraction | | yt_dlp_cli | yt-dlp | yt-dlp | --media | Video and audio streaming downloader | | exif_cli | exiftool | exiftool | --media | Read, write, and manipulate EXIF metadata | | audiotag_cli | id3v2 | id3v2 | --media | Audio file ID3 metadata inspector & editor | | pandoc_cli | pandoc | pandoc | --all | Universal markup and document format converter | | ouch_cli | ouch | ouch | --all | Compression & decompression helper (zip, tar, 7z) | | wget2_cli | wget | wget | --all | Network file downloader with resume capability | | gawk_cli | gawk | gawk | --all | Pattern scanning and text processing engine | | sd_cli | sd | sd | --all | Intuitive search & replace with regex | | sqlite_cli | sqlite | sqlite3 | --all | SQLite database engine and shell | | nmap_cli | nmap | nmap | --security | Network port scanner & service discovery tool | | subfinder_cli | subfinder | subfinder | --security | Fast passive subdomain discovery | | qalc_cli | libqalculate | qalc | --math | Multi-purpose algebraic calculator engine | | numbat_cli | numbat | numbat | --math | Scientific unit & dimensional physics calculator | | kalker_cli | kalker | kalker | --math | Full-featured scientific and calculus calculator | | terminal_recorder_studio | charmbracelet/tap/vhs | vhs, ttyd | --vhs | Automated terminal GIF & video recorder |


🧪 Running Tests & Building

# Run all unit tests
bun test

# Generate shell completions for zsh, bash, or fish
bun run bin/simplcli.ts completion zsh

# Compile any CLI tool to a standalone zero-dependency executable
bun run bin/simplcli.ts compile jwt_cli ./dist/jwt-bin

📄 License

MIT © codecaine