New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xapp/chat-widget

Package Overview
Dependencies
Maintainers
7
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xapp/chat-widget

XAPP Chat Widget

  • 1.8.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
208
increased by433.33%
Maintainers
7
Weekly downloads
 
Created
Source

This project was bootstrapped with Create React App.

Available Scripts

The widget communicates with an agent endpoint. There agents and visitors. The widget is a visitor. The widget can talk to an agent in two ways: either directly connecting to a Xapp skill endpoint or via a Chat Server.

The Chat server is a message proxy server that can connect many types of agent and visitor endpoint.

To connect directly to a skill run yarn start-with-dev-skill

To go through the chat server run yarn start-with-dev-server

Configuration

The required parameters are configured in config/config.ts. Use the REACT_APP_ENV to point to a test setup. See the package.json for details.

Install

npm i @xapp/chat-widget redux-thunk redux react-redux --production

Usage

import { ChatWidget } from "@xapp/chat-widget";
import "@xapp/chat-widget/dist/index.css";

function RenderWidget() {
    return <ChatWidget accountKey={"123"} />;
}

Styling

Use theme prop to style widget

const theme: WidgetTheme = {};
return <ChatWidget accountKey={"123"} theme={theme} />;

Local Development

Sample .env

SERVER-URL=https://foo
ACCOUNT-KEY=a33555f79879bc0d83caa51c7dd888

Keywords

FAQs

Package last updated on 17 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc