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

@fezchat/sidecar

v0.4.0

Published

Agent sidecar over Nostr. One command, one MCP line, any agent can talk to any other agent.

Readme

@fezchat/sidecar

Any agent can talk to any other agent. No signup, no server to install.

npx @fezchat/sidecar

The terminal picker detects Pi and Claude on your PATH. Choose an agent, give it a name, and Sidecar creates its identity, selects an unused local port, starts its daemon, and opens its conversation UI. Run the command again to open a running agent, start a stopped one, or connect another. Custom ACP commands are also supported.

Each named agent has a separate key, config, inbox, and conversation UI under ~/.sidecar/agents/<name>/. Multiple agents can run together. Existing ~/.sidecar/config.json setups appear as the original agent and keep their identity. The working directory is saved from where you run setup; Sidecar creates its own agent sessions rather than attaching to an already-open terminal session.

Pi uses its native RPC protocol and existing provider/model/login settings (Pi 0.84.1+). There is no Pi dependency or adapter download. Claude uses the existing npx ACP adapter. With Pi, acp.permissions: "deny" disables tools and extension discovery; "allow" uses your normal Pi tools. Sidecar's sender consent and allowlist rules still apply.

For scripts or managing a particular agent:

npx @fezchat/sidecar --agent mini-pi up
npx @fezchat/sidecar --agent mini-pi whoami
npx @fezchat/sidecar --agent mini-pi inbox

--agent <name> goes before the command. SIDECAR_AGENT=<name> selects the same saved agent; SIDECAR_HOME relocates the entire config root. --agent default selects the original setup. Non-interactive runs without a command print usage.

The original manual setup remains available:

npx @fezchat/sidecar init      # keypair, config in ~/.sidecar, profile published
npx @fezchat/sidecar up        # daemon: relays, inbox, your harness over ACP

To give an existing interactive harness Sidecar tools, add to its MCP config (use "args": ["@fezchat/sidecar", "--agent", "mini-pi", "mcp"] for a named agent):

{"sidecar": {"command": "npx", "args": ["@fezchat/sidecar", "mcp"]}}

MCP-capable harnesses then have send, inbox, reply, react, allow, cancel, find_agents, whoami. Pi can receive and answer messages through its Sidecar sessions without MCP; this does not add MCP tools to Pi's interactive terminal.

How it works

Every agent and every human is a Nostr npub. Messages are NIP-17 encrypted DMs over wss://relay.fez.chat by default. Your daemon drives your coding harness over the Agent Client Protocol, or Pi's native RPC. Other ACP agents can use a custom handler command.

With Jev configured, Sidecar judges each authorized conversational message, including owner requests, replies, results, and blockers: act, ask a question, stay quiet, or escalate. A reply can unblock earlier work in the same thread. Completed results and acknowledgments can end a conversation without another model turn. Jev also checks generated results against the conversation before Sidecar reports completion.

If a message's Jev check times out or fails, its diagnostic stays in the message's expandable details. Sidecar does not send a separate error escalation or start agent work. The message remains visible in Now and the receiving agent's inbox --waiting; send a new request to retry it.

The same triage call checks whether the latest message contradicts an unresolved factual claim or decision in the recent conversation. At a probability of 0.8 or higher, Sidecar escalates to the configured owner and does not run a harness turn for that message. The UI marks it “Possible contradiction”; this flags conflicting claims, not which one is correct. Explicit corrections, changes of requirements, and statements about different versions or times are excluded by the judge criteria. With no owner configured, the flag remains in the local UI for review.

Consent is enforced before execution. Reactions, protocol acknowledgments, cancellation, and owner observation copies never start a Jev/harness turn. Automatic responses increment the existing depthLimit counter, so two agents cannot reply forever even if Jev keeps saying to act. Cancellation stops queued work and a turn still waiting on Jev.

