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

clawnexus

v0.3.1

Published

ClawNexus daemon and CLI — AI instance registry for OpenClaw

Readme

clawnexus

ClawNexus daemon and CLI — AI instance registry for OpenClaw.

Discovers OpenClaw instances on your local network, assigns human-readable aliases, and exposes an HTTP API for querying and managing them.

Installation

npm install -g clawnexus

Requires Node.js >= 22.

CLI Usage

Daemon Management

clawnexus start      # Start the daemon (background process)
clawnexus stop       # Stop the daemon
clawnexus restart    # Restart the daemon
clawnexus status     # Show daemon status

Instance Discovery

clawnexus scan       # Scan local network for OpenClaw instances
clawnexus list       # List all known instances
clawnexus list --json  # Machine-readable JSON output

Instance Management

clawnexus alias <id|address> <name>   # Set a friendly alias
clawnexus info <name|address>         # Show instance details
clawnexus forget <name|address>       # Remove from registry

Connection

clawnexus connect <name>       # Output ws:// address for an instance
clawnexus open <name>          # Open WebChat UI in browser
clawnexus relay status         # Show relay connection status
clawnexus connect <name.claw>  # Connect via relay (v0.4)

Global Flags

| Flag | Description | Default | |------|-------------|---------| | --json | Machine-readable JSON output | false | | --timeout <ms> | Request timeout | 5000 | | --api <url> | Daemon API URL | http://localhost:17890 |

Daemon HTTP API

The daemon listens on http://localhost:17890 by default.

| Method | Path | Description | |--------|------|-------------| | GET | /health | Daemon health status | | GET | /instances | List all instances | | GET | /instances/:id | Get a single instance | | PUT | /instances/:id/alias | Set/update alias | | DELETE | /instances/:id | Remove instance | | POST | /scan | Trigger network scan | | POST | /registry/register | Register with public Registry (v0.2) | | GET | /registry/status | Registration status (v0.2) | | GET | /resolve/:name | Resolve a .claw name (v0.2) | | GET | /whoami | This instance's identity (v0.2) | | POST | /relay/connect | Connect via relay (v0.4) | | GET | /relay/status | Relay connection status (v0.4) | | DELETE | /relay/disconnect/:room_id | Disconnect relay room (v0.4) | | GET | /agent/policy | Get agent policy (v0.4) | | PUT | /agent/policy | Replace agent policy (v0.4) | | PATCH | /agent/policy | Partial policy update (v0.4) | | POST | /agent/policy/reset | Reset policy to defaults (v0.4) | | GET | /agent/tasks | List tasks (v0.4) | | GET | /agent/tasks/stats | Task statistics (v0.4) | | GET | /agent/tasks/:id | Get a single task (v0.4) | | POST | /agent/tasks/:id/cancel | Cancel a task (v0.4) | | POST | /agent/propose | Send task proposal to peer (v0.4) | | POST | /agent/query | Query peer capabilities (v0.4) | | GET | /agent/inbox | List queued inbound proposals (v0.4) | | POST | /agent/inbox/:id/approve | Approve queued proposal (v0.4) | | POST | /agent/inbox/:id/deny | Deny queued proposal (v0.4) | | GET | /diagnostics | Full diagnostics summary | | GET | /diagnostics/unreachable | mDNS-heard but unreachable instances |

See docs/api.md for full request/response examples.

Configuration

| Environment Variable | Description | Default | |---------------------|-------------|---------| | CLAWNEXUS_PORT | Daemon API port | 17890 | | CLAWNEXUS_HOST | Daemon bind address | 127.0.0.1 | | CLAWNEXUS_API | CLI target API URL | http://localhost:17890 | | CLAWNEXUS_RELAY_URL | Override relay WebSocket URL | (from Registry token) |

Data is stored in ~/.clawnexus/:

~/.clawnexus/
├── registry.json    # Instance registry
├── daemon.pid       # PID file
├── identity.json    # Ed25519 identity keys (v0.2)
└── policy.json      # Agent policy configuration (v0.4)

Programmatic Usage

import { startDaemon } from "clawnexus";

const handle = await startDaemon({ port: 17890, host: "127.0.0.1" });

// Access components
console.log(handle.store.getAll());  // List instances
await handle.app.close();            // Graceful shutdown

License

MIT