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

chaiterm

v0.0.7

Published

Access your terminal from anywhere - CLI tool for chaiterm

Readme

chaiterm CLI

Command-line tool for accessing your terminal from anywhere.

⚠️ Under Development

This package is currently under active development and is not ready for production use. Features may be incomplete, unstable, or subject to breaking changes. Use at your own risk.

Installation

npm install -g chaiterm

Commands

chaiterm init

Authenticate and initialize configuration.

chaiterm init

chaiterm start

Start terminal access - connects your local PTY to the gateway.

chaiterm start

Once connected, access your terminal at: https://chaiterm.com/terminals

chaiterm expose <port>

Expose a local port to the internet.

chaiterm expose 3000

Your app will be available at a random subdomain like: https://k7x9m2.chaiterm.com

chaiterm status

Show current connection status and configuration.

chaiterm status

chaiterm logout

Clear stored credentials.

chaiterm logout

chaiterm kill

Kill all running chaiterm processes (useful when PTY instances get stuck).

chaiterm kill

Architecture

The CLI wraps two components:

  1. pty-client - Connects to chaiterm.com/ws/pty via WebSocket, spawns local PTY
  2. frp-wrapper - Wraps frpc binary for port exposure tunnels

Configuration

Config is stored in ~/.config/chaiterm/config.json (or platform equivalent).

Using Custom Config Files

Use the --config (or -c) flag to specify a different config file:

# Use a local development config
chaiterm --config ./local-config.json start

# Use a specific config file
chaiterm -c ~/.config/chaiterm/dev.json status

Config File Format

{
  "email": "[email protected]",
  "gatewayUrl": "wss://chaiterm.com/ws/pty",
  "frpServerAddr": "frp.chaiterm.com",
  "frpServerPort": 7000
}

| Field | Description | Default | |-------|-------------|---------| | email | Your email for terminal access | (required) | | gatewayUrl | Terminal gateway WebSocket URL | wss://chaiterm.com/ws/pty | | frpServerAddr | frp server address | frp.chaiterm.com | | frpServerPort | frp server port | 7000 |

Requirements

  • Node.js 18+
  • For port exposure: frpc binary (install via brew install frpc on macOS)

Development

# Install dependencies
bun install

# Build
bun run build

# Watch mode
bun run dev

Local Development

To test CLI against a local server:

cd packages/cli

# 1. Create a local config file
echo '{
  "email": "[email protected]",
  "gatewayUrl": "ws://localhost:3000/ws/pty"
}' > local-config.json

# 2. Build and run with the local config
bun run build
node dist/bin/chaiterm.mjs --config ./local-config.json start

Testing Remote Server

To test against the production server, use the default config (no --config flag):

node dist/bin/chaiterm.mjs start