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

@kibadist/agentui-protocol

v0.2.4

Published

AgentUI protocol types and interfaces

Downloads

1,795

Readme

@kibadist/agentui-protocol

Core TypeScript types for the AgentUI wire protocol.

Install

npm install @kibadist/agentui-protocol

Overview

This package defines the event contract for bidirectional communication between an AI agent and a React UI. All events flow as typed, versioned messages with session correlation.

UI Events (agent to frontend) describe how to patch the rendered UI:

| Operation | Description | |---|---| | ui.append | Add a component to the render list | | ui.replace | Update an existing component's props | | ui.remove | Remove a component by key | | ui.toast | Show an ephemeral notification | | ui.navigate | Trigger client-side navigation |

Action Events (frontend to agent) capture user interactions:

| Type | Description | |---|---| | action.submit | Form submission or message send | | action.select | Item selection | | action.approve | Explicit user approval | | action.generic | Custom action |

Usage

import type {
  UIEvent,
  ActionEvent,
  UINode,
  UIAppendEvent,
  UIReplaceEvent,
} from "@kibadist/agentui-protocol";

// A UI node the agent wants to render
const node: UINode = {
  key: "card-1",
  type: "info-card",
  props: { title: "Hello", body: "World" },
};

// An append event
const event: UIAppendEvent = {
  v: 1,
  id: "evt-1",
  ts: new Date().toISOString(),
  sessionId: "session-123",
  kind: "ui",
  op: "ui.append",
  node,
};

Exports

| Export | Kind | Description | |---|---|---| | UIEvent | type | Union of all UI patch operations | | ActionEvent | type | Union of all user action types | | AgentUIEvent | type | UIEvent \| ActionEvent | | UINode | interface | Renderable component: key, type, props, optional slot/children/meta | | BaseEvent | interface | Common fields: v, id, ts, sessionId, traceId? | | UIAppendEvent | interface | Append operation | | UIReplaceEvent | interface | Replace operation | | UIRemoveEvent | interface | Remove operation | | UIToastEvent | interface | Toast notification | | UINavigateEvent | interface | Client-side navigation | | ActionSubmitEvent | interface | Submit action | | ActionSelectEvent | interface | Select action | | ActionApproveEvent | interface | Approve action | | ActionGenericEvent | interface | Generic action |

License

MIT