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

codemux

v0.1.9

Published

Terminal multiplexer for AI coding CLIs - code from anywhere with mobile-ready UI

Readme

CodeMux

A specialized terminal multiplexer for AI coding CLIs (claude, gemini, aider, etc.) with cross-platform React Native UI. Unlike generic terminal multiplexers, CodeMux uses a server-client architecture optimized for AI code agents and provides native mobile and web interfaces for CLI interactions.

Features

  • Server-Client Architecture: tmux-like session management with persistent AI agent sessions
  • Mobile-Ready Interface: Code from anywhere with React Native UI that runs on phones, tablets, and desktops
  • Smart Prompt Detection: Intercepts interactive prompts and provides native web UI components
  • Session Persistence: Sessions survive client disconnection and can be reattached
  • Multi-Client Access: Multiple clients can connect to the same session simultaneously
  • Unified Web Interface: Single web server manages all sessions across projects
  • Project Management: Organize sessions by project with centralized management
  • Real-time Updates: WebSocket-based communication for responsive interactions

Quick Start

Installation

Homebrew (Recommended)

# Install from our Homebrew tap
brew install codemuxlab/tap/codemux

npm

# Install globally via npm
npm install -g codemux

# Or run directly without installing
npx codemux claude

From Source

For development or if you prefer building from source:

# Clone the repository
git clone https://github.com/codemuxlab/codemux-cli
cd codemux

# Setup development environment (installs all dependencies)
just setup

# Or manually:
cargo build --release
cd app && npm install

Prerequisites for building from source: Rust (latest stable), Node.js 18+, and optionally just command runner.

Usage

Server-Client Architecture (0.1+)

CodeMux uses a server-client model similar to tmux. The server manages all AI agent sessions and the client connects to these sessions.

# Start a Claude session (auto-starts server if needed)
codemux claude

# Server management
codemux server start            # Start server explicitly (optional --port, --detach)
codemux server status           # Check server status  
codemux server stop             # Stop server
codemux stop                    # Alternative stop command

# Session management
codemux list                    # List all active sessions
codemux attach <session-id>     # Attach to existing session
codemux kill-session <session-id>  # Terminate specific session

# Session continuity options
codemux claude --continue              # Continue most recent session
codemux claude --resume <session>     # Resume specific session

# Additional options
codemux claude --open                  # Auto-open web interface
codemux claude --logfile /path/to/log  # Log to file

Project Management

# Add a project  
codemux add-project /path/to/project --name "My Project"

# List projects
codemux list-projects

# Create session in project context
codemux claude --project <project-id>

Running server as system service (Optional)

For persistent server operation, you can install the server as a system service:

With PM2:

# Install PM2 globally
npm install -g pm2

# Start server with PM2
pm2 start codemux --name "codemux-server" -- server start

# Auto-start server on system boot
pm2 startup
pm2 save

With systemd (Linux):

# Create systemd service file
sudo tee /etc/systemd/system/codemux.service > /dev/null <<EOF
[Unit]
Description=CodeMux Server
After=network.target

[Service]
Type=simple
User=$USER
ExecStart=$(which codemux) server start
Restart=always

[Install]
WantedBy=multi-user.target
EOF

# Enable and start service
sudo systemctl enable codemux
sudo systemctl start codemux

Web Interface

Once the server is running, open http://localhost:8080 in your browser to access all sessions (or use --open to open automatically):

  • High-Performance Terminal: Grid-based rendering with independent cell updates
  • Native UI Components for interactive prompts:
    • Text inputs with proper Enter key handling
    • Multi-select checkboxes and dropdowns
    • File/path pickers
    • Confirmation dialogs
  • Real-time Terminal Updates: WebSocket-based with optimized JSON payloads
  • Session Management: Switch between multiple AI agent sessions
  • Project Organization: Group sessions by development projects
  • Debug Tools: JSONL session capture and analysis

Supported Code Agents

Currently Supported

  • claude (Claude Code CLI) - Full support with session continuity

Coming Soon

  • gemini (Google Gemini CLI)
  • aider (AI pair programming)
  • cursor (Cursor CLI)
  • continue (Continue dev CLI)

Note: While the codebase includes configurations for multiple agents, only Claude is fully supported and tested at this time. Other agents are available in the whitelist but may have limited functionality.

Add more agents by editing the config file at ~/.config/codemux/config.toml.

Development

For development setup, building, and contributing, see DEVELOPMENT.md.

License

MIT