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

yams-blackboard

v1.5.0

Published

YAMS Blackboard plugin for OpenCode - agent-to-agent communication via shared memory

Readme

YAMS Blackboard Plugin for OpenCode

Shared blackboard for multi-agent coordination. Agents post findings, claim tasks, and discover each other's work through YAMS.

[!WARNING] Experimental Software

Under active development. APIs may change without notice. Requires YAMS v0.8.1+.

Features

  • Blackboard pattern for agent-to-agent communication via shared memory
  • Findings with severity, confidence, topics, and lifecycle states (draft/published/acknowledged/resolved)
  • Task coordination with claim-based assignment, dependencies, and priority
  • Context grouping for related findings and tasks
  • Automatic compaction hooks — blackboard state survives session compression
  • All writes tagged owner=opencode for cross-agent discovery
┌─────────────────────────────────────────────────────┐
│                   YAMS BLACKBOARD                   │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐  │
│  │  Findings   │  │   Tasks     │  │   Context   │  │
│  │  (tagged)   │  │  (status)   │  │   (graph)   │  │
│  └─────────────┘  └─────────────┘  └─────────────┘  │
└─────────────────────────────────────────────────────┘
        ▲ write            ▲ write           │ read
        │                  │                 ▼
   ┌────┴────┐        ┌────┴────┐       ┌────────────┐
   │ Agent A │        │ Agent B │       │   Agent C  │
   │ (scan)  │        │ (review)│       │(synthesize)│
   └─────────┘        └─────────┘       └────────────┘

Install

1. YAMS daemon

brew install trvon/tap/yams
yams daemon start
yams status  # Should show "running"

2. OpenCode config

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["yams-blackboard"]
}

OpenCode installs npm plugins automatically at startup.

Tools

Agents

| Tool | Description | |------|-------------| | bb_register_agent | Register identity and capabilities | | bb_list_agents | List registered agents |

Findings

| Tool | Description | |------|-------------| | bb_post_finding | Post finding to blackboard | | bb_query_findings | Query by topic, agent, severity, context | | bb_search_findings | Semantic search across findings | | bb_get_finding | Get full finding details | | bb_acknowledge_finding | Mark as acknowledged | | bb_resolve_finding | Mark as resolved with explanation |

Tasks

| Tool | Description | |------|-------------| | bb_create_task | Create task for agents to claim | | bb_get_ready_tasks | Get pending tasks with met dependencies | | bb_claim_task | Claim a pending task | | bb_update_task | Update task status | | bb_complete_task | Mark completed with findings/artifacts | | bb_fail_task | Mark failed with error | | bb_query_tasks | Query by type, status, assignee |

Context & Utility

| Tool | Description | |------|-------------| | bb_create_context | Group related findings/tasks | | bb_get_context_summary | Summary of context state | | bb_set_context | Set current working context | | bb_recent_activity | Recent findings and task updates | | bb_stats | Blackboard statistics | | bb_connections | Explore graph connections |

Quick Start

// Scanner registers and posts finding
bb_register_agent({ id: "scanner", name: "Scanner", capabilities: ["security"] })

bb_post_finding({
  agent_id: "scanner", topic: "security",
  title: "SQL Injection in auth.ts:42", severity: "high", confidence: 0.92,
  content: "Unsanitized user input in SQL query...",
  references: [{ type: "file", target: "src/auth.ts", line_start: 42 }]
})

// Fixer discovers, claims task, resolves
bb_search_findings({ query: "SQL injection" })
bb_claim_task({ task_id: "t-xxx", agent_id: "fixer" })
bb_complete_task({ task_id: "t-xxx", findings: ["f-fix-001"] })
bb_resolve_finding({
  finding_id: "f-original", agent_id: "fixer",
  resolution: "Parameterized queries added in PR #123"
})

Schemas

Finding

interface Finding {
  id: string
  agent_id: string
  topic: "security" | "performance" | "bug" | "architecture" | "refactor" | "test" | "doc" | "dependency" | "accessibility" | "other"
  title: string
  content: string           // markdown
  confidence: number        // 0.0–1.0
  severity?: "info" | "low" | "medium" | "high" | "critical"
  status: "draft" | "published" | "acknowledged" | "resolved" | "rejected"
  scope: "session" | "persistent"
  context_id?: string
  references?: Reference[]
}

Task

interface Task {
  id: string
  title: string
  type: "analysis" | "fix" | "review" | "test" | "research" | "synthesis"
  priority: 0 | 1 | 2 | 3 | 4  // 0=critical, 4=backlog
  status: "pending" | "claimed" | "working" | "blocked" | "review" | "completed" | "failed"
  created_by: string
  assigned_to?: string
  depends_on?: string[]
}

See DESIGN.md for complete schema documentation.

Lifecycle Hooks

  • session.created — starts a YAMS session for the conversation
  • experimental.session.compacting — injects blackboard summary before compaction prompt
  • session.compacted — injects blackboard summary into compaction context

Compaction

Blackboard state is automatically pushed into output.context during compaction. To manually retrieve shared context:

yams list --owner opencode --since 24h --limit 20 --format json --match-all-tags

Persistence

Findings are persistent by default (survive across sessions). Use scope: "session" for temporary data:

bb_post_finding({ ..., scope: "session", ttl: 3600 })

Development

bun install        # Install dependencies
bun run build      # Compile to index.js
bun run typecheck  # Type check
bun test           # Unit tests
bun run test:integration  # Integration tests (requires YAMS daemon)

Troubleshooting

yams daemon start  # "YAMS daemon not running"
yams status        # Verify daemon is up

Plugin not loading: Check opencode.json has "plugin": ["yams-blackboard"], restart OpenCode.

Tools not appearing: Start a new session — tools register on session.created.

License

GPL-3.0-only — see LICENSE.