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

agent-connect

v1.0.13

Published

Push notifications for AI coding agents — get notified when Claude Code, Copilot, or other agents need attention

Readme

Agent Connect

Terminal session management and push notifications for AI coding agents. Monitor, control, and interact with agent sessions from any device — get notified when Claude Code, Copilot, or other agents need attention.

Quick Start

npx agent-connect

The setup wizard checks prerequisites, configures Tailscale HTTPS, generates VAPID keys, and starts the servers. Open the displayed URL on your phone to enable push notifications and manage sessions.

Features

  • Terminal sessions — Launch, monitor, kill, and restore terminal sessions via web UI
  • Push notifications — Get notified on your phone when agents complete tasks or need input
  • Project workspaces — Organize sessions by project
  • Mobile-friendly PWA — Virtual keypad, search, macros, responsive layout
  • Session persistence — SQLite-backed scrollback and session history
  • Real-time monitoring — Live CPU, memory, and activity stats for running sessions

Requirements

Commands

| Command | Description | |---|---| | agent-connect | Start servers (runs setup on first use) | | agent-connect setup | Run interactive setup wizard | | agent-connect start | Start servers (skip setup check) | | agent-connect status | Show connection & subscription info | | agent-connect notify "msg" | Send a push notification | | agent-connect install-hook | Install Claude Code notification hook |

Web UI

| Page | Path | Description | |---|---|---| | Dashboard | / | Overview of projects and active sessions | | Projects | /projects | Create and manage project workspaces | | Sessions | /sessions | Browse all sessions with live activity indicators | | Terminal | /terminal/[id] | Interactive terminal with search, macros, and virtual keypad | | Settings | /settings | Notification config, terminal macros, API info |

Notification Types

agent-connect notify "Task finished!"
agent-connect notify "Need input" --type input_needed
agent-connect notify "Build failed" --title "CI" --type error

| Type | Description | |---|---| | completed | Task/request finished successfully (default) | | planning_complete | Finished planning, ready for review | | approval_needed | Need approval before proceeding | | input_needed | Need information or clarification | | command_execution | A command finished executing | | error | Something failed |

Claude Code Integration

Setup automatically installs a notification hook in ~/.claude/CLAUDE.md so Claude Code sends push notifications when it completes tasks or needs input.

To manually install the hook:

agent-connect install-hook

API

All endpoints require a Bearer token via the Authorization header (except health check).

curl -X POST https://YOUR_TAILSCALE_HOST:3109/api/notify \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title": "Claude Code", "body": "Task completed!", "type": "completed"}'

Push Notifications

| Method | Endpoint | Description | |---|---|---| | POST | /api/subscribe | Register push subscription | | POST | /api/unsubscribe | Remove push subscription | | POST | /api/notify | Send push notification |

Projects

| Method | Endpoint | Description | |---|---|---| | GET | /api/projects | List all projects | | POST | /api/projects | Create a project | | DELETE | /api/projects/:id | Delete a project |

Sessions

| Method | Endpoint | Description | |---|---|---| | GET | /api/sessions | List sessions (query: projectId, status, limit, offset) | | POST | /api/sessions | Launch a new session | | GET | /api/sessions/:id | Get session details | | DELETE | /api/sessions/:id | Kill a session | | GET | /api/sessions/:id/stats | Session stats (CPU, memory, uptime) | | GET | /api/sessions/:id/output | Session scrollback (query: full, lines) | | POST | /api/sessions/:id/restore | Restore a stopped session |

Notifications

| Method | Endpoint | Description | |---|---|---| | GET | /api/notifications | List notification history | | DELETE | /api/notifications | Clear all notifications | | DELETE | /api/notifications/:id | Delete a notification |

WebSocket

| Endpoint | Description | |---|---| | WS /ws/sessions/:id | Terminal streaming (auth via ?token= query param) |

Other

| Method | Endpoint | Description | |---|---|---| | GET | /api/health | Health check |

Architecture

Agent Connect runs two local servers behind Tailscale Serve:

  • Frontend (port 3110) — Next.js PWA with glass UI, terminal emulation (xterm.js), and push subscription management
  • API (port 3109) — Session manager (node-pty), notification server (Web Push), and WebSocket relay

Session data persists to SQLite at ~/.agent-connect/data/sessions.db. Tailscale Serve provides real HTTPS certificates automatically — no cert setup needed.

License

MIT