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

irodori

v0.1.0

Published

Beautiful terminal UI for Node.js — irodori (彩り)

Downloads

106

Readme

irodori

Beautiful terminal UI for Node.js — inspired by the Python library rich

A zero-dependency, all-in-one terminal UI library that brings Rich-like markup, tables, progress bars, spinners, and live rendering to Node.js.

irodori demo

Features

  • Markup[bold red]Hello[/] World style inline formatting
  • Tables — Automatic column sizing with Unicode-aware width calculation
  • Panels — Bordered content boxes with title and padding
  • Progress — Multi-task progress bars with ETA, spinners, and transfer speed
  • Status — Spinner-based status indicator for operations with unknown duration
  • Live — Efficient cursor-based rendering with flicker-free updates
  • Color — Automatically detects terminal color support (TrueColor / 256 / Basic / None)
  • Emoji:emoji_name: shorthand replacement with actual emoji characters
  • Zero dependencies — No runtime dependencies; only devDependencies for build and test

Requirements

  • Node.js 18 or later

Installation

npm install irodori

Quick Start

import { console } from 'irodori';

// Markup-styled output
console.print('[bold green]Success![/] Task completed.');

// Horizontal rule
console.rule('Section Title');

// Timestamped log (uses irodori's enhanced console)
console.log('Server started on port 3000');

Usage

Markup

import { console } from 'irodori';

console.print('[bold]Bold[/] [italic red]Italic Red[/] [underline]Underline[/]');
console.print('[#ff8800]Hex color[/] [bright_cyan]Named color[/]');
console.print('[link=https://example.com]Click here[/]');

Table

import { Table, console } from 'irodori';

const table = new Table({
  title: 'Users',
  columns: [
    { header: 'Name' },
    { header: 'Email' },
    { header: 'Role', justify: 'center' },
  ],
});

table.addRow(['Alice', '[email protected]', 'Admin']);
table.addRow(['Bob', '[email protected]', 'User']);

console.print(table);

Panel

import { Panel, console } from 'irodori';

const panel = new Panel('Hello from [bold]irodori[/]!', {
  title: 'Welcome',
  border: 'rounded',
});

console.print(panel);

Progress

import { Progress } from 'irodori';

await Progress.run(async (progress) => {
  const taskId = progress.addTask('Downloading...', { total: 100 });

  for (let i = 0; i < 100; i++) {
    await new Promise((r) => setTimeout(r, 50));
    progress.advance(taskId);
  }
});

Status / Spinner

import { status } from 'irodori';

const result = await status('Processing...', async () => {
  await new Promise((r) => setTimeout(r, 2000));
  return 'done';
});

Live Rendering

import { Live } from 'irodori';

await Live.run(async (live) => {
  for (let i = 0; i <= 10; i++) {
    live.update(`Step ${i}/10`);
    await new Promise((r) => setTimeout(r, 200));
  }
});

Color Level Detection

irodori automatically detects your terminal's color capabilities:

| Level | Description | |-------|-------------| | ColorLevel.TrueColor | 16 million colors (24-bit) | | ColorLevel.Color256 | 256 colors | | ColorLevel.Basic | 16 standard colors | | ColorLevel.None | No color (plain text fallback) |

You can override detection:

import { Console, ColorLevel } from 'irodori';

const con = new Console({ colorLevel: ColorLevel.TrueColor });

API Overview

Console

| Method | Description | |--------|-------------| | print(...args) | Output markup strings or Renderable objects | | log(message) | Timestamped log output | | rule(title?) | Horizontal rule with optional title | | line(count?) | Print empty lines | | printException(error) | Pretty-print an error with stack trace | | capture(fn) | Capture output as a string (useful for testing) |

Widgets

| Class | Description | |-------|-------------| | Table | Auto-sized table with borders and alignment | | Panel | Bordered content box with title | | Rule | Horizontal rule (standalone widget) |

Progress Columns

| Class | Description | |-------|-------------| | SpinnerColumn | Animated spinner | | TextColumn | Task description with template placeholders | | BarColumn | Visual progress bar | | PercentageColumn | Percentage display | | TimeElapsedColumn | Elapsed time (h:mm:ss) | | TimeRemainingColumn | Estimated remaining time | | FileSizeColumn | Human-readable file size | | TransferSpeedColumn | Transfer speed (bytes/s) | | MofNCompleteColumn | M/N completion count |

Renderable Interface

Any object implementing the Renderable interface can be passed to console.print():

import type { Renderable, RenderOptions } from 'irodori';

const widget: Renderable = {
  render(options: RenderOptions): string[] {
    return [`Width: ${options.width}, Colors: ${options.colorLevel}`];
  },
};

License

MIT