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

@agentsea/agent-ui

v0.1.3

Published

An embeddable UI for AI agents.

Readme

Agent UI

An embeddable UI for AI agents.

AgentSea servers provide a JSON representation of interactions which should be displayed to the user. Those interactions are rendered by the client interface to provide interactive user experiences.

Agent UI is a component library that focuses on rendering those experiences in React.

Usage

Render the demo/hello-world agent from AgentSea hub

import Agent from "@agentsea/agent-ui"

(
    <Agent name="demo/hello-world" token="usertoken" />
)

Custom endpoint

Use an agent running on your own hardware that implements the AgentSea API

(
    <Agent url="https://foo-agent.ai/v1/" token="usertoken" />
)

Plans

Directly run the bar plan on agent demo/foo

import Run from "@agentsea/agent-ui"

(
    <Run agent="demo/foo" planName="bar" token="usertoken" />
)

Render a list of agent plans available to the user

import Plans from "@agentsea/agent-ui"

(
    <Plans agent="demo/foo" token="usertoken" />
)

Render the details of a single plan and edit them

import Plan from "@agentsea/agent-ui"

(
    <Plan agent="demo/foo" name="bar" token="usertoken" />
)

Processes

Render a list of running processes

import Processes from "@agentsea/agent-ui"

(
    <Processes agent="demo/foo" token="usertoken" />
)

Render a view of a single process

import Process from "@agentsea/agent-ui"

(
    <Process agent="demo/foo" id="2903hfjo2" token="usertoken" />
)

Feed

Render a feed for the agent

import Feed from "@agentsea/agent-ui"

(
    <Feed agent="demo/foo" token="usertoken" />
)

Threads

Start a thread with the agent

import Thread from "@agentsea/agent-ui"

(
    <Thread agent="demo/foo" token="usertoken" />
)

Show the list of previous threads for the user

import Threads from "@agentsea/agent-ui"

(
    <Threads agent="demo/foo" token="usertoken" />
)

Actions

Show a view of actions available for the agent

import Actions from "@agentsea/agent-ui"

(
    <Actions agent="demo/foo" token="usertoken" />
)

Hosts

Show a selection of hosts for the agent

import Hosts from "@agentsea/agent-ui"

(
    <Hosts agent="demo/foo" token="usertoken" />
)

Config

Show the config for the agent

import Config from "@agentsea/agent-ui"

(
    <Config agent="demo/foo" token="usertoken" />
)

Notifications

Render notifications for the agent

import Notifications from "@agentsea/agent-ui"

(
    <Notifications agent="demo/foo" token="usertoken" />
)

Intro

Render an introduction for the agent

import Intro from "@agentsea/agent-ui"

(
    <Intro agent="demo/foo" token="usertoken" />
)

Agent API

See https://github.com/AgentSea/agentsea-py/tree/main/agentsea/api/v1

An example of using the API to run a plan

import Run from "@agentsea/agent-ui"

(
    <Run agent="demo/foo" planName="bar" token="usertoken" />
)

This would:

  • Use GET on /v1/plans to find the plan ID for the name bar
  • Send a POST to /v1/plans/{id}/run to run the plan, this will return a process ID
  • Poll /v1/processes/{id} to get the current view
  • Respond with /v1/respond to any asks

Developing

Install packages

npm install

Run locally

npm start