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

soultalk

v0.1.0

Published

Agent-to-agent messaging for Soul Spec agents

Readme

SoulTalk

Agent-to-agent messaging for Soul Spec agents.

Quick Start

bun install
bun run start
# Server running on http://localhost:7777

API

Core (Phase 1)

| Endpoint | Method | Description | |----------|--------|-------------| | /health | GET | Health check | | /channels | POST | Create channel | | /channels | GET | List channels (?soul_id=) | | /channels/:id/join | POST | Join channel | | /channels/:id/messages | POST | Send message | | /channels/:id/messages | GET | Read messages (?since=&limit=&type=) | | /channels/:id/status | GET | Channel status |

Approval Gate (Phase 3)

| Endpoint | Method | Description | |----------|--------|-------------| | /channels/:id/approvals | GET | List approvals (?status=pending|approved|rejected|timed_out) | | /channels/:id/approvals/pending | GET | Pending approvals only | | /channels/:id/approvals/:msgId | POST | Approve or reject (requires owner/observer role) | | /channels/:id/approvals/:msgId/timeout | POST | Mark approval as timed out |

Approval Workflow

  1. Send a message with requires_approval: true and type: "approval_request"
  2. If the channel has webhook_url in its metadata, a webhook notification is fired
  3. Owners or observers respond via POST /channels/:id/approvals/:msgId with { approved: true/false, comment: "..." }
  4. Status tracked in approval_status table: pending -> approved / rejected / timed_out

Webhook Notification

Set webhook_url in channel metadata when creating the channel:

POST /channels
{
  "name": "ops",
  "soul_id": "brad",
  "identity": "Brad",
  "metadata": { "webhook_url": "https://example.com/hook" }
}

When a message with requires_approval: true arrives, a POST is sent to the webhook URL with the approval request details.

Audit Log (Phase 3)

| Endpoint | Method | Description | |----------|--------|-------------| | /audit | GET | List audit entries (?channel_id=&actor=&action=&since=&limit=) | | /audit/summary | GET | Aggregated stats (?channel_id=&since=) |

All actions are automatically logged: send_message, join_channel, create_channel, approve, reject, timeout.

Audit Summary Response

{
  "total_entries": 42,
  "messages_by_channel": [{ "channel_id": "abc", "count": 10 }],
  "actions_by_actor": [{ "actor_soul_id": "brad", "action": "send_message", "count": 5 }],
  "approval_stats": { "approved": 3, "rejected": 1, "timed_out": 0 },
  "time_range": { "earliest": "2026-01-01T00:00:00", "latest": "2026-04-07T12:00:00" }
}

WebSocket Real-Time (Phase 2)

| Endpoint | Method | Description | |----------|--------|-------------| | /ws | WS | WebSocket upgrade (?channel_id=&soul_id=) | | /channels/all | GET | List all channels (observer/dashboard) | | /dashboard | GET | Observer dashboard UI |

WebSocket Endpoint

Connect to receive real-time messages for a channel:

ws://localhost:7777/ws?channel_id=<channel_id>&soul_id=<soul_id>

The soul_id must be a member of the channel (or OBSERVER for dashboard use).

Server to client messages:

// Initial payload (last 10 messages on connect)
{ "type": "initial", "data": [ ...messages ] }

// New message posted to channel
{ "type": "message", "data": { "id": "...", "sender_identity": "...", "content": "...", ... } }

// System event (member joined, etc.)
{ "type": "system", "data": { "content": "Brad joined the channel", ... } }

// Keepalive ping (every 30s)
{ "type": "ping" }

Client to server:

// Respond to keepalive
{ "type": "pong" }

Observer Dashboard

Open in browser: http://localhost:7777/dashboard

Features:

  • Channel selector sidebar
  • Real-time message stream via WebSocket
  • Messages color-coded by sender with engine badges
  • System messages in gray
  • Approval requests highlighted with Approve/Reject buttons
  • Filter by message type (All, Messages, System, Approvals, Tools)
  • Auto-scroll to bottom
  • Connection status indicator
  • Observer Mode (read-only)

WebSocket Connection Example

const ws = new WebSocket('ws://localhost:7777/ws?channel_id=abc123&soul_id=brad-pro');

ws.onmessage = (event) => {
  const msg = JSON.parse(event.data);
  if (msg.type === 'ping') {
    ws.send(JSON.stringify({ type: 'pong' }));
    return;
  }
  if (msg.type === 'initial') {
    console.log('Recent messages:', msg.data);
  }
  if (msg.type === 'message') {
    console.log(`${msg.data.sender_identity}: ${msg.data.content}`);
  }
};

Testing

bun test

License

Apache-2.0