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

@xec-sh/kit

v0.11.1

Published

Terminal prompts, spinners, tables, and colors for command-line applications

Readme

@xec-sh/kit

Terminal prompts, spinners, tables and colors for command-line applications. One runtime dependency (sisteransi). Node.js 18+ and Bun.

npm install @xec-sh/kit

Prompts

import { text, select, confirm, password, isCancel } from '@xec-sh/kit';

const name = await text({ message: 'What is your name?' });
if (isCancel(name)) process.exit(0);   // every prompt returns a cancel symbol on Ctrl-C

const color = await select({
  message: 'Pick a color',
  options: [
    { value: 'red', label: 'Red' },
    { value: 'blue', label: 'Blue', hint: 'recommended' },
    { value: 'green', label: 'Green', disabled: true },
  ],
});

const ok = await confirm({ message: 'Continue?' });
const secret = await password({ message: 'Enter token:' });
import { multiline } from '@xec-sh/kit';

// Enter inserts a newline; Enter twice at the end submits.
const description = await multiline({
  message: 'Describe the change',
  placeholder: 'What, and why',
});
import { multiselect, autocomplete, selectKey, groupMultiselect, date } from '@xec-sh/kit';

const tools = await multiselect({
  message: 'Select tools',
  options: [{ value: 'git' }, { value: 'docker' }, { value: 'k8s' }],
});

// Autocomplete filters a fixed option list as the user types
const pkg = await autocomplete({
  message: 'Search packages',
  options: [{ value: 'react' }, { value: 'vue' }, { value: 'svelte' }],
  filter: (search, option) => option.value.includes(search),   // optional; label/hint/value by default
});

const when = await date({ message: 'Pick a date' });

// Answer with a single keypress: the value is the key
const action = await selectKey({
  message: 'Action?',
  options: [
    { value: 'd', label: 'Deploy' },
    { value: 'r', label: 'Rollback' },
  ],
});

const features = await groupMultiselect({
  message: 'Enable features',
  options: {
    Frontend: [{ value: 'react' }, { value: 'vue' }],
    Backend: [{ value: 'express' }, { value: 'fastify' }],
  },
});

Output

import { log, note, box, spinner, progress, table, interactiveTable, prism } from '@xec-sh/kit';

log.info('Processing...');
log.success('Complete');
log.warn('Caution');
log.error('Failed');
log.step('Step 1');

note('Remember to commit', 'Reminder');
box('Boxed content');

const s = spinner();
s.start('Loading...');
await doWork();
s.stop('Done');

const bar = progress({ max: 100 });
bar.start('Downloading');
bar.advance(30);
bar.stop('Downloaded');

// Tables take row objects plus column definitions
table({
  data: [
    { name: 'api', status: 'running' },
    { name: 'web', status: 'stopped' },
  ],
  columns: [
    { key: 'name', header: 'Name' },
    { key: 'status', header: 'Status' },
  ],
});

// Interactive: navigation, sorting, row selection
const picked = await interactiveTable({
  data: rows,
  columns,
  selectable: 'multiple',   // 'none' | 'single' | 'multiple'
  sortable: true,
});

// Colors: 16/256/truecolor with automatic terminal detection
const styled = prism.hex('#ff0000').bold('Error!');
const green  = prism.rgb(0, 255, 0)('Green text');
const blue   = prism.hsl(200, 100, 50)('Blue text');

Every component draws its colours from one theme of seven roles — accent, activity, success, warning, error, info, muted — so restyling the kit is one call:

import { prism, updateSettings } from '@xec-sh/kit';

updateSettings({ theme: { accent: prism.green, activity: prism.cyan } });

Exports

| Export | Description | |--------|-------------| | text / confirm / password | Basic input prompts | | select / multiselect / groupMultiselect | List selection; options support label, hint, disabled | | autocomplete / autocompleteMultiselect | Type-to-filter selection over an option list | | selectKey | Single-keypress selection | | date | Date picker | | spinner | Spinner with styles: braille, circle, dots, line, arrow, binary, moon | | progress | Progress bar (max, advance(step), spinner-style start/stop) | | note / box | Bordered message blocks | | table / interactiveTable | Static render and interactive navigation/sort/selection | | exportToCSV / exportToTSV / exportToJSON / exportToHTML / exportToMarkdown / exportToText | Table data export | | log | Leveled output: info, success, warn, error, step | | taskLog / tasks / group / intro / outro / cancel | Flow helpers for multi-step CLIs | | prism | Color builder: hex/rgb/hsl/css names, 16/256/truecolor | | isCancel | Detect Ctrl-C cancellation of any prompt | | stream | Streamed output helpers | | settings / updateSettings | Global prompt appearance settings (e.g. withGuide, theme) | | multiline | Multi-line text input; Enter is a newline, Enter twice submits |

License

MIT