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

chatbot-interface-ifi

v1.8.1

Published

A chatbot interface React component built to be integrated into NexLAB

Readme

chatbot-interface-ifi

React component library providing the PAT chat and guided-learning widgets. Version 1.6.0.


Local Development

cd local-testing
npm install
npm run dev

Opens at http://localhost:5173. The toolbar lets you enter a Chat ID and Teach ID and switch between both components against any live backend chatbot.

To test the embed script locally, first build it:

npm run build:embed

Then open test-embed/index.html directly in a browser. The page lets you point to any hosted embed script URL, select a mode, and load the widget.


Deploying as an NPM Package

Build the library:

npm run build

Publish to NPM:

npm publish

The package is published as chatbot-interface-ifi. The .npmignore file ensures only dist/ is included.

Installing in a consuming app:

npm install chatbot-interface-ifi

The consuming app must also have these installed:

npm install react react-dom @mui/material @mui/icons-material @emotion/react @emotion/styled react-markdown

Basic usage:

import { ChatbotInterface, TeachModeInterface } from 'chatbot-interface-ifi';

<ChatbotInterface chatbotId="your-chatbot-id" />
<TeachModeInterface chatbotId="your-chatbot-id" />

Deploying as a Script Tag Embed

Build the standalone script:

npm run build:embed

Output: dist-embed/chatbot-embed.js

Deploy this file to a static host (Render static site, S3, CDN, etc.). Then embed it on any HTML page with a <script> tag:

<script
  src="https://your-host.com/chatbot-embed.js"
  data-chatbot-id="your-chatbot-id"
></script>

The script bundles all dependencies (React, MUI, etc.) and is fully self-contained. No other scripts are required on the page.

All available attributes:

| Attribute | Default | Description | |-----------|---------|-------------| | data-chatbot-id | required | Chatbot ID from the PAT dashboard | | data-mode | dual | chat, teach, or dual | | data-enable-guided-questions | true | Chat/dual: show AI-suggested follow-ups | | data-show-restart-button | true | Teach/dual: show new-session button in header | | data-container-id | — | Mount into an existing element by ID instead of appending to <body> | | data-session-ids | — | Comma-separated teach session IDs for the session picker | | data-initial-session-id | — | Teach session to restore on load |


Links

  • PAT Dashboard: https://chatbot-dashboard-ifi.onrender.com
  • NPM package: https://www.npmjs.com/package/chatbot-interface-ifi
  • Live embed script: https://chatbot-embedding-ifi.onrender.com/chatbot-embed.js