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

@1-/bar

v0.1.0

Published

TTY-aware command-line progress bar and status display utility

Readme

English | 中文


@1-/bar : TTY-aware command-line progress bar and status display

Functionality

TTY-aware command-line progress bar and status display utility for Node.js applications. Provides spinner animation, task tracking, ETA estimation, and safe logging that doesn't disrupt the display.

Usage demonstration

npm install @1-/bar
import bar from '@1-/bar';

const [start, stop, incr, log] = bar();

// Start progress bar with total tasks
start(100);

// Log subtasks
log.start('Processing files');

// Increment progress
for (let i = 0; i < 100; i++) {
  incr();
  // Simulate work
  await new Promise(resolve => setTimeout(resolve, 10));
}

log.end('Processing files');
stop();

Design rationale

The implementation uses terminal escape sequences for efficient rendering without disrupting the display. It maintains state for progress tracking, task management, and timing calculations for ETA estimation.

Technology stack

  • Node.js runtime
  • Standard JavaScript modules
  • Terminal escape sequences for TTY control
  • Set data structure for task tracking

Code structure

src/
├── _.js          # Main module exporting progress utilities

Historical background

The Mulan Public Software License (MulanPSL) is an open-source license developed in China, designed to be compatible with international open-source practices while addressing local legal requirements. Version 2.0, released in 2020, improved compatibility with other licenses and clarified terms for patent grants and trademark usage.

About

This library is developed by WebC.site.

WebC.site: A new paradigm of web development for AI


@1-/bar : TTY 感知的命令行进度条及状态显示

功能介绍

TTY 感知的命令行进度条及状态显示工具,适用于 Node.js 应用程序。提供旋转动画、任务跟踪、ETA 预估及安全日志输出功能,确保日志不会破坏进度条显示。

使用演示

npm install @1-/bar
import bar from '@1-/bar';

const [start, stop, incr, log] = bar();

// 启动进度条并设置总任务数
start(100);

// 记录子任务
log.start('处理文件');

// 增加已完成任务数
for (let i = 0; i < 100; i++) {
  incr();
  // 模拟工作
  await new Promise(resolve => setTimeout(resolve, 10));
}

log.end('处理文件');
stop();

设计思路

实现采用终端转义序列进行高效渲染,避免显示中断。维护进度跟踪、任务管理及时间计算状态,支持 ETA(预估完成时间)估算。

技术栈

  • Node.js 运行时
  • 标准 JavaScript 模块
  • 终端转义序列实现 TTY 控制
  • Set 数据结构进行任务跟踪

代码结构

src/
├── _.js          # 主模块,导出进度工具函数

历史故事

木兰公共许可证(MulanPSL)是中国开发的开源许可证,旨在兼容国际开源实践同时满足本地法律要求。2.0 版本于 2020 年发布,提升了与其他许可证的兼容性,并明确了专利授权和商标使用条款。

关于

本库由 WebC.site 开发。

WebC.site : 面向人工智能的网站开发新范式