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

@borgee/agent-remote-protocol

v0.2.7

Published

Serialized relay protocol for provider-neutral agent observation.

Readme

@borgee/agent-remote-protocol

@borgee/agent-remote-protocol is the exact-version JSON boundary between the Agent Remote relay and a pure Web client.

Boundary

The package owns strict TypeBox schemas plus JSON codecs for Agent creation and resumption, current state, projected Timeline history, live Timeline delivery, interactions, resource reads, command acknowledgement, and protocol errors. Every public behavior-bearing object rejects additional properties, and every top-level message requires protocol version 1.0.0.

Provider-native values and server-internal AgentStreamEvent or AgentManagerEvent unions do not cross this boundary. Public stream values are independently declared even where a server-internal event currently has the same fields.

Synchronization

AgentSnapshot contains current Agent state and authoritative pending interactions. It does not contain Timeline rows, epoch, or cursor.

Timeline history uses projected entries that identify their sequence coverage and any assistant, reasoning, or tool rows collapsed during projection. Public Timeline agent_stream events carry {epoch, seq}; consecutive assistant-message and reasoning fragments append in sequence, while projected history returns their equivalent merged string. Interactions are synchronized only through Snapshot plus dedicated interaction_requested and interaction_resolved messages, not through agent_stream.

Create and resume requests carry client request identity and a stable relay Agent identity. Creation selects a Provider and supplies its session configuration; resumption supplies the Provider persistence handle. The agent_session response correlates the request with relay and Provider session identity. Accepted message, steer, and cancel commands receive command_acknowledged; a rejected command receives protocol_error with the same requestId.

Resources

Timeline entries bind visible locators to Borgee resource identities. Resource reads distinguish acquisition in progress, immutable available bytes, retryable or terminal ingestion failure, and unavailable Provider sources.

Exports

  • TypeBox schemas and inferred types for every public request, response, Snapshot, Timeline, interaction, and resource value.
  • Focused codecs for Snapshot, Timeline page, live stream, resources, Agent creation, Agent resumption, and Agent-session responses.
  • Aggregate decodeClientMessage / encodeClientMessage and decodeServerMessage / encodeServerMessage codecs.
  • BORGEE_AGENT_REMOTE_PROTOCOL_VERSION and ProtocolVersionSchema for the one accepted wire version.