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

@xiami_master/chatcli

v0.1.3

Published

Terminal AI Chat Client with beautiful UI

Downloads

501

Readme

ChatCLI

English | 中文

npm version License: MIT Node.js CI

A beautiful terminal AI chat client built with Node.js + Ink (React for CLI).

Supports any OpenAI-compatible API — OpenAI, Claude, DeepSeek, Ollama, and more.

Demo

Features

  • 💬 Multi-session chat management — organize conversations
  • 🤖 OpenAI-compatible API — works with any provider (OpenAI, Anthropic, DeepSeek, Ollama, etc.)
  • 📝 Markdown rendering with syntax highlighting
  • 🔍 Full-text history search across all sessions
  • 📋 System prompt presets — save and switch between prompt templates
  • ⚙️ Multiple model configurations — manage models with a built-in wizard
  • 💾 SQLite local storage — all data stays on your machine
  • 🔐 Encrypted API key storage (AES-256-CBC)
  • 📤 Export chat history to Markdown files
  • 🗑️ Session management — rename, clear, delete sessions

Install

npm install -g @xiami_master/chatcli

Quick Start

# Launch ChatCLI
chatcli

# Configure your first model via the interactive wizard
/config model

# Start chatting!

Commands

Type / followed by a command:

| Command | Alias | Description | |---------|-------|-------------| | /new | /n | Create new chat session | | /sessions | /s, /history | Show chat history | | /models | /m | Show model list | | /presets | /p | Show preset list | | /config | /c | Configure new model or preset | | /search | | Full-text search across history | | /use | | Switch active model or preset | | /rename | /r | Rename current session | | /clear | | Clear current session messages | | /export | | Export current session to Markdown | | /delete | /d, /del | Delete current session | | /help | /h, /? | Show available commands | | /quit | /q, /exit | Exit application |

Keyboard Shortcuts

| Key | Action | |-----|--------| | Enter | Send message / Execute command | | Tab | Toggle sidebar focus | | Escape | Close sidebar / Cancel edit | | Ctrl+C | Stop streaming / Exit | | Ctrl+D | Immediate exit | | Ctrl+L | New chat session | | ↑/↓ | Input history navigation |

Configuration

Default database: ~/.chatcli/data.db

Adding a New Model

# Interactive wizard
/config model

The wizard guides you through: Name → Endpoint → API Key → Model ID

Common API Endpoints

| Provider | Endpoint | |----------|----------| | OpenAI | https://api.openai.com/v1 | | Anthropic | https://api.anthropic.com | | OpenRouter | https://openrouter.ai/api/v1 | | DeepSeek | https://api.deepseek.com | | Local (Ollama) | http://localhost:11434/v1 |

Presets

# Add a system prompt preset
/config preset

# List and switch presets
/presets

Security

API keys are encrypted with AES-256-CBC before storage:

  • Encryption key stored in ~/.chatcli/.encryption_key (auto-generated, chmod 600)
  • Database directory restricted (chmod 700)
  • Keys decrypted only for API calls
  • Existing plaintext keys auto-encrypted on first run

Tech Stack

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT © 2663402852