@alumbwe/anvil

中文文档
1.0.70发布于 2026/11/05ES Module近 30 天下载 4271

A Terminal User Interface (TUI) package built with OpenTUI and React.

原始使用文档
文档目录7 节
  1. Installation
  2. Development
  3. Testing
  4. Interactive E2E Testing
  5. Build
  6. Run
  7. Features

@anvil/cli

A Terminal User Interface (TUI) package built with OpenTUI and React.

Installation

bun install

Development

Run the TUI in development mode:

bun run dev

Testing

Run the test suite:

bun test

Interactive E2E Testing

For testing interactive CLI features, install tmux:

# macOS
brew install tmux

# Ubuntu/Debian
sudo apt-get install tmux

# Windows (via WSL)
wsl --install
sudo apt-get install tmux

Then run the proof-of-concept:

bun run test:tmux-poc

Note: When sending input to the CLI via tmux, you must use bracketed paste mode. Standard send-keys drops characters.

# ❌ Broken: tmux send-keys -t session "hello"
# ✅ Works:  tmux send-keys -t session $'\e[200~hello\e[201~'

See tmux.knowledge.md for comprehensive tmux documentation and src/tests/README.md for testing documentation.

Build

Build the package:

bun run build

Run

Run the built TUI:

bun run start

Or use the binary directly:

anvil-tui

Features

  • Built with OpenTUI for modern terminal interfaces
  • Uses React for declarative component-based UI
  • TypeScript support out of the box

版本与发布记录

@alumbwe/anvil 共发布 54 个版本,首次发布于 2026/08/18;过去 12 个月发布了 54 个版本。

版本发布日期距今
1.0.70latest2026/11/051 天前
1.0.692026/11/051 天前
1.0.682026/11/033 天前
1.0.672026/11/033 天前
1.0.662026/11/033 天前
1.0.652026/11/033 天前

关于 @alumbwe/anvil 的常见问题

@alumbwe/anvil 是什么?

A Terminal User Interface (TUI) package built with OpenTUI and React.

如何安装 @alumbwe/anvil?

在项目目录运行 npm install @alumbwe/anvil,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 anvil,可以用 npx anvil 直接运行。

@alumbwe/anvil 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/alumbwe__anvil 是否存在。

@alumbwe/anvil 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@alumbwe/anvil 可以商用吗?

@alumbwe/anvil 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@alumbwe/anvil 的下载量有多少?

根据 npm 官方下载统计,@alumbwe/anvil 在 2026/10/06 – 2026/11/04 这 30 天内被下载 4,271 次,日均约 142 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@alumbwe/anvil 还在维护吗?

最新版本 1.0.70 发布于 2026/11/05(1 天前);至今共发布 54 个版本,其中过去 12 个月发布了 54 个;首次发布于 2026/08/18。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。