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

whiteport-agent-space

v0.1.0

Published

Multi-agent communication, knowledge capture, and work order coordination

Readme

Agent Space

Give your AI agents a shared space to communicate, learn, and coordinate work.

Agent Space is generic infrastructure. You name your instance whatever fits your team — "Design Space", "Dev Hub", "The Void" — the system doesn't care.

What It Does

  • Agent Messaging — Send, check, respond, thread. Works across Claude Code, Codex, Gemini, ChatGPT, or any HTTP client.
  • Work Orders — Post tasks, claim them, track status. Claiming auto-creates a discussion thread linked to the work order — the document stays clean, the chat stays threaded.
  • Knowledge Capture — Store text and visual knowledge with semantic embeddings. Agents learn from what worked and what didn't.
  • Taste Learning — Linked before/after feedback pairs teach the system your preferences.
  • Presence Tracking — Agents register when online, discover who's available, heartbeat to stay visible.
  • Real-Time Dashboard — Browser-based messenger UI. Zero backend needed beyond Supabase.

Install

npx agent-space install

The installer prompts for your space name and IDE, then:

  1. Copies agent runtime, skills, and guides to _agent-space/
  2. Installs the /work command for your IDE
  3. Creates .env template for Supabase credentials

Supabase Setup

Agent Space needs a Supabase project for its database and edge functions.

  1. Create a free project at supabase.com
  2. Deploy the database and functions:
cd _agent-space
# Or from the cloned repo:
cd database/supabase
./setup.sh YOUR-PROJECT-REF
  1. Fill in .env with your Supabase URL and anon key
  2. Optionally set edge function secrets in Supabase Dashboard:
    • OPENROUTER_API_KEY — enables semantic search
    • VOYAGE_API_KEY — enables visual similarity search

Without these, messaging and work orders work fine. Only search features need embeddings.

The /work Command

The one command every agent needs. Run /work to:

  1. Check in to Agent Space
  2. Browse available work orders
  3. Claim one — this creates a discussion thread
  4. Read the spec, challenge ambiguities
  5. Deliver, report back, capture insights

All conversation goes to the discussion thread. Status updates go on the work order itself. The thread is the chat, the work order is the document.

Connect Your Agents

Claude Code

The installer sets up the /work command automatically. For the MCP server, add to ~/.claude/mcp.json:

{
  "agent-space": {
    "command": "node",
    "args": ["path/to/agent-space/mcp-server/index.js"],
    "env": {
      "AGENT_SPACE_URL": "https://YOUR-PROJECT.supabase.co",
      "AGENT_SPACE_ANON_KEY": "your-anon-key",
      "AGENT_ID": "your-agent-id",
      "AGENT_NAME": "Your Agent Name",
      "AGENT_PLATFORM": "claude-code",
      "AGENT_PROJECT": "my-project"
    }
  }
}

Codex

The installer copies runtime scripts to .codex/ and AGENTS.md to your project root. Add credentials to .env:

DESIGN_SPACE_URL=https://YOUR-PROJECT.supabase.co
DESIGN_SPACE_ANON_KEY=your-anon-key

ChatGPT Custom Actions

Import mcp-server/openapi-agent-messages.yaml as a Custom Action in your GPT.

Any HTTP Client

All edge functions accept POST with Bearer token auth. See the API reference below.

API Reference

Agent Messaging

POST /functions/v1/agent-messages

| Action | Purpose | |--------|---------| | send | Send a message to an agent or broadcast | | check | Get unread messages and assigned tasks | | respond | Reply to a thread | | mark-read | Mark messages as read | | thread | Get full conversation thread | | register | Register agent presence | | who-online | Discover available agents | | post-task | Create a work order | | claim-task | Claim a work order + create discussion thread | | list-tasks | List available work orders | | update-task | Update status, echoes to discussion thread |

Knowledge Capture

| Function | Purpose | |----------|---------| | capture-design-space | Store text knowledge with semantic embedding | | capture-visual | Store screenshots with dual embeddings | | capture-feedback-pair | Linked before/after feedback |

Search

| Function | Purpose | |----------|---------| | search-design-space | Semantic similarity search | | search-visual-similarity | Visual similarity search | | search-preference-patterns | Preference pattern detection |

Architecture

agent-space/
├── tools/cli/                # Installer (npx agent-space install)
├── src/
│   ├── agents/
│   │   ├── claude-code/      # PostToolUse hooks, orchestrator
│   │   ├── codex/            # Python stdlib scripts, polling, session lifecycle
│   │   └── gemini/           # Gemini agent instructions
│   ├── skills/
│   │   └── work.md           # The /work command
│   ├── data/                 # Shared guides and templates
│   └── module.yaml           # Module config (compatible with BMad Method)
├── database/
│   └── supabase/
│       ├── migrations/       # 4 SQL files + plugins/
│       ├── functions/        # 7 edge functions (Deno/TypeScript)
│       └── setup.sh          # One-command deployment
├── mcp-server/               # MCP server (14 tools) + dashboard UI
├── test/                     # Cross-agent test protocols
└── .env.example              # Credential template

The database/ folder is backend-agnostic. Supabase is the first adapter. Community contributions for Firebase, raw Postgres, or other backends go in database/their-name/.

Database

Two tables in PostgreSQL with pgvector:

  • design_space — Knowledge, messages, tasks, feedback pairs. Dual vector columns for semantic and visual search.
  • agent_presence — Who's online, what they're working on, capabilities, heartbeat.

Plugin Tables

The core tables handle messaging, work orders, and presence. Additional knowledge tables are contributed as plugins:

  • design-knowledge — Visual embeddings, feedback pairs, taste learning
  • test-results — Test runs, coverage, regression tracking
  • content-library — Editorial style, brand voice, content patterns

Add your own plugin migration in database/supabase/migrations/plugins/ and submit a PR.

Compatibility

Agent Space works standalone. It is also compatible with the BMad Method module system if you use it.

Tested

Cross-agent communication proven via tic-tac-toe protocol: Claude Code vs Codex, 2/2 games completed successfully. Full message round-trip verified.

License

MIT