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

andy-widget-react

v2.0.6

Published

Official React Widget for embeddable Andy agents

Readme

andy-widget-react

The official React Widget for Andy. Its canonical source is Andesphere/andy-sdk.

Install

Pin an exact reviewed release:

bun add [email protected]

React and React DOM 18 or 19 are required peer dependencies.

Use

'use client'

import { AndyChat, setApiBaseUrl } from 'andy-widget-react'

setApiBaseUrl('https://app.andypartner.com/api')

export function SupportWidget() {
	return <AndyChat embedId='your-agent-id' />
}

embedId is the non-secret Andy Agent ID. The Widget fetches its effective configuration from GET /api/chatbot/:embedId and sends visitor messages to POST /api/messages. The browser sends the embedding page's Origin; Andy enforces the Agent's exact allowed-origin configuration.

The launcher starts closed. If the Agent ID is invalid or configuration cannot be loaded, the Widget renders no launcher and does not affect the host page. Message failures remain inside the Widget as a short, language-aware retry message.

Props

| Prop | Type | Purpose | | --- | --- | --- | | embedId | string | Required Agent ID outside preview mode | | tooltip | string | Optional launcher tooltip | | name | string | Override the configured Agent name | | headline | string | Override the configured headline | | description | string | Override the configured description | | welcomeMessage | string | Override the configured first message | | bubbleLabel | string | Override the configured pill label | | theme | 'light' \| 'dark' \| 'auto' | Override the configured theme | | orientation | 'left' \| 'right' | Override the configured position | | brandColor | string | Override the configured six-digit hex color | | bubbleStyle | 'icon' \| 'pill' | Override the configured launcher style | | useBrandColor | boolean | Override configured brand-color use | | logoUrl | string | Override the configured logo | | previewMode | boolean | Render local prop-based preview configuration | | initialOpen | boolean | Opt into an initially open Widget; defaults to false |

The server configuration controls Powered by Andy visibility. Consumers cannot suppress it with a prop. FAQ entries render only when the API supplies both a question and an answer; the current question-only response safely exposes no incomplete FAQ. Visitor-information and lead capture are disabled in this release because there is no durable public submission boundary.

This release intentionally has no Widget analytics or event callback API. Use Andy's existing conversation analytics rather than observing the Shadow DOM.

Advanced exports

The package also exports useAndyChat, individual presentation components, its public TypeScript types, design tokens, getApiBaseUrl, and setApiBaseUrl. Andy remains a compatibility alias for AndyChat; new integrations should use AndyChat.

Supported integration path

Use the React package directly. Do not use an iframe, a floating @latest dependency, or Andy's legacy hosted /widget.js redirect for new integrations.

License

MIT