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 🙏

© 2025 – Pkg Stats / Ryan Hefner

agentexec-ui

v0.1.4

Published

React components for agentexec background agent monitoring

Downloads

233

Readme

agentexec-ui

React components for monitoring agentexec background agents. Provides a GitHub-inspired dark mode UI for tracking agent execution status and progress.

This is a presentational component library - you bring your own data fetching solution (we recommend TanStack Query).

Installation

npm install agentexec-ui
# or
yarn add agentexec-ui
# or
pnpm add agentexec-ui

Quick Start

import { TaskList, TaskDetail, ActiveAgentsBadge } from 'agentexec-ui';
import type { ActivityListItem } from 'agentexec-ui';

function App() {
  // Use your preferred data fetching solution (TanStack Query, SWR, etc.)
  const { data, isLoading } = useYourDataFetching();

  return (
    <div>
      <ActiveAgentsBadge count={data?.activeCount ?? 0} loading={isLoading} />
      <TaskList
        items={data?.items || []}
        loading={isLoading}
        onTaskClick={(agentId) => console.log('Selected:', agentId)}
      />
    </div>
  );
}

Components

TaskList

Displays a list of agent tasks with status and progress.

<TaskList
  items={activityList.items}
  loading={isLoading}
  onTaskClick={(agentId) => navigate(`/agents/${agentId}`)}
  selectedAgentId={selectedId}
/>

TaskDetail

Shows detailed information about a specific agent including full log history.

<TaskDetail
  activity={activityDetail}
  loading={isLoading}
  error={error}
  onClose={() => navigate('/agents')}
/>

ActiveAgentsBadge

Displays the count of currently active (queued or running) agents.

<ActiveAgentsBadge count={activeCount} loading={isLoading} />

StatusBadge

Shows the status of an agent with appropriate styling.

<StatusBadge status="running" />

ProgressBar

Displays completion progress for an agent.

<ProgressBar percentage={75} status="running" />

Styling

Components use CSS custom properties (CSS variables) for theming. You must provide your own stylesheet that defines these variables:

:root {
  --ax-color-bg-primary: #0d1117;
  --ax-color-bg-secondary: #161b22;
  --ax-color-bg-tertiary: #21262d;
  --ax-color-border-default: #30363d;
  --ax-color-text-primary: #e6edf3;
  --ax-color-text-secondary: #8b949e;
  --ax-color-status-queued: #8b949e;
  --ax-color-status-running: #58a6ff;
  --ax-color-status-complete: #3fb950;
  --ax-color-status-error: #f85149;
  --ax-color-status-canceled: #f0883e;
  /* ... and more */
}

See the example frontend for a complete GitHub-inspired dark theme implementation.

The example styles also include pagination classes (.ax-pagination*) compatible with react-paginate.

TypeScript

Full TypeScript support with exported types:

import type {
  Status,
  ActivityLog,
  ActivityDetail,
  ActivityListItem,
  ActivityList,
  ActiveCountResponse,
} from 'agentexec-ui';

Data Fetching

This library does not include data fetching utilities. We recommend using TanStack Query for data fetching with polling support.

See the FastAPI example frontend for a complete implementation using TanStack Query.

API Compatibility

The types in this library match the agentexec Python package API schemas:

  • ActivityList - Response from GET /api/agents/activity
  • ActivityDetail - Response from GET /api/agents/activity/{agent_id}
  • ActiveCountResponse - Response from GET /api/agents/active/count

License

MIT