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

@xpert-ai/chatkit-ui5

v0.0.1

Published

SAP UI5 bindings for Xpert ChatKit

Readme

@xpert-ai/chatkit-ui5

SAP UI5 control wrapper for ChatKit components, enabling easy embedding of ChatKit conversational experiences in UI5/Fiori applications. For a sample application, refer to examples/sap-ui5 (Todo + ChatKit) in this repository.

Prerequisites

  • An XpertAI digital expert created on the XpertAI platform (with xpertId) and ChatKit Host configured, obtaining the corresponding frameUrl and apiUrl.
  • UI5 CLI (npm i -g @ui5/cli) and project dependency management tools (e.g., pnpm / npm).

Installation

pnpm add @xpert-ai/chatkit-ui5
# or npm i @xpert-ai/chatkit-ui5

Place the build output in the UI5 static resources directory and declare the resource root path in manifest.json (example matches sample-app):

"sap.ui5": {
  "resourceRoots": {
    "xpertai.chatkit": "thirdparty/xpertai/chatkit/"
  }
}

Quick Start (from sample-app)

Reserve a container in the XML view:

<VBox id="chatKitContainer" width="100%" height="70vh" />

Load on-demand and create the control in the controller:

sap.ui.require(["xpertai/chatkit/ui5"], (ChatKitLib) => {
  const chatKit = new ChatKitLib.ChatKit({
    config: {
      frameUrl: "https://app.mtda.cloud/chatkit/index.html",
      api: {
        apiUrl: "https://api.mtda.cloud/api/ai",
        xpertId: "your-xpert-id",
        getClientSecret: async () => "<API Key securely retrieved from backend>"
      },
      onEffect: ({ name, data }) => {
        // Handle ChatKit effects for application integration, e.g., adding to todo list
      }
    }
  });

  this.byId("chatKitContainer").addItem(chatKit);
});

Main Configuration Options

  • frameUrl: ChatKit Host address (HTML container).
  • api.apiUrl: Backend API address.
  • api.xpertId: XpertAI platform digital expert ID.
  • api.getClientSecret(): Async function to securely retrieve user-specific API Key from backend.
  • Event callbacks: onReady, onError, onResponseStart, onResponseEnd, onThreadChange, onThreadLoadStart, onThreadLoadEnd, onEffect, etc. (follow onXxx naming convention).

Control Methods

After obtaining the control instance in the controller, you can call:

  • focusComposer(): Focus the input box.
  • setThreadId(threadId): Switch conversation thread.
  • sendUserMessage(message): Send user message.
  • setComposerValue(value): Set input box content.
  • fetchUpdates(): Refresh conversation content.
  • sendCustomAction(action): Trigger custom action.

Event Binding (UI5 Style)

The control maps ChatKit events to UI5 events: ready, error, log, responseStart, responseEnd, threadChange, threadLoadStart, threadLoadEnd, effect. You can listen directly in XML or subscribe via attachReady/attachEffect methods in the controller.

Examples and References

  • Complete example: examples/sap-ui5 (includes manifest configuration, container layout, Effect handling).
  • Recommended configuration loading approach: Merge defaults, manifest.json, and window overrides in Component.js, then pass via model to views and controllers.