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

@peonai/swarm

v0.5.2

Published

Cross-agent user profile sync — let every AI agent know your user without re-teaching

Readme

🐝 Swarm AI

Cross-agent user profile synchronization. Teach one agent about yourself — every agent knows.

The Problem

You use 5 AI agents. Each one asks the same questions. You repeat yourself endlessly. Swarm fixes this with a shared profile layer that any agent can read and write.

Live Demo

Try it without installing: hive.peonai.net

Test account: peon / 123456

⚠️ Privacy Warning: This is a shared public instance. Do NOT connect your real AI agents or enter personal information. Use a disposable agent or VM for testing.

Quick Start

# Install & setup (interactive)
npx @peonai/swarm

# Uninstall
npx @peonai/swarm uninstall

Connect an Agent

Option A: MCP (Recommended for Claude Code, Cursor, Windsurf)

Add to your project's .mcp.json:

{
  "mcpServers": {
    "swarm-ai": {
      "command": "npx",
      "args": ["@peonai/swarm", "mcp"],
      "env": {
        "SWARM_API_URL": "https://your-swarm-instance.com",
        "SWARM_API_KEY": "your-agent-key"
      }
    }
  }
}

Your agent gets 6 tools: read_profile, update_profile, observe, search_memory, write_memory, read_persona. See docs/mcp.md for details.

Option B: llms.txt (For agents that support URL-based onboarding)

  1. Open dashboard → create admin account
  2. Copy the onboarding prompt from Dashboard or Agents page
  3. Send it to any AI agent
  4. Done. The agent reads llms.txt, learns the API, and starts syncing.

Features

  • MCP Server — Native integration with Claude Code, Cursor, Windsurf via Model Context Protocol
  • Multi-user — Setup wizard, JWT login, user management
  • User profiles — Layered (identity, preferences, work, context), with confidence scores
  • Shared memory — Cross-agent memories with FTS5 full-text search
  • Semantic search — Optional embedding API (OpenAI-compatible)
  • Agent personas — Per-agent personality and instructions
  • llms.txt — Dynamic API docs that agents can self-read to onboard
  • Tenant isolation — All data scoped by user
  • Audit log — Track every API action and profile change
  • Admin controls — Disable users, reset tokens, localhost-only admin API
  • Mobile-friendly — Responsive dashboard with collapsible sidebar
  • SQLite / PostgreSQL — SQLite for dev, Postgres for scale
  • Webhooks — Real-time notifications when profiles or memories change
  • OpenAPI spec — Machine-readable API docs at /api/openapi
  • Python SDKpip install swarm-ai-client
  • Observe API — Auto-extract profile data from natural language

API

GET  /api/v1/profile          # Read user profile
PATCH /api/v1/profile         # Write profile entries
POST /api/v1/profile/observe  # Auto-extract from text
GET  /api/v1/memory           # Search memories
POST /api/v1/memory           # Write memory
GET  /llms.txt?key=<token>    # Self-service API docs for agents
POST /api/v1/webhooks         # Register webhook
GET  /api/v1/webhooks         # List webhooks
GET  /api/openapi             # OpenAPI 3.0 spec
GET  /api/health              # Health check

Auth: Authorization: Bearer <api_key> (agent key or user token)

Architecture

Agent A ──┐                    ┌── Profile (layered)
Agent B ──┤── Swarm API ──────┤── Memory (FTS5)
Agent C ──┘   (REST + JWT)     └── Audit Log
  • npm: @peonai/[email protected]
  • Stack: Next.js standalone, SQLite/PostgreSQL
  • Deploy: systemd service via interactive CLI

License

MIT