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

@plurnk/plurnk-agui

v1.20.0

Published

AG-UI HTTP and SSE interface for the PLURNK daemon

Downloads

4,711

Readme

@plurnk/plurnk-agui

AG-UI server module for the PLURNK daemon. It exposes the client-facing HTTP/SSE interface and translates daemon lifecycle events into AG-UI events.

Interface

POST / accepts RunAgentInput and returns an AG-UI event stream.

PLURNK uses standard AG-UI events for Runs, messages, steps, tool calls, state, and approval requests. Additional execution metadata uses namespaced plurnk.* custom events so generic AG-UI clients can ignore it safely.

Workspace selection and PLURNK-specific management actions use namespaced fields under forwardedProps.plurnk. SPEC.md defines those extensions.

Conversation projection

Each Run observes its bound Worker and, once known, its exact Loop. Sibling events do not become chat messages; child activity arrives only when Core delivers it into the parent's log ({§agui-topology-scope}).

| Daemon evidence | Client projection | | --- | --- | | NOTE | Ordinary operation row containing literal working memory. | | WAIT / loop conclusion | Lifecycle signals; delivered SEND replies are assistant speech. | | Live provider reasoning | Standard REASONING_* deltas, immediately. Retries have separate identities. | | SEND | Assistant text; already-streamed reasoning is not repeated. | | Other model operations | Standard tool calls and results. | | Log rows | CUSTOM plurnk.row for richer clients; not a second chat stream to render alongside standard messages. | | Harness activity | CUSTOM plurnk.ambient, without invented model speech. | | Packet and terminal usage | State updates and plurnk.terminated; daemon quantities pass through unchanged. |

READ of reasoning://<worker>/… is an operation receipt, not another reasoning stream. On reattach, the durable conversation snapshot restores accepted reasoning, SENDs, and the latest PLAN. forwardedProps.plurnk.mode="sync" obtains that state without a prompt or model inference ({§agui-conversation-sync}).

Pending proposals and user interactions use standard AG-UI interrupts and resume Runs. Core decides their owner and disposition, including delegated gates; clients do not infer approval policy from tool names. The exact mappings, event schemas, and settlement rules live in SPEC.md.

Integration

The daemon loads the module in process:

import { Module } from "@plurnk/plurnk-agui";

daemon.registerModule(Module.init({
    host: "127.0.0.1",
    port: 1066,
}));

The service supplies this package's .env.defaults through the assembled environment before module startup. A direct in-process consumer must provide that environment or an explicit heartbeatMs; explicit token, maxTurns, and heartbeatMs options override their corresponding environment values. SPEC.md owns the exact value contract.

The module owns transport authentication, request validation, event translation, and proposal delivery. It consumes core's disposition-bearing proposal projection for both live events and reconnect rather than rebuilding the general loop policy. Core owns persistence and model-loop policy; clients own rendering and local terminal/editor behavior.

Development

npm run test -w @plurnk/plurnk-agui