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

react-actions-chat

v1.1.1

Published

Composable React chat components with action buttons, guided request flows, and support workflows.

Readme

React Actions Chat

codecov

Interactive React chat UI for support flows, guided actions, confirmations, and user input collection.

Installation

npm install react-actions-chat

This package targets Node.js ^22.13.0 || >=24.0.0.

If you want query-driven or vector-search-backed action recommendations, install the companion package too:

npm install react-actions-chat react-actions-chat-recommended-actions

If you want reusable support-desk flows with ticketing, live-chat handoff, and admin queue management, install:

npm install react-actions-chat react-actions-chat-support

If you want backend-routed text generation on top of the chat UI, install the LLM companion package:

npm install react-actions-chat react-actions-chat-llms

Quick Start

import { Chat, createTextPart } from 'react-actions-chat';
import 'react-actions-chat/styles';

export function App() {
  return (
    <Chat
      allowFreeTextInput
      initialMessages={[
        {
          type: 'other',
          parts: [createTextPart('Hello! How can I help you today?')],
        },
      ]}
    />
  );
}

Chat keeps the shared input disabled by default. Use createRequestInputButtonDef(...) for guided collection steps, or set allowFreeTextInput when you want an always-on free-form chat box.

Documentation

Read the published documentation site:

If you're contributing to this repo, the docs source lives in docs.

Examples

Runnable workspace examples live in examples:

  • coding: multiline coding-assistant flow with markdown-rendered replies
  • qa-bot: basic support assistant flow
  • uploads: dedicated file-upload example with image and file parts
  • login: input and confirmation flows
  • llm-support: companion LLM package with a local backend route and an in-chat startup API-key step
  • settings: companion recommended-actions package with a real OpenAI embedder
  • support-desk: companion support package with customer and admin ticket workflows

Live demos:

  • coding: https://coriew.github.io/react-actions-chat/examples/coding/
  • qa-bot: https://coriew.github.io/react-actions-chat/examples/qa-bot/
  • uploads: https://coriew.github.io/react-actions-chat/examples/uploads/
  • login: https://coriew.github.io/react-actions-chat/examples/login/
  • support-desk: https://coriew.github.io/react-actions-chat/examples/support-desk/
  • llm-support: https://coriew.github.io/react-actions-chat/examples/llm-support/ (starts locked until you enter an API key in chat)
  • settings: https://coriew.github.io/react-actions-chat/examples/settings/ (published without VITE_OPENAI_API_KEY, so live recommendations stay disabled there)

Start one from the repo root after pnpm install:

pnpm --filter coding-example dev
pnpm --filter qa-bot-example dev
pnpm --filter uploads-example dev
pnpm --filter login-example dev
pnpm --filter support-desk-example dev
pnpm --filter llm-support-example dev
pnpm --filter settings-example dev

Development

Use Node.js ^22.13.0 || >=24.0.0 with pnpm.

corepack enable
pnpm install
pnpm build

Useful scripts:

  • pnpm test
  • pnpm test:coverage
  • pnpm typecheck
  • pnpm lint
  • pnpm format:check
  • pnpm changeset
  • pnpm agents:check
  • pnpm version-packages
  • pnpm docs:dev
  • pnpm docs:build
  • pnpm pages:build
  • pnpm run refresh:all

Contributing

Contributions are welcome.

If your pull request changes a published package, add a changeset with pnpm changeset unless the PR is intentionally marked with the no-changeset label.

License

This project is licensed under the MIT License. See LICENSE.