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

crosscode

v0.4.1

Published

An OpenCode Remote Client CLI

Readme

CrossCode

An OpenCode Remote Client CLI Tool.

Connect your mobile device to your local opencode server instantly — no shared network, no manual port forwarding.

npx crosscode

or, if using pnpm:

pnpm dlx crosscode

Scan the QR code with the CrossCode mobile app to connect.

Requires opencode installed. Tunnel provider (cloudflared or ngrok) required based on tier.

How It Works

  1. CrossCode starts opencode serve locally on port 4096.
  2. It creates a secure tunnel (via Cloudflare, ngrok, or CrossCode's own tunnel server) to expose your local opencode instance.
  3. A QR code is generated containing the tunnel URL and a session token.
  4. Scan the QR with the CrossCode mobile app to connect and start coding remotely.

Tunnel Providers

| Provider | Flag | Requirement | Notes | |---|---|---|---| | CrossCode Tunnel | (default when logged in with paid tier) | Login required | Dedicated tunnel via tunnel.sish.work | | Cloudflare | --cloudflared | cloudflared installed | Free, auto-generated trycloudflare.com URL | | ngrok | --ngrok | ngrok installed + auth token | Free tier available, stable URLs |

If no tunnel flag is given and you're not logged in, CrossCode falls back to cloudflared.

Commands

| Command | Description | |---|---| | crosscode | Start tunnel (auto-selects provider) | | crosscode login | Authenticate with API key (opens browser) | | crosscode logout | Clear saved authentication | | crosscode status | Show login status and tier | | crosscode help | Show help message |

Flags

| Flag | Description | |---|---| | --cloudflared | Force Cloudflare tunnel | | --ngrok | Force ngrok tunnel | | --help, -h | Show help message |

Authentication & Login

CrossCode has a free tier and a paid tier:

  • Free tier — Uses cloudflared tunnel. No login required.
  • Paid tier — Uses CrossCode's dedicated tunnel server (tunnel.sish.work). Login required.

How to Login

crosscode login
  1. Browser opens to https://crosscode.sish.work/login.
  2. Sign up / log in on the dashboard.
  3. Copy the API key shown on the dashboard.
  4. Paste the API key in the terminal prompt.

Your credentials are saved to ~/.crosscode/config.json.

Check Login Status

crosscode status

Logout

crosscode logout

Tunnel Selection Logic

When you run crosscode with no flags:

  1. If logged in with a paid tier → uses CrossCode Tunnel (tunnel.sish.work).
  2. If --ngrok is passed → uses ngrok.
  3. If --cloudflared is passed → uses cloudflared.
  4. Otherwise → falls back to cloudflared.

If the CrossCode tunnel fails or times out, it automatically falls back to cloudflared.

Interactive Controls

While the tunnel is running:

| Key | Action | |---|---| | l | Toggle log viewer (shows last 20 lines from each service) | | Ctrl+C | Shut down tunnel and exit |

Configuration

Config is stored at ~/.crosscode/config.json:

{
  "ngrokToken": "your-ngrok-auth-token",
  "port": 4096,
  "auth": {
    "email": "[email protected]",
    "sessionToken": "your-api-key",
    "tier": "pro"
  }
}

| Field | Description | |---|---| | ngrokToken | Saved ngrok auth token (prompted on first --ngrok use) | | port | Local port for opencode serve (default: 4096) | | auth.email | Logged-in email | | auth.sessionToken | API key used for authentication | | auth.tier | Account tier (free, pro, etc.) |

Logs

All logs are written to ~/.crosscode/:

| File | Contents | |---|---| | crosscode.log | CrossCode CLI logs | | cloudflared.log | Cloudflare tunnel logs | | ngrok.log | ngrok tunnel logs | | opencode.log | opencode serve logs |

Environment Variables

| Variable | Description | Default | |---|---|---| | CROSSCODE_WEB_URL | Web dashboard URL | https://crosscode.sish.work | | CROSSCODE_AUTH_URL | Auth API URL | ${CROSSCODE_WEB_URL}/api/auth | | CROSSCODE_TUNNEL_WS_URL | Tunnel WebSocket URL | wss://tunnel.sish.work/ws |

Prerequisites

  • Node.js >= 20
  • opencodeInstall
  • cloudflaredInstall (for free tier)
  • ngrokInstall (optional, for ngrok tunnel)

Features

  • No shared network required between devices
  • No manual configuration of ports or IP addresses
  • Automatic tunnel fallback (CrossCode tunnel → cloudflared)
  • SSE proxy for real-time streaming through Cloudflare
  • Session-based authentication with QR code pairing

License

MIT License