clivibe
v1.3.0
Published
Zero-dependency terminal color, gradient, and UI toolkit for Node.js.
Maintainers
Readme
The Zero-Dependency Developer Cockpit & Terminal UI System for Node.js.
Quick Start
# Run instantly without installing
npx clivibe
# Or install globally for everyday developer workflow
npm install -g clivibe
# Or add as a zero-dependency UI toolkit in your project
npm install clivibeTable of Contents
- Developer Cockpit CLI
- Interactive Menu Dashboard
- Environment & Project Diagnostics (
doctor) - Instant Error Explainer (
wtf) - Real-Time Terminal Monitor (
top) - Git Workflow Automations (
git) - Structured Log Streamer (
logsee) - Port Killer (
kill-port) - Smart HTTP Client (
curl) - Cron Schedule Explainer (
cron) - Hash & UUID Generator (
hash) - Project Scaffolding (
scaffold) - Local AI & Heuristic Helper (
ai)
- Terminal UI & Styling Engine
- Zero Dependencies
- License
Developer Cockpit CLI
Interactive Menu Dashboard
Launch the full interactive terminal cockpit with a single command:
clivibe
# or
cvPresents an interactive keyboard-navigable menu (↑/↓ and Enter) to access all system tools, git helpers, monitors, and UI diagnostics.
Environment & Project Diagnostics (doctor)
Inspect your runtime environment, missing configuration files, environment variables, active ports, and project manifests across Node.js, Python, Rust, Go, and Docker.
clivibe doctorChecks performed:
- Node.js runtime version compatibility (
>= 18.0.0) - Git CLI version and current committer configuration
- Docker daemon status (running / stopped)
- Multi-runtime detection (Python virtualenvs, Go modules, Cargo manifests)
- Environment variable verification: diffs
.env.examplevs.envto flag missing keys - Standard dev ports availability (
3000,5173,8080,5432)
Instant Error Explainer (wtf)
Diagnose complex terminal exceptions, stack traces, and build failures. Translates raw stack traces into clear root-cause explanations and actionable, copy-paste fixes.
# Direct error argument
clivibe wtf "Error: listen EADDRINUSE :::3000"
# Pipe directly from failed builds or processes
npm run build 2>&1 | clivibe wtf
docker compose up 2>&1 | clivibe wtfBuilt-in heuristic patterns:
EADDRINUSE(port conflict with command to inspect and terminate PID)Cannot find module(missing dependency identification)ModuleNotFoundError(Python virtualenv & requirements resolution)borrow of moved value(Rust ownership error analysis)imported and not used(Go compiler unused import cleanup)ECONNREFUSED(database, Redis, or backend service connection failure)password authentication failed(PostgreSQL / database credential mismatch)Hydration failed(React SSR / client mismatch troubleshooting)EACCES: permission denied(file permission and ownership remediation)
Real-Time Terminal Monitor (top)
An ultra-lightweight terminal cockpit displaying live system vitals, Git working tree status, and Docker container state.
clivibe topDisplays CPU utilization gauges, memory meters, active Git branch with uncommitted changes count, and running container statistics in a clean, self-updating dashboard.
Git Workflow Automations (git)
Simplify day-to-day Git operations with streamlined subcommands:
# Generate a clean Markdown standup summary from recent commits
clivibe git standup
# Interactive Conventional Commit generator (feat, fix, docs, refactor...)
clivibe git commit
# Interactive branch cleaner (safely delete merged / stale local branches)
clivibe git cleanStructured Log Streamer (logsee)
Colorize, parse, and search structured JSON or plain text logs in real time.
# Stream and follow live application logs
clivibe logsee app.log
# View structured logs with search filtering
clivibe logsee /var/log/server.log --filter errorAutomatically formats timestamps, highlights status codes, and colors log levels (ERROR, WARN, INFO, DEBUG).
Port Killer (kill-port)
Quickly identify and free ports occupied by orphaned processes:
clivibe kill-port 3000
clivibe kill-port 8080Cross-platform: works seamlessly on macOS, Linux, and Windows without external dependencies.
Smart HTTP Client (curl)
Test API endpoints directly from your terminal with visual status badges, latency breakdowns, and formatted JSON output:
clivibe curl https://api.github.com
clivibe curl localhost:3000/api/healthOutputs HTTP status badges (200 OK, 404 Not Found), roundtrip response latency in milliseconds, headers, and indented JSON body preview.
Cron Schedule Explainer (cron)
Convert 5-field cron syntax into human-readable English:
clivibe cron "*/15 * * * *"
# Outputs: Runs every 15 minutes
clivibe cron "0 9 * * 1-5"
# Outputs: Runs at 09:00, Monday through FridayHash & UUID Generator (hash)
Generate cryptographically secure hashes and unique identifiers in one pass:
clivibe hash "my-secret-key"Generates:
- SHA-256 checksum
- MD5 digest
- Base64 encoded string
- UUID v4 cryptographically random identifier
Static Web Server (serve)
Instantly spin up a zero-dependency static file server with real-time request logging:
# Serve current directory on port 3000
clivibe serve
# Serve custom directory and port
clivibe serve dist 8080Unified Color File Diff (diff)
Compare any two files with colorized additions and deletions:
clivibe diff fileA.js fileB.jsJSON Syntax Colorizer & Query (json)
Pretty-print, validate, and query JSON files or strings directly in terminal:
# Format and syntax-highlight
clivibe json package.json
# Query nested property
clivibe json package.json scripts.testSystem & Hardware Specs (sysinfo)
Inspect your machine's CPU model, core count, memory meters, and local network IPs:
clivibe sysinfoProject Scaffolding (scaffold)
Scaffold clean starter projects configured with modern TypeScript/ESM presets:
clivibe scaffold my-projectPresents an interactive selector for Node.js REST API, CLI tool, or web application starter kits.
Local AI & Heuristic Helper (ai)
Query your codebase or obtain development suggestions using local Ollama integration or built-in offline heuristics:
clivibe ai "How do I set up a rate limiter in Express?"Terminal UI & Styling Engine
clivibe is also a comprehensive, zero-dependency terminal UI library that you can import into your Node.js scripts.
Terminal Colors & Styles
import { c } from 'clivibe/colors';
// Standard colors
console.log(c.red('Error message'));
console.log(c.green('Operation successful'));
console.log(c.yellow('Configuration warning'));
console.log(c.cyan('System notice'));
// Modifiers & chaining
console.log(c.bold.underline.white('Important Title'));
console.log(c.dim('Secondary metadata'));
console.log(c.inverse(' Inverted label '));
// 24-bit TrueColor hex & rgb
console.log(c.hex('#5271FF')('Hex colored text'));
console.log(c.rgb(255, 97, 210)('RGB colored text'));
// Background colors
console.log(c.bgRed.brightWhite.bold(' CRITICAL '));
console.log(c.bgHex('#5271FF').white(' BADGE '));Gradients & Palettes
Create multi-stop linear and HSV-interpolated gradients:
import { gradients, gradient } from 'clivibe/colors';
// 16 Built-in palettes
console.log(gradients.synthwave('SYNTHWAVE VIBES'));
console.log(gradients.rainbow('Spectrum of colors'));
console.log(gradients.fire('High performance engine'));
console.log(gradients.cyber('Cyberpunk terminal'));
console.log(gradients.pastel('Soft pastel tones'));
console.log(gradients.cristal('Crystal clear output'));
// Custom multi-stop gradient
const customGrad = gradient(['#FF61D2', '#5271FF', '#12D8FA']);
console.log(customGrad('Custom linear gradient text'));
// HSV color wheel interpolation
const smoothGrad = gradient(['#ff0000', '#0000ff'], {
interpolation: 'hsv',
hsvSpin: 'long'
});
console.log(smoothGrad('HSV interpolated gradient'));Built-in palettes: rainbow · pastel · cristal · mind · passion · retro · fire · cyber · synthwave · aurora · sunset · vice · fruit · summer · atlas · sublime
Borders & Boxes
Render styled terminal boxes with title alignment, border colors, and customizable padding:
import { createBox, boxen } from 'clivibe/box';
// Fast styled box
console.log(createBox('Server running on port 3000', 'DEPLOYED', '#5271FF'));
// Advanced box configuration
console.log(boxen('Multi-line content\nAll systems operational', {
title: 'STATUS REPORT',
titleAlignment: 'center',
borderStyle: 'double', // 'round' | 'single' | 'double' | 'bold' | 'classic'
borderColor: '#12D8FA',
padding: 1,
margin: 1
}));Progress Bars
Smooth, gradient-capable terminal progress bars:
import { ProgressBar } from 'clivibe/progress';
const bar = new ProgressBar(100, {
width: 40,
gradient: ['#5271FF', '#FF61D2'],
format: 'Uploading :bar :percent (:current/:total)'
});
bar.update(45);
// Uploading ██████████████████░░░░░░░░░░░░░░ 45% (45/100)
bar.complete();Data Visualization (Sparklines & Charts)
Render inline sparklines or full 2D ASCII graphs directly in terminal output:
import { sparkline, plot } from 'clivibe/chart';
// Inline sparkline
const trend = sparkline([5, 12, 18, 9, 24, 35, 42, 28, 50, 65, 72, 58, 80, 95]);
console.log(`Throughput: ${trend}`);
// Throughput: ▂▂ ▃▄▄▃▅▆▆▅▇█
// 2D line plot with auto-scaled axes
console.log(plot([10, 25, 18, 34, 55, 42, 60, 35], {
height: 8,
label: 'Requests / sec'
}));Widgets (Tree, Gauge, Badge, Divider, Table)
import { renderTree, renderGauge, badge, divider, keyvalue } from 'clivibe/widgets';
import { renderTable } from 'clivibe';
// 1. Directory & Object Tree
renderTree({
name: 'src',
children: [
{ name: 'index.js' },
{
name: 'ui',
children: [{ name: 'colors.js' }, { name: 'widgets.js' }]
}
]
});
// 2. Graphical Percentage Gauge
console.log(renderGauge(78, { label: 'Memory Usage', width: 25 }));
// Memory Usage [███████████████████░░░░░░] 78%
// 3. Status Badges
console.log(badge('v1.2.0', '#5271FF') + ' ' + badge('PASS', '#00ff00'));
// 4. Section Divider
console.log(divider('BUILD METRICS'));
// 5. Aligned Key-Value Lists
keyvalue({
Environment: 'Production',
Node: process.version,
Status: 'Active'
});
// 6. Formatted ASCII Tables
console.log(renderTable(
['Command', 'Runtime', 'Status'],
[
['doctor', '45ms', 'Passed'],
['wtf', '12ms', 'Passed'],
['chart', '8ms', 'Passed']
]
));TrueColor Terminal Image Viewer
Decode and display PNG, BMP, and PPM images right in the terminal using 24-bit ANSI half-block characters:
import { renderImage } from 'clivibe/image';
// Automatically scales to fit terminal dimensions
await renderImage('./logo.png', { width: 60 });Spinners & Prompts
Zero-dependency interactive terminal prompts and animated spinners:
import { createSpinner, promptSelect, promptInput, promptConfirm } from 'clivibe';
// Loading spinner
const spinner = createSpinner('Analyzing codebase...').start();
await doAsyncWork();
spinner.stop('Analysis complete');
// Interactive selection
const selected = await promptSelect('Choose a template:', ['Express', 'Fastify', 'CLI Tool']);
// User text input
const name = await promptInput('Project name:', 'my-app');
// Confirmation dialog
const confirmed = await promptConfirm('Deploy to production?');Zero Dependencies
clivibe contains 0 external dependencies. Every color parser, gradient interpolator, image decoder, box renderer, chart plotter, and process inspector is implemented using native Node.js core modules (zlib, net, fs, crypto, child_process, readline).
Contributing
Contributions, issues, and feature requests are welcome.
