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

@opeoginni/gitterm-agent

v0.1.13

Published

Tunnel agent for exposing local development ports through gitterm.dev

Readme

@opeoginni/gitterm-agent

A lightweight tunnel agent that securely exposes local development ports through your gitterm.dev workspace URL.

Installation

# Run directly with npx (recommended)
npx @opeoginni/gitterm-agent

# Or install globally
npm install -g @opeoginni/gitterm-agent

Quick Start

1. Login to GitTerm

npx @opeoginni/gitterm-agent login

This will open a browser for authentication. Once logged in, your credentials are saved locally.

2. Connect Your Local Server

# Start your local server first
opencode serve --port 3000  # or whatever starts your server on port 3000

# Then connect it to your gitterm workspace
npx @opeoginni/gitterm-agent connect --workspace-id "your-workspace-id" --port 3000

That's it! Your local server is now accessible at https://your-subdomain.gitterm.dev.

Commands

login

Sign in via device-code flow.

npx @opeoginni/gitterm-agent login

logout

Clear saved credentials.

npx @opeoginni/gitterm-agent logout

connect

Connect a local port to your gitterm workspace.

npx @opeoginni/gitterm-agent connect --workspace-id <id> --port <number>

Required options:

  • --workspace-id <id> - Your workspace ID
  • --port <number> - Local port to expose

Optional:

  • --expose <name=port> - Expose additional ports (repeatable)
  • --ws-url <url> - Custom tunnel proxy URL (default: wss://tunnel.gitterm.dev/tunnel/connect)
  • --server-url <url> - Custom API server URL (default: https://api.gitterm.dev)
  • --token <jwt> - Tunnel JWT (overrides saved login)

Examples

Basic Usage

# Expose a local dev server
npx @opeoginni/gitterm-agent connect --workspace-id "ws_abc123" --port 3000

Multiple Ports

Expose additional services as subdomains:

npx @opeoginni/gitterm-agent connect \
  --workspace-id "ws_abc123" \
  --port 3000 \
  --expose api=3001 \
  --expose docs=4000

This maps:

  • https://your-subdomain.gitterm.dev -> localhost:3000
  • https://your-subdomain-api.gitterm.dev -> localhost:3001
  • https://your-subdomain-docs.gitterm.dev -> localhost:4000

How It Works

  1. The agent opens an outbound WebSocket connection to the GitTerm tunnel proxy
  2. Authenticates using your saved credentials or a provided JWT
  3. Proxies HTTP requests from your *.gitterm.dev URL to your local port
  4. Supports streaming responses (SSE, WebSocket upgrades coming soon)

Notes

  • This tool does not start servers for you. Run your local server first, then connect.
  • Credentials are stored in ~/.config/gitterm/agent.json
  • The tunnel stays open until you press Ctrl+C

License

MIT