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

trmx-node

v0.1.2

Published

A terminal chat interface for interacting with multiple AI models using Airtrain

Readme

trmx-node - Terminal AI Chat Interface

A command-line interface for interacting with multiple AI models, built with Airtrain.

Features

  • Chat with various AI models directly from your terminal
  • Store and manage conversation history
  • Support for multiple providers (Fireworks, OpenAI, Anthropic, etc.)
  • Configure and switch between different models
  • View AI's thinking process for supported models
  • Multi-line input support for longer prompts
  • Markdown rendering in responses

Installation

# Install globally
npm install -g trmx-node

# Or run directly from this directory
npm install
npm run build
node ./dist/cli.js

Usage

Start a new chat

trmx-node

List available chat sessions

trmx-node list
# Or
trmx-node -l

Continue an existing chat session

# By session ID (can be partial)
trmx-node <session_id>

# Or by session number from the list
trmx-node -c <session_number>

Delete a chat session

trmx-node --delete <session_number>

Select provider and model

# Set the active provider
trmx-node -p fireworks

# Set the active model
trmx-node -m fireworks/llama-v3-70b

# Set both
trmx-node -p fireworks -m fireworks/llama-v3-70b

List available providers and models

# List providers
trmx-node -lp

# List models for the active provider
trmx-node -lm

# List models for a specific provider
trmx-node -lm -p fireworks

Show AI's thinking process

If the model generates content with <think>...</think> tags, you can show the thinking process with:

trmx-node -s

Additional commands

# Show storage info
trmx-node info

# Set time display style
trmx-node --set-timestyle [iso|human|relative]

# Check for updates
trmx-node -v

# Update to the latest version
trmx-node --update

Configuration

trmx-node stores its configuration files in the following locations:

  • ~/.trmx-node/messages/ - Chat history
  • ~/.trmx-node/credentials/ - API keys
  • ~/.trmx-node/config/ - User settings

You can set API keys either through environment variables or by storing them in the credentials directory.

Environment Variables

  • FIREWORKS_API_KEY - API key for Fireworks AI
  • OPENAI_API_KEY - API key for OpenAI
  • ANTHROPIC_API_KEY - API key for Anthropic
  • GROQ_API_KEY - API key for Groq
  • TOGETHER_API_KEY - API key for Together AI
  • GOOGLE_API_KEY - API key for Google AI

In-Chat Commands

During a chat session, you can use the following:

  • Type exit, quit, or q to end the session
  • For multi-line input, use:
    • /m, /multiline, /multi, /p, or /paste (end with /end)
    • """ (end with """)
    • ''' (end with ''')

Development

# Clone the repository
git clone <repository-url>
cd trmx-node

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Run tests
npm test

License

MIT