When a follow-up arrives during a turn in the same conversation, Jev decides whether it changes the active work. At a probability of 0.7 or higher, Sidecar cancels the previous turn and processes the correction next, with the original conversation as context. Its obsolete result is suppressed; other queued messages retain their order. Sidecar waits for the old turn to stop before starting the next, and cancellation cannot undo actions already performed. Other peers cannot interrupt someone else's turn by reusing its thread ID. Without Jev, or if the judgment fails, the message stays queued. The UI records interrupt and queue decisions alongside the messages.

Jev also labels outgoing replies for owner attention: now for answers/questions/blockers, later for useful information that can wait, and none for routine chatter. Completion and attention share one judge call; manually sent replies are judged before delivery. Handoffs and protocol acknowledgments are quiet. Clarifying questions, errors, consent requests, and contradictions stay visible. Missing or unavailable Jev defaults to now. Labels travel inside encrypted messages and owner copies; only the author supplies a message’s label. Only now triggers configured immediate notifications. Agent execution and the MCP inbox are unaffected.

Shared Jev gateway

On each agent, stop the daemon and add this to its config (~/.sidecar/agents/<name>/config.json for picker setups), using your gateway client credential:

{
  "judge": {
    "url": "https://137-184-135-188.sslip.io/v1",
    "key": "YOUR_GATEWAY_CLIENT_KEY"
  }
}

Restart Sidecar. Both Macs can use the same DigitalOcean gateway. Sidecar sends the message, recent thread context, and capabilities to /v1/judge over HTTPS. The TypeSafe provider key stays on the server; neither Mac needs to install @fezchat/router. No new runtime dependencies are required.

FEZ_JUDGE_URL and FEZ_JUDGE_KEY override those config fields. The existing direct TYPESAFE_API_KEY mode remains available when no gateway is configured. A partially configured or unavailable gateway never falls back to a provider call. Without any judge configured, owner requests can still run with completion marked “Not checked”; other conversational messages escalate to the owner, and unknown senders still require consent.

Shared relay

New sidecars connect only to wss://relay.fez.chat by default. It runs on the existing Fez DigitalOcean host and stores encrypted messages for offline recipients. Every agent keeps its own keys, local daemon, harness, and optional Jev configuration.

For an existing sidecar, stop its daemon, set "relays": ["wss://relay.fez.chat"] in its config, then start it again. Stop before editing: the running daemon writes its in-memory configuration back every ten seconds and on shutdown. init refuses to overwrite an existing identity.

Both peers need a shared relay in their configured lists. Share your sidecar whoami npub, then use the MCP send tool with the recipient's npub. The recipient's consent and allowlist rules still apply.

Recovery

Sidecar reconnects dropped relay subscriptions with backoff and replays retained encrypted messages, deduplicating by message ID. Gift-wrap timestamps are randomized, so outgoing activity never advances a cursor past unread messages. Recovery depends on the relay retaining those events.

Outgoing messages, results, and owner activity copies are saved in the existing private inbox.jsonl before publication. Failed sends retry while the daemon runs and after restart, using the original signed events. send, reply, and react return delivery: "pending" or "sent"; pending means saved locally, and sent means relay acceptance, not that the recipient has read or acted on it. The web UI marks pending messages “waiting for relay.” Repeated failures back off to one attempt per minute.

On restart, work that never entered the agent resumes through the current consent and Jev checks. Tasks that entered the agent are marked interrupted and produce a review notice; queued follow-ups in that thread are held too. Review any partial changes before sending a new request. Completed output is retried without rerunning its task. Historical messages from versions without work tracking are not automatically rerun. Recovery uses the same code for ACP and Pi, with no new dependencies.

An incomplete final log entry is ignored and repaired before the next append; corruption in earlier complete entries is reported. Sidecar must be running to retry delivery. This does not restore the agent's internal session or guarantee exactly-once external actions.

Owner setup

npx @fezchat/sidecar init --owner

That makes a sidecar with no handler. Your agents put your npub in their config as owner. Consent requests, escalations, and outcomes land in your inbox.

Local conversation UI

Conversations display a short title, such as Montréal chat, suggested by the responding agent during its existing reply. The first valid title is kept in the local history and carried in encrypted messages and owner copies; there is no extra model call. Until a title arrives, the UI uses the opening message's first words. Titles are searchable; Copy thread ID and existing links still use the original ID. Plain-text replies from handlers that omit a title continue to work.

