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

astr-tui

v0.1.0

Published

Terminal workbench for AstrBot Dashboard

Readme

astr-tui

Terminal workbench for AstrBot Dashboard, built with Node.js, TypeScript, React, and Ink.

astr-tui brings the common AstrBot WebUI workflows into a keyboard-driven terminal UI: chat, status charts, live logs, command/tool toggles, plugins, personas, configuration, providers, and platforms.

Install

npm install -g astr-tui

Node.js 20 or newer is required.

Quick Start

Log in to your AstrBot Dashboard:

astr-tui login --server http://localhost:6185 --username astrbot

Open the TUI:

astr-tui --server http://localhost:6185

If you omit --server, astr-tui uses the saved server from setup/login or falls back to http://localhost:6185.

Commands

astr-tui                         # open the terminal workbench
astr-tui login                   # log in and store the Dashboard JWT
astr-tui logout                  # remove the stored Dashboard JWT
astr-tui status                  # check saved session and AstrBot version
astr-tui --lang zh-CN            # run with Chinese UI
astr-tui --lang en-US            # run with English UI

login also supports non-interactive password input:

echo "your-password" | astr-tui login --server http://localhost:6185 --username astrbot --password-stdin

Features

  • Chat workspace with WebChat sessions and streaming replies.
  • Runtime status page with message/model usage summaries and terminal charts.
  • Live console logs with colored log levels and scrolling.
  • Command and function-tool management.
  • Plugin management, plugin market browsing, updates, installs, reloads, and schema-based config editing.
  • Persona management with folders and editable persona fields.
  • AstrBot normal/system configuration editing based on Dashboard config metadata.
  • Provider source/model management, model fetch, test status, and editable settings.
  • Platform adapter management, settings, delete/toggle actions, and scan-login flows where supported.
  • English and Chinese UI.

Keyboard

  • Tab: switch main sections.
  • Left / Right: switch tabs or move between row actions.
  • Up / Down: move through lists, rows, settings, and actions.
  • PageUp / PageDown: scroll larger views.
  • Enter: open, toggle, run, edit, or save the selected item depending on context.
  • Esc: close dialogs or return from edit mode.
  • Ctrl+C: exit.

The TUI is designed around visible buttons and focused rows. In most screens, move to the action you want and press Enter.

Authentication

astr-tui logs in through the AstrBot Dashboard API and stores the JWT locally.

When available, tokens are stored in the system keychain through keytar. If keytar is unavailable or fails to load on your platform, astr-tui automatically falls back to:

~/.astr-tui/tokens.json

If keytar prints optional dependency warnings during install, the package can still work through the file-based fallback.

Development

npm install
npm run build
npm run dev -- --server http://localhost:6185

Useful checks:

npm run typecheck
npm test
npm run build
npm pack --dry-run

Publishing

The package includes a prepublishOnly guard that runs typecheck, tests, and build before publishing.

npm publish

License

MIT