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

@ice1/glyphx

v0.2.0

Published

πŸ’» The terminal environment was fantastic and beautiful.

Readme

@ice1/glyphx

πŸ’» The terminal environment was fantastic and beautiful.

Installation

npm install @ice1/glyphx

Usage

import {
    Cursor,
    Screen,
    Input,
    Button,
    Container,
    ContainerGroup,
    Select,
    Radio,
    CheckBox,
    Label,
    Event,
    ContainerStyle,
    Textarea,
    LineChart,
    ScatterChart,
    BarChart,
    PieChart,
} from "../src";
import * as readline from "readline";
import chalk from "chalk";

const screen = new Screen();
screen.enter();
process.stdin.setRawMode(true);
Cursor.hide();

const S: ContainerStyle = { width: 32, height: 16 };

// ─── Container 1 : Input fields ───────────────────────────────────────────────
const inputName = new Input(24, "e.g. Jane Doe");
const inputEmail = new Input(24, "e.g. [email protected]");
const inputPass = new Input(24, "password", "password");
const inputBio = new Textarea(24, 6, "", "Input your bio");
const submitBtn = new Button(24, "Submit", "primary", () => {}, render);

const c1 = new Container(S, [
    new Label(""),
    new Label("# Input", "white"),
    new Label(""),
    new Label("Name", "gray"),
    inputName,
    new Label(""),
    new Label("Email", "gray"),
    inputEmail,
    new Label(""),
    new Label("Password", "gray"),
    inputPass,
    new Label(""),
    new Label("Bio", "gray"),
    inputBio,
    new Label(""),
    submitBtn,
]);

// ─── Container 2 : Select + Radio ─────────────────────────────────────────────
const selectLang = new Select(
    24,
    ["TypeScript", "Rust", "Go", "Python", "C++"],
    0,
);

const radioTheme = new Radio(["Light", "Dark", "System"], 1);

const c2 = new Container(S, [
    new Label(""),
    new Label("# Select", "white"),
    new Label(""),
    new Label("Language", "gray"),
    selectLang,
    new Label(""),
    new Label("# Radio", "white"),
    new Label(""),
    new Label("Theme", "gray"),
    radioTheme,
]);

// ─── Container 3 : CheckBoxes ──────────────────────────────────────────────────
const checks = [
    new CheckBox("Auto-save", true),
    new CheckBox("Word wrap", true),
    new CheckBox("Line numbers", true),
    new CheckBox("Spell check", false),
    new CheckBox("Minimap", false),
    new CheckBox("Bracket match", true),
    new CheckBox("Format on save", false),
    new CheckBox("Tab completion", true),
];

const c3 = new Container(S, [
    new Label(""),
    new Label("# CheckBox", "white"),
    new Label(""),
    ...checks,
]);

const allContainers = [c1, c2, c3];
const group = new ContainerGroup(allContainers);

const COLS = [1, 34, 67] as const;

// ── 꺾은선 ────────────────────────────────────────────────────────────────
const lineChart = new LineChart(24, 8, [
    {
        values: [3, 7, 2, 9, 5, 11, 8, 14, 6, 12],
        label: "Sales",
        color: "cyan",
    },
    {
        values: [1, 4, 6, 3, 8, 5, 9, 7, 10, 8],
        label: "Profit",
        color: "yellow",
    },
]);

// ── 산점도 ────────────────────────────────────────────────────────────────
const scatter = new ScatterChart(24, 8, [
    {
        points: Array.from({ length: 20 }, () => ({
            x: Math.random() * 10,
            y: Math.random() * 10,
        })),
        label: "A",
        color: "green",
    },
    {
        points: Array.from({ length: 15 }, () => ({
            x: Math.random() * 10 + 2,
            y: Math.random() * 5 + 3,
        })),
        label: "B",
        color: "magenta",
    },
]);

// ── λ§‰λŒ€ ──────────────────────────────────────────────────────────────────
const bar = new BarChart(
    24,
    8,
    [42, 87, 35, 68, 91, 54, 76, 23],
    ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug"],
);

// ── 원 ────────────────────────────────────────────────────────────────────
const pie = new PieChart(24, 8, [
    { value: 35, label: "Chrome", color: "cyan" },
    { value: 28, label: "Safari", color: "yellow" },
    { value: 18, label: "Firefox", color: "green" },
    { value: 11, label: "Edge", color: "magenta" },
    { value: 8, label: "Others", color: "gray" },
]);

function render(): void {
    for (let i = 0; i < allContainers.length; i++) {
        allContainers[i]!.renderAt(1, COLS[i] ?? 1);
    }

    for (let i = 0; i < lineChart.lineCount(); i++)
        lineChart.renderLine(i, 1 + i, 100, 80);
    for (let i = 0; i < scatter.lineCount(); i++)
        scatter.renderLine(i, 9 + i, 100, 80);
    for (let i = 0; i < bar.lineCount(); i++) bar.renderLine(i, 1 + i, 125, 80);
    for (let i = 0; i < pie.lineCount(); i++) pie.renderLine(i, 9 + i, 125, 80);

    Cursor.moveTo(process.stdout.columns - 1, 1);
    process.stdout.write(
        chalk`{gray  ←/β†’ }{white  switch panels }{gray  ↡ }{white  enter panel }{gray  β‡₯ }{white  next field }{gray  βŽ‹ }{white  back }{gray  βŒƒC }{white  quit }`,
    );
}

render();

const event = new Event(process, screen);
event.add({
    name: "main",
    next(key: readline.Key) {
        group.handleKey(key);
        render();
    },
});
event.setup();

Run

npm run test

ScreenShot

image