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

@steerable/agent-ui

v0.2.4

Published

Steerable framework Tier 4 — headless React hooks (useAgentSession, useChatStream, useToolCallStatus) and Tailwind-themed components (ChatPanel, MessageList, OrchestrationPlanCard, ToolCallRenderer, SSEStreamView) for embedding Steerable agents in any Rea

Readme

@steerable/agent-ui

Headless React components + hooks + Tailwind preset for building agent UIs on top of @steerable/agent-protocol. Drop-in compatible with deeppath/apps/web's ChatPanel architecture; designed to be reused by deeppath-agent (Electron) after sidecar wiring lands.

Install

pnpm add @steerable/agent-ui @steerable/agent-protocol react react-dom

@steerable/agent-ui ships only types + hooks + headless components. UI styling is delegated to your Tailwind config via the @steerable/agent-ui preset.

Tailwind preset

// tailwind.config.ts
import preset from '@steerable/agent-ui/tailwind-preset';

export default {
  presets: [preset],
  content: [
    './src/**/*.{ts,tsx}',
    './node_modules/@steerable/agent-ui/dist/**/*.js',
  ],
};

The preset exposes design tokens (bg-agent-canvas, text-agent-foreground, border-agent-border, …) that map to CSS variables. Override them in your own globals.css to retheme without forking components.

Architecture

@steerable/agent-protocol  (types: SSEEvent, ChatMessage, ToolCall, ...)
        ▲
        │ types-only
        │
@steerable/agent-ui
  ├─ hooks/           ← framework-agnostic state + side-effects
  │   ├─ useAgentSession   create / resume / list sessions
  │   ├─ useChatStream     consume an SSE stream of events into ChatMessage[]
  │   └─ useToolCallStatus tool call lifecycle (proposed → running → done)
  │
  ├─ components/      ← headless React (Tailwind class names only)
  │   ├─ MessageList            virtualized + auto-scroll list of ChatMessages
  │   ├─ ChatPanel              orchestrates header / list / input
  │   ├─ OrchestrationPlanCard  multi-step plan with progress
  │   ├─ ToolCallRenderer       safe (read) / proposed (write) / running / done
  │   └─ SSEStreamView          live JSON event log (debug + power-user)
  │
  └─ tailwind-preset.ts  ← shared design tokens

Each hook returns plain data; each component takes plain props. Nothing imports React Router, Next.js, or any specific HTTP client — the consumer wires the actual transport (fetch / SSE / IPC / sidecar).

Status (0.1.0)

This is the foundation release of the framework UI. It ships:

  • ✅ Tailwind preset with the design tokens used by deeppath/apps/web.
  • ✅ Three foundational hooks listed in the architecture diagram.
  • ✅ Five core components listed in the architecture diagram (intentionally the minimum for a usable chat UI). Each is fully type-safe against @steerable/agent-protocol.
  • ✅ Vitest test suite covering hooks + render snapshots.
  • ⏸ Storybook is deferred to 0.2.0 / P8 docs (per project decision).
  • ⏸ Multi-agent group chat (ChatTabs / AgentManagementModal), slash command palette, automation alerts, file upload, share-image modal, etc. are tracked for 0.2.0 / 0.3.0 — they exist in deeppath/apps/web today and will be ported once the foundational set is consumed in production by P7.

Usage example

import {
  ChatPanel,
  MessageList,
  ToolCallRenderer,
  useChatStream,
} from '@steerable/agent-ui';
import type { SSEEvent } from '@steerable/agent-protocol';

function MyChat({ chatId }: { chatId: string }) {
  const { messages, isStreaming, sendUserMessage } = useChatStream({
    transport: {
      stream: async (input, onEvent) => {
        const res = await fetch('/api/v2/chats/' + chatId + '/stream', {
          method: 'POST',
          body: JSON.stringify(input),
        });
        const reader = res.body!.getReader();
        // … decode + dispatch onEvent(SSEEvent) …
      },
    },
  });

  return (
    <ChatPanel
      messages={messages}
      isStreaming={isStreaming}
      onSubmit={sendUserMessage}
      renderToolCall={(call) => <ToolCallRenderer call={call} />}
    />
  );
}

See apps/web/src/app/goals/desktop/components/ChatPanel/ChatPanel.tsx in the deeppath repo for the production-grade caller (which P7 will rewrite to import these primitives).