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

@matelink/cli

v2026.4.34

Published

Relay-first CLI for pairing and bridging OpenClaw gateway traffic

Readme

@matelink/cli

Relay-first standalone CLI for pairing a mobile client with an OpenClaw host and keeping a relay bridge online.

1) Install

npm i -g @matelink/cli

CLI commands:

matelink setup
matelink pair
matelink pair 123456
matelink pair --code 123456
matelink bridge
matelink pair-url
matelink status
matelink service status|install|uninstall|restart

Recommended first-run flow:

# 1) prepare OpenClaw config + permissions
matelink setup --relay http://<relay-host>:8090 --public-base http://<gateway-public-host>:<port>

# 2) pair and keep relay bridge online
matelink pair 123456

2) Testing

Requires Node.js >= 22.

# run all tests
node --test test/cli.test.mjs

# or via npm
npm test

Test coverage (21 cases)

| Group | Cases | What it verifies | |-------|-------|-----------------| | CLI basics | 4 | --help, version, unknown command, syntax check | | PATH separator | 1 | : vs ; per platform, deduplication | | OpenClaw home | 3 | OPENCLAW_HOME env, HOME=/, empty HOME | | XML escape | 1 | &, <, > in plist paths | | systemd escape | 1 | space -> literal \x20 | | Command quoting | 2 | commandToString, quoteWindowsCommandArg | | PID detection | 1 | own PID, invalid/negative/NaN | | Lock file | 2 | exclusive create, 48h stale timeout | | PowerShell encoding | 2 | Base64 roundtrip, CJK paths | | Service status | 1 | JSON output, platform manager | | Node version | 1 | source contains >= 16 guard | | Platform paths | 2 | .sh vs .cmd, which vs where |

CI

  • GitLab CI (.gitlab-ci.yml): Node 22 on Alpine Linux
  • GitHub Actions (.github/workflows/test.yml): Ubuntu/macOS/Windows x Node 22

Platform compatibility

| Platform | Status | |----------|--------| | macOS (launchd) | Fully supported | | Linux + systemd | Fully supported | | Linux without systemd (Alpine/OpenRC) | Manual matelink bridge only, service install gives friendly error | | Windows (Task Scheduler) | Supported, tested via CI |

3) Configure

matelink setup --relay http://<relay-host>:8090 --public-base https://gw.example.com

This prepares the local OpenClaw gateway for /v1/responses, stores relay credentials in ~/.openclaw/testnextim.state.json.

4) Pairing flow

Start OpenClaw first, then pair from the app:

openclaw gateway run --bind loopback --port <gateway.port> --force
matelink pair 123456

5) Service management

matelink service status      # check status
matelink service install     # install + start background bridge
matelink service uninstall   # stop + remove
matelink service restart     # restart

Log locations: ~/.openclaw/matelink/logs/

tail -f ~/.openclaw/matelink/logs/bridge.stdout.log
tail -f ~/.openclaw/matelink/logs/bridge.stderr.log

6) Environment variables

| Variable | Description | |----------|-------------| | OPENCLAW_HOME | Override OpenClaw home directory (default ~/.openclaw) | | TESTNEXTIM_RELAY_URL | Override relay base URL | | TESTNEXTIM_RELAY_TOKEN | Bearer token for relay endpoints | | OPENCLAW_TESTNEXTIM_GATEWAY_BASE_URL | Local gateway base URL | | OPENCLAW_GATEWAY_PORT / OPENCLAW_GATEWAY_HOST | Explicit gateway host/port |

7) Relay architecture

  • Direct mode: app calls gateway bind URL directly
  • Relay bridge mode (matelink bridge): chat traffic goes through relay, CLI forwards to local gateway
  • Service mode (matelink service install): bridge runs as background service (launchd/systemd/Task Scheduler)