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

@exonix/tchat-cli

v1.1.13

Published

TChat CLI - AI friendly command line tool for TChat platform

Readme

@exonix/tchat-cli

TChat platform CLI tool - AI friendly command line interface.

Install

npm install -g @exonix/tchat-cli

Configure

Token 获取方式(按优先级):

  1. 容器环境变量 TCHAT_TOKEN(若存在则直接使用)
  2. 环境变量 TCHAT_ACCESSTOKEN
  3. 配置文件 ~/.tchat-cli/config.yaml 中的 access_token 字段
  4. 通过 tchat-cli token get --uid <UID> 获取并自动保存
# 方式一:容器环境变量(最高优先级)
export TCHAT_TOKEN="your_access_token"

# 方式二:环境变量
export TCHAT_ACCESSTOKEN="your_access_token"

# 方式三:H5 登录(自动保存到配置文件)
tchat-cli auth login

# 方式四:通过 IDM 接口获取 token
tchat-cli token get --uid <UID>

Usage

# Show help
tchat-cli --help

# Authentication
tchat-cli auth login
tchat-cli auth status

# Token management
tchat-cli token get --uid <UID>

# Widget categories
tchat-cli widget list
tchat-cli widget list --keyword 考勤

# Message search
tchat-cli msg search --session "g@10000219039" --sender user001 --type SESSION_RECENT --limit 20

# Contact search(支持多关键词 OR 关系)
tchat-cli contact search -k "张三"
tchat-cli contact search -k "技术" -k "经理" --page 0 --size 20

# File management
tchat-cli file list --type 1
tchat-cli file list --type 1 --name "项目"

# IM
tchat-cli im session-list
tchat-cli im message-search --session "g@10001" --limit 100

# Schedule
tchat-cli schedule list --uid zhangsan --date 1704067200000 --date2 1706745600000
tchat-cli schedule create -d '{"subject":"会议","startTime":1704182400000,"endTime":1704186000000}'
tchat-cli schedule room-list --start 1704182400000 --end 1704186000000

# Meeting
tchat-cli meeting create -d '{"type":0,"subject":"评审","startTime":1704182400000,"endTime":1704186000000,"meetingType":0}'
tchat-cli meeting list
tchat-cli meeting history
tchat-cli meeting record-settings -d '{"meetingRecordId":"rec_xxx","meetingId":"mtg_xxx","sharingConfig":{"enableSharing":true,"shareScope":1}}'

# Atlas - 挑T帖搜索(仅职员)
tchat-cli atlas search --condition "技术创新" --start 1715587200000 --end 1716192000000
tchat-cli atlas search --condition "项目管理" --start 1715587200000 --end 1716192000000 --page 1 --size 20

Docs

See USAGE.md

License

MIT