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

@elizaos/plugin-tailscale

v2.0.0-beta.1

Published

Tunnel plugin for elizaOS — local Tailscale serve/funnel or Eliza Cloud-routed Tailscale auth-key minter

Readme

@elizaos/plugin-tailscale

Tunnel plugin for elizaOS. Exposes a local port through one of two interchangeable Tailscale-backed implementations:

  • Local backend (LocalTailscaleService) — drives the locally-installed tailscale CLI (tailscale serve for tailnet-internal HTTPS, tailscale funnel for public Internet exposure). The user must already be authenticated to a tailnet.
  • Cloud backend (CloudTailscaleService) — calls POST /v1/apis/tunnels/tailscale/auth-key on Eliza Cloud to mint a scoped ephemeral auth key for the configured tag:eliza-tunnel ACL, then runs tailscale up --auth-key=... followed by tailscale serve/funnel against the local port. The cloud holds the OAuth client credentials and Tailnet identity.

Both backends register under serviceType = "tunnel" and implement the same ITunnelService shape, so consumers always go through runtime.getService("tunnel") and never reach for backend-specific APIs.

Mutually exclusive with @elizaos/plugin-ngrok. Both plugins register under serviceType = "tunnel". Enable only one at a time.

Backend selection

The plugin reads TAILSCALE_BACKEND from runtime settings:

| Value | Behavior | | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | local | Always register LocalTailscaleService. | | cloud | Always register CloudTailscaleService. | | auto (default) | Register CloudTailscaleService when Eliza Cloud is connected (ELIZAOS_CLOUD_API_KEY set + ELIZAOS_CLOUD_ENABLED=true); otherwise fall back to LocalTailscaleService. |

isCloudConnected from @elizaos/cloud-routing is the source of truth.

Settings

| Key | Default | Notes | | ----------------------------------- | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | TAILSCALE_BACKEND | auto | local / cloud / auto. | | TAILSCALE_AUTH_KEY | — | Optional pre-minted auth key for the local backend. Most users authenticate via tailscale up once and never set this. | | TAILSCALE_TAGS | tag:eliza-tunnel | Comma-separated list of ACL tags applied to the cloud-minted ephemeral key. | | TAILSCALE_FUNNEL | false | When truthy, use tailscale funnel (public Internet) instead of tailscale serve (tailnet-only). | | TAILSCALE_DEFAULT_PORT | 3000 | Used when no port is extracted from the user message. | | TAILSCALE_AUTH_KEY_EXPIRY_SECONDS | 3600 | Expiry hint passed to the cloud auth-key minter. | | ELIZAOS_CLOUD_API_KEY | — | Required for the cloud backend. | | ELIZAOS_CLOUD_BASE_URL | https://www.elizacloud.ai/api/v1 | Cloud base URL override. | | ELIZAOS_CLOUD_ENABLED | false | Required (truthy) for auto mode to pick the cloud backend. |

Actions

  • START_TAILSCALE (similes: START_TUNNEL, OPEN_TUNNEL, CREATE_TUNNEL, TAILSCALE_UP)
  • STOP_TAILSCALE (similes: STOP_TUNNEL, CLOSE_TUNNEL, TAILSCALE_DOWN)
  • GET_TAILSCALE_STATUS (similes: TAILSCALE_STATUS, CHECK_TUNNEL, TUNNEL_INFO)

All three resolve the active backend through runtime.getService("tunnel"), so they behave identically across local and cloud modes.

Cloud backend wire format

POST /v1/apis/tunnels/tailscale/auth-key:

{ "tags": ["tag:eliza-tunnel"], "expirySeconds": 3600 }

Response:

{
  "authKey": "tskey-auth-...",
  "tailnet": "https://headscale.elizacloud.ai",
  "loginServer": "https://headscale.elizacloud.ai",
  "hostname": "eliza-org-session",
  "magicDnsName": "eliza-agent-1234.tunnel.elizacloud.ai"
}

The plugin then runs locally, in this order:

tailscale up --auth-key=<authKey> --login-server=<loginServer> --hostname=<hostname>
tailscale serve --bg --https=443 localhost:<port>     # or `tailscale funnel <port>`

Development

bun install
bun run typecheck
bun run lint
bun run test

License

MIT