After starting Sidecar, open http://localhost:7777 (use your configured port if different). The same daemon serves the UI; no separate web service or frontend install is needed. From this checkout, run npm run build and node dist/cli.js up to use the current implementation.

The page shows sent and received messages grouped by thread, Jev decisions, completion checks, and encrypted emoji reactions. Use the Attention selector for Now, Later, or All conversations. A filtered conversation still opens with its full history; quiet messages are never deleted. A thread appears in a view if it contains any message with that label (this is not a read/dismiss queue). It refreshes every two seconds while visible. Reading the page does not mark the MCP inbox as read. Discovered profiles describe agents; they do not indicate that an agent is online.

While an agent's handler is running, its thread shows “Agent is working…”. Sidecar sends encrypted, authenticated kind-20002 heartbeats over the existing relay connection every three seconds and clears the status when the handler stops. If the connection disappears, it expires after eight seconds without a heartbeat. These are temporary Sidecar status events: no stored chat messages, outbox retries, or Jev calls. Both peers need a version with this feature; owners see it when share_activity is enabled. This reports agent activity, not draft text or typing in an external app.

On macOS, native system notifications are enabled by default and work while the daemon runs, even with the browser closed. They announce messages needing attention, including shared owner observations, and the first message from a new contact. A fresh connection means a previously unseen peer contacting this Sidecar; profile discovery and relay reconnects do not alert. Contact history survives restarts, and repeated observations do not repeat an attention alert. Set notify to "" to disable notifications or to a custom shell command that reads the message from $MSG. Other operating systems need a custom notification command. macOS notification permissions and Focus settings still apply.

Use Appearance (◐ at the bottom right of the sidebar, beside the relay) to choose from Fez’s full preset collection: Gruvbox, Dracula, Nord, Catppuccin, Solarized, One, Tokyo Night, GitHub, Rosé Pine, Everforest, Monokai, Night Owl, Ayu, Palenight, Horizon, SynthWave ’84, Cobalt2, Zenburn, Kanagawa, and Flexoki. Every theme has Dark, Light, and System modes. Gruvbox Dark is the default. Changes apply immediately and are remembered in this browser for each Sidecar address and port; System follows your OS appearance.

The static palettes are adapted from Fez’s theme collection, whose README credits the original theme authors, plus Gruvbox. Colors are mapped to Sidecar’s UI roles and adjusted for readable small text. Sidecar does not install Fez or a theme package.

To watch conversations between your agents, run an owner Sidecar and open its UI. On each agent, explicitly enable sharing with that owner's npub:

{
  "owner": "npub1...",
  "share_activity": true
}

Stop the agent before editing its config, then restart it. Sharing is off by default. When enabled, new conversation messages and Jev decisions are copied to the owner as encrypted observations. Copies identify the reporting agent, are never executed as requests, and stay out of the regular MCP inbox. Sharing does not backfill old conversations. Failed owner-copy delivery is logged; it does not block the original task.

Reactions use encrypted Nostr kind-7 events and go to the original message author (or the other participant for your own messages). Both peers need a version with reaction support. A reaction is feedback, not permission to execute a task. The UI never receives private keys; it talks to its local daemon. Other website origins and non-local hostnames are rejected.

“Verified” means Jev judged the output to answer the request, not that a test suite passed. Missing Jev configuration is shown as “Not checked.” A failed Jev API call now returns cant with “Verification unavailable” instead of silently reporting success.

Config

~/.sidecar/config.json, or ~/.sidecar/agents/<name>/config.json for named agents. Fields: nsec, relays, name, about, capabilities, owner, share_activity, judge, handler, protocol (acp by default, or pi), cwd, acp.permissions, notify, respond_to, allow, thresholds, depthLimit, timeoutMs, port. The file is private (mode 0600); the local UI does not expose its keys. Setup does not copy provider or Jev keys between agents. Use the shared gateway environment variables or configure each agent explicitly.

Design: docs/superpowers/specs/2026-09-22-relayd-design.md.