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

tmux-workspace-cli

v1.0.2

Published

Interactive tmux workspace manager - Create, edit, and manage tmux workspaces with ease

Downloads

312

Readme

Tmux Workspace CLI

Interactive CLI tool for managing tmux workspaces easily.

npm version npm downloads License: MIT

Features

  • 🎨 Interactive workspace creation - Build complex layouts step-by-step with navigation
  • 📋 Full CRUD operations - Create, Read, Update, Delete, and Rename workspaces
  • 🚀 Quick launch - Start workspaces with one command
  • 💾 Configuration storage - JSON configs for easy editing
  • 🔧 Flexible layouts - Support for horizontal/vertical splits, custom sizes
  • ↩️ Navigation support - Go back and forth during creation/editing

Installation

Global Installation (Recommended)

npm install -g tmux-workspace-cli

Required directories will be created automatically on first use.

Local Development

git clone https://github.com/opengiver/tmux-workspace-cli.git
cd tmux-workspace-cli
npm install
npm link

Usage

Create a new workspace

tx create

Features:

  • Navigate back and forth during setup
  • Review configuration before saving
  • Edit any step before finalizing

This will guide you through:

  • Naming your workspace
  • Setting base directory
  • Adding panes (horizontal/vertical splits)
  • Configuring commands for each pane
  • Setting custom sizes
  • Review and confirm before creating

Load a workspace

tx load <workspace-name>

Example:

tx load deepenqt
tx load byungskerlog

List all workspaces

tx list
# or
tx ls

Interactive mode (default):

  • Shows all workspaces
  • Use ↑↓ arrows to select
  • Press Enter to load the selected workspace

Plain list mode:

tx ls --no-interactive

Shows all workspaces with pane counts and base directories without selection.

Edit a workspace

tx edit <workspace-name>

Edit options:

  • Change base directory
  • Add new panes
  • Edit existing panes (command, split, directory, resize)
  • Remove panes (except pane 0)
  • Edit script directly in your editor
  • Save and exit or cancel changes

Rename a workspace

tx rename <old-name> <new-name>
# or
tx mv <old-name> <new-name>

Example:

tx rename myproject my-awesome-project

Delete a workspace

tx delete <workspace-name>
# or
tx rm <workspace-name>

Requires confirmation before deletion.

Open config in editor

tx config                    # Open scripts directory
tx config <workspace-name>   # Open specific workspace script

Note: Make sure your EDITOR environment variable is set:

export EDITOR=vim
# or
export EDITOR=nvim
# or
export EDITOR="code --wait"

Example Workflow

# 1. Create a new workspace with navigation
tx create
# Follow prompts, go back if you make mistakes, review before creating

# 2. Load the workspace
tx load myproject

# 3. List all workspaces
tx ls

# 4. Edit workspace (add a pane, change commands, etc.)
tx edit myproject

# 5. Rename if needed
tx rename myproject my-app

# 6. Delete when done
tx delete my-app

Directory Structure

~/.tmux-scripts/          # Generated bash scripts
~/.tmux-cli-configs/      # JSON configurations

Tips

  • Use opencode to open VS Code in tmux
  • Use lazygit for git management
  • Small panes (5-12 lines) work well for logs/status
  • Main work pane should be 100-120 columns wide
  • You can go back during tx create to fix mistakes
  • Use tx edit to modify existing workspaces interactively
  • Use tx config for direct script editing

Troubleshooting

Editor not opening

If tx config or tx edit (with "Edit script directly") fails:

  1. Check your EDITOR variable:

    echo $EDITOR
  2. Set it properly:

    export EDITOR=vim
    # Add to ~/.zshrc or ~/.bashrc to persist
  3. For editors that need wait flag:

    export EDITOR="code --wait"
    export EDITOR="zed --wait"

Requirements

  • tmux
  • Node.js 18+
  • bash