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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@adamhancock/tmuxdev

v1.0.8

Published

CLI tool to manage tmux sessions for development servers

Downloads

21

Readme

@adamhancock/tmuxdev

A CLI tool to manage tmux sessions for development servers, making it easy for tools like Claude to access console logs.

🚀 Installation

npm install -g @adamhancock/tmuxdev
# or
pnpm add -g @adamhancock/tmuxdev
# or
yarn global add @adamhancock/tmuxdev

📖 Usage

Quick Commands

# Quick start - creates/attaches to session for current directory
tmuxdev

# Interactive menu for session management
tmuxdev menu
tmuxdev m        # short alias

# Start and attach to session for current directory
tmuxdev start
tmuxdev s        # short alias

# Attach to existing session for current directory
tmuxdev attach
tmuxdev a        # short alias

# Show help
tmuxdev help
tmuxdev h        # short alias
tmuxdev --help   # or use flags
tmuxdev -h

Default Behavior

When you run tmuxdev without arguments, it automatically creates or attaches to a session named after your current directory and git branch (e.g., myproject-main, webapp-feature-auth).

Interactive Menu

When you run tmuxdev menu (or tmuxdev m), you get an interactive menu:

  • Start/Attach to current directory session - Manages a session named after your current folder and branch
  • Select from existing sessions - Browse and attach to any running tmux session
  • Kill a session - Safely terminate tmux sessions
  • Exit - Quit the tool

✨ Features

  • 🏷️ Smart Session Naming: Automatically combines folder and git branch names (e.g., myproject-main, myapp-feature-branch)
  • 🎯 Quick Commands: Jump straight into work with tmuxdev s for instant session start
  • 📋 Interactive Menu: User-friendly interface with arrow key navigation
  • 🔄 Session Management: Create, attach, list, and kill tmux sessions effortlessly
  • 🚀 Dev Server Integration: Automatically runs npm run dev when creating new sessions
  • ⚡ Fast Context Switching: Quickly jump between different project sessions
  • 🛡️ Graceful Exit Handling: Properly handles Ctrl+C interruptions

🎮 Tmux Controls

Once attached to a session:

  • Ctrl+B then D - Detach from session (keeps it running)
  • Ctrl+B then [ - Enter scroll/copy mode
  • Ctrl+B then % - Split pane vertically
  • Ctrl+B then " - Split pane horizontally
  • Ctrl+B then arrow keys - Navigate between panes

🔧 Requirements

  • Node.js 16+
  • tmux installed on your system
  • A project with a dev script in package.json (or modify the source to use your preferred command)

💡 Why tmuxdev?

This tool was created to solve a specific problem: when using AI assistants like Claude to help with development, they can't see your terminal output. By running your dev server in a tmux session, you can easily share logs and error messages by:

  1. Starting a session with tmuxdev s
  2. Letting your dev server run
  3. Copying relevant output to share with your AI assistant
  4. Detaching with Ctrl+B then D to keep it running

🤝 Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest new features
  • Submit pull requests

GitHub: https://github.com/adamhancock/tmuxdev

📄 License

MIT © Adam Hancock