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

@worldofz/cli-connect

v0.1.3

Published

Control your Mac or Windows terminal from your iPhone.

Readme

cli-connect

Control your Mac or Windows terminal from your iPhone.

Install

brew install errr0rr404/tap/cli-connect    # macOS / Linux
# or
npm install -g @worldofz/cli-connect       # any OS, including Windows

(Requires Node 18+. The package bundles native binaries for darwin-arm64, darwin-x64, linux-x64, and win32-x64. The Node wrapper picks the right one at runtime.)

Pair with your iPhone

  1. Install the cli-connect iOS app from TestFlight / the App Store.
  2. Sign in (Apple or Google).
  3. On the machine you want to control, run:
    cli-connect login
    The CLI prints a code, e.g.:
    ┌──────────────────────────────────────────────────────────────
    │ Open the cli-connect app on your iPhone (signed in)
    │ → Add Machine → enter this code:
    │
    │       ABCD-1234
    │
    │ This code expires in 15 minutes.
    └──────────────────────────────────────────────────────────────
    Waiting for confirmation....
  4. On your iPhone, tap + → Add Machine → Code, type the code, tap Pair.
  5. Back in the CLI, you'll see ✓ Logged in as "your-machine".

Run the agent

cli-connect serve

Listens on port 8910 by default. The iOS app connects directly to your machine over your LAN (or Tailscale, for cellular). Backend mediates pairing only — terminal traffic doesn't go through it.

Persistent tmux sessions

Tmux sessions survive disconnects forever (unlike a plain shell, which the agent only buffers for ~60s). When the iOS app opens the connect screen for a host, it auto-discovers tmux and shows:

  • Resume "" — one tap back into the last session you used.
  • A list of every running tmux session with kill / rename actions.
  • A + New session row pre-filled with the last name you typed (defaults to main).

Long-press a host in the list to skip the picker and jump straight back into your last session.

To pair the desktop and iPhone on the same tmux session, start it on the desktop and detach:

tmux new -s main
your-agent           # e.g. an AI CLI you want to keep an eye on
# Ctrl-b, then d

Then run cli-connect serve and on the iPhone tap Resume "main".

On Windows, install tmux in WSL. The agent detects WSL and runs wsl.exe tmux ... for you.

Other commands

cli-connect status        # show the saved login info
cli-connect logout        # forget the saved token
cli-connect serve --help  # all serve options

Auto-start at login

macOS

sudo cp $(which cli-connect) /usr/local/bin/cli-connect
# Then a LaunchAgent — see PLAN.md M8.

Windows

$action = New-ScheduledTaskAction -Execute (Get-Command cli-connect).Source -Argument "serve"
$trigger = New-ScheduledTaskTrigger -AtLogOn
Register-ScheduledTask -TaskName "cli-connect" -Action $action -Trigger $trigger

Where things live

  • Saved token: ~/Library/Application Support/cli-connect/agent.json (macOS), %APPDATA%\cli-connect\agent.json (Windows), ~/.config/cli-connect/agent.json (Linux). Mode 0600.
  • Backend: https://backend-production-a2f85.up.railway.app (the agent talks to this only during login and for periodic heartbeats).

What this is

cli-connect speaks a small WebSocket-based protocol to expose a real PTY (so vim/htop/tmux work) gated by HMAC-SHA256 derived from a per-machine secret issued at pairing time.

Source: https://github.com/Errr0rr404/cli-connect