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

agent-ui-react

v0.1.6

Published

A React component library for building agent-based user interfaces.

Readme

agent-ui-react

version license

A React component library for building agent-based user interfaces. Provides production-ready components for conversational AI experiences, authentication, and template-driven data rendering — all built on Fluent UI and the AG-UI protocol.


Table of Contents


Features

  • Conversational AI assistant with multi-agent support and AG-UI protocol streaming
  • Dynamic UI generation — assistant messages rendered as styled HTML via Azure OpenAI
  • Voice input with Web Speech API integration
  • Lazy message loading with IntersectionObserver for performant chat history
  • Resizable side panel with drag-to-resize and responsive default widths
  • Mobile responsive layout — fullscreen overlay on small screens, side panel on desktop
  • Starter prompt chips for guided onboarding
  • JWT-based authentication with role-to-permission mapping
  • JSON-driven template rendering with 8 built-in control types and data binding
  • Visual template designer with drag-and-drop, live preview, and JSON editing
  • Built on Microsoft Fluent UI for a consistent, accessible design system
  • Fully typed with TypeScript — ships with declaration files

Installation

npm install agent-ui-react

Quick Start

import { AIAssistant, AuthProvider } from "agent-ui-react";

function App() {
  return (
    <AuthProvider
      config={{ apiBaseUrl: "https://api.example.com", appId: "my-app" }}
      getAccessToken={getAccessToken}
    >
      <AIAssistant
        config={{ apiBaseUrl: "https://api.example.com", appId: "my-app" }}
        getAccessToken={getAccessToken}
        userInfo={{ name: "Jane", email: "[email protected]" }}
        permissions={["chat", "templates"]}
        displayMode="Copilot"
        onClose={() => console.log("closed")}
      />
    </AuthProvider>
  );
}

Components

| Component | Description | Documentation | |-----------|-------------|---------------| | AuthProvider | Wraps your app to provide authenticated user info and role-based permissions via React Context. Decodes JWT tokens and fetches user roles from the API. | AuthProvider Docs | | AIAssistant | Full-featured conversational AI chat UI with multi-agent support, conversation history, starter prompts, templates, and AG-UI protocol integration. | AIAssistant Docs | | TemplateRenderer | Renders JSON-defined ITemplate objects against server data. Displays structured, data-bound UI cards with support for 8 control types and data binding. | TemplateRenderer Docs | | TemplateDesigner | Visual drag-and-drop editor for creating and editing ITemplate JSON definitions. Includes property panel, live preview, JSON editing, and data source binding. | TemplateDesigner Docs |


Dependencies

Runtime

| Package | Description | |---------|-------------| | @ag-ui/client | AG-UI protocol client for agent communication | | @ag-ui/core | AG-UI protocol core types and utilities | | @fluentui/react-components | Microsoft Fluent UI React component library | | react | React library | | react-dom | React DOM renderer | | react-router | Declarative routing for React |


Browser Support

| Browser | Supported | |---------|-----------| | Chrome (latest) | Yes | | Edge (latest) | Yes | | Firefox (latest) | Yes | | Safari (latest) | Yes |


Release Notes

See the full version history and changelog.


Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Commit your changes (git commit -m "Add my feature")
  4. Push to the branch (git push origin feature/my-feature)
  5. Open a Pull Request

For questions or feature requests, please open an issue or contact us.


Authors

Developed and maintained by Tech Trips.


License

This project is licensed under the MIT License.

Copyright © 2026 Tech Trips