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

nova-cli-test

v0.0.3

Published

A command-line interface built with Ink

Readme

Interactive User Management System

一个基于命令行的交互式用户管理系统,使用 React 和 Ink 构建。

功能特性

  • 🎨 精美的终端用户界面
  • ✅ 表单验证和错误处理
  • 💾 用户数据持久化存储 (JSON 文件)
  • 📋 用户列表查看和管理
  • ✏️ 用户信息编辑功能
  • 🗑️ 用户删除功能
  • ⌨️ 完整的键盘导航支持
  • 🔄 流畅的页面切换动画

界面预览

主界面 主界面和菜单选项

用户表单 用户信息填写表单

用户列表 用户列表和管理界面

安装

$ npm install --global my-ink-cli-01

使用方法

$ my-ink-cli-01

运行命令后,您将看到一个交互式界面,可以通过以下方式操作:

导航控制

  • ↑/↓ 箭头键: 在菜单选项间切换
  • Enter: 确认选择或提交表单
  • ← / Backspace: 返回上一步
  • Tab / Shift+Tab: 在表单字段间切换
  • Esc: 返回主菜单或退出当前操作
  • Ctrl+C: 退出程序

功能说明

  1. 填写新用户信息

    • 按步骤填写用户信息
    • 包含姓名、邮箱、年龄、部门和经验级别
    • 实时验证输入数据
  2. 查看和编辑用户信息

    • 浏览已有用户列表
    • 选择用户进行编辑或删除
    • 确认删除操作以防止误删

技术架构

核心技术栈

组件结构

App
├── HomeScreen (首页和菜单)
├── MainForm (主表单)
│   ├── ProgressBar (进度条)
│   └── FormFields (表单字段)
└── User Management
    ├── UserListScreen (用户列表)
    └── UserEditScreen (用户编辑)

数据持久化

用户数据存储在项目目录下的 data/users.json 文件中,采用 JSON 格式存储。

开发指南

本地开发

# 克隆项目
git clone <repository-url>
cd my-ink-cli-01

# 安装依赖
npm install

# 构建项目
npm run build

# 运行开发版本
npm run dev

项目结构

my-ink-cli-01/
├── source/           # 源代码目录
│   ├── components/   # React组件
│   ├── services/     # 数据服务
│   ├── app.tsx       # 主应用组件
│   └── cli.tsx       # CLI入口
├── data/             # 数据存储目录
├── dist/             # 编译输出目录
└── README.md         # 项目文档

组件说明

  • HomeScreen: 应用首页和主菜单
  • MainForm: 用户信息填写表单
  • ProgressBar: 表单填写进度指示器
  • FormFields: 表单字段组件
  • UserListScreen: 用户列表和管理界面
  • UserEditScreen: 用户信息编辑界面

贡献

欢迎提交 Issue 和 Pull Request 来改进这个项目。

许可证

MIT © 2025