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

tinyagent

v1.4.3

Published

Connect your local shell to any device - access your dev environment from anywhere

Readme

Tinyagent

Connect your local shell to any device - access your dev environment from anywhere.

Installation

npm install -g tinyagent

Quick Start

  1. Start tinyagent (auto-generates session ID):
tinyagent

Or specify your own session ID:

tinyagent my-session
  1. Scan the QR code with the Tinyagent mobile app OR enter the session ID manually

  2. Your local terminal is now accessible from your phone!

Bonus: If you have Claude CLI installed, it will automatically start Claude for you! Claude will be able to see and interact with your terminal session.

Features

  • 🔐 Secure WebSocket connection through relay servers
  • 📱 Full terminal access from mobile devices
  • 🌐 HTTP tunneling - access your local dev servers from anywhere
  • ⌨️ Bidirectional typing - type from computer or phone
  • 📏 Smart terminal resizing based on device
  • 🚀 Zero configuration required

Usage

Basic connection (auto-generates session ID):

tinyagent

Connect with specific session ID:

tinyagent my-session
# or
tinyagent --session-id my-session

Use a custom relay server:

tinyagent --relay ws://localhost:8080

Specify a custom shell:

tinyagent --shell /bin/zsh

Disable Claude auto-start:

tinyagent --no-claude

Advanced: Run a server alongside your shell

tinyagent -c "npm run dev" -p 3000

This runs a dev server in parallel with your shell session (legacy feature - HTTP tunneling now auto-detects running servers).

All Options:

  • [sessionId] - Session ID as first argument (optional, auto-generated if not provided)
  • --session-id <id> - Session ID (alternative to positional argument)
  • -r, --relay <url> - Relay server URL (default: wss://relay.tinyagent.app)
  • -s, --shell <shell> - Shell to use (default: $SHELL or /bin/bash)
  • -c, --command <cmd> - Run a server command in parallel (legacy - auto-detection preferred)
  • -p, --port <port> - Port for the server command (default: 3000)
  • --no-tunnel - Disable localtunnel integration
  • --no-claude - Do not auto-start Claude CLI
  • -v, --verbose - Show detailed debug output
  • -V, --version - Show version number
  • -h, --help - Show help

HTTP Tunneling

Tinyagent automatically detects and exposes your local development servers! No configuration needed.

When you have servers running on common ports (3000, 3001, 4000, 4200, 5000, 5173, 8000, 8080, 8081, 9000), you'll see:

[HTTP] Exposing ports: 3000, 5173
[HTTP] Access your dev server at:
  https://my-session-3000.tinyagent.app/
  https://my-session-5173.tinyagent.app/

Access your local dev servers from any browser - perfect for testing on mobile devices!

Environment Variables

You can set these environment variables to customize default behavior:

  • RELAY_URL - Default relay server URL (instead of using -r flag each time)
  • SHELL - Default shell to use (automatically detected from your system)

Example:

export RELAY_URL=ws://localhost:8080
tinyagent

Security

  • All connections are routed through relay servers - your machine is never directly exposed
  • Session IDs are private - only those with the ID can connect
  • Connections are encrypted with WSS (WebSocket Secure)

Troubleshooting

Debug Mode

If you're experiencing issues, run with verbose output:

tinyagent -v
# or
tinyagent --verbose

This will show:

  • WebSocket connection details
  • Terminal resize events
  • Input source tracking (local vs mobile)
  • HTTP port detection

Common Issues

Claude not starting automatically?

  • Make sure Claude CLI is installed and in your PATH
  • Try running which claude to verify installation
  • Use --no-claude to disable auto-start

Dev server not accessible?

  • Ensure your server is running on a standard port (3000, 3001, 4000, 4200, 5000, 5173, 8000, 8080, 8081, 9000)
  • Check that the server is bound to localhost or 0.0.0.0, not just 127.0.0.1
  • Look for the [HTTP] Exposing ports: message in the output

Learn More

  • Website: https://tinyagent.app
  • Documentation: https://docs.tinyagent.app
  • Mobile App: Available on App Store and Google Play

License

MIT