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

@jimmyyen/opencode-code-relay-plugin

v0.1.8

Published

OpenCode plugin that automates the Code Relay protocol (concept based on yan5xu/code-relay): cross-session and cross-repo state handoff for AI coding agents.

Readme

OpenCode Code Relay Plugin

OpenCode plugin that automates the Code Relay protocol: cross-session and cross-repo state handoff for AI coding agents. It turns the manual HANDOFF / CHECKPOINT routine into single commands plus a session hook, so context survives across sessions and repositories without the agent starting from zero.

Concept based on yan5xu/code-relay. Licensed MIT.

Why

AI coding agents lose context across sessions and across repositories. Code Relay solves this with a file-based handoff protocol, but it relies on the developer remembering to write HANDOFF docs. This plugin automates capture, cross-repo awareness, and restoration.

Install

# from npm
opencode plugin add opencode-code-relay-plugin
# or locally (during development)
opencode plugin add .

Commands

  • relay init — create relay.json at the workspace root and capture project context.
  • relay save — snapshot the current repo to .code-relay/state.json, update the root state, run Spec Sync, and render RESUME.md.
  • relay closeClosing Ritual: consistency check → delta snapshot → next_step.md → atomic commit with a session-end tag.
  • relay switch <repo> — move the active baton to another repo and load its specs/ as context.
  • relay resume — print the current repo's RESUME.md.
  • relay status — condensed view of relay.json.

How it works

  • Relay Managerrelay.json at the workspace root holds project_context, active_baton, and a per-repo map. Per-repo snapshots live in .code-relay/state.json.
  • Spec Sync — deterministic diff of specs/**/*.spec.md (no LLM) compresses intent into the root state and powers the relay close consistency check.
  • Context Injector — renders a Resume Prompt from state + handover templates, injected automatically via the experimental.session.compacting hook and on demand via relay resume.

State model (hybrid)

  • relay.json — machine-readable global state (workspace root).
  • <repo>/.code-relay/state.json — per-repo snapshot.
  • <repo>/.code-relay/RESUME.md — rendered, agent-readable resume prompt.
  • <repo>/.code-relay/next_step.md — next session's first action.

Non-goals

LLM-based spec summarization, GitHub Collaboration Mode, multi-agent swarm orchestration, and a GUI are deferred.

License

MIT — see LICENSE.