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 🙏

© 2024 – Pkg Stats / Ryan Hefner

sova-chatkit

v0.8.0

Published

SOVA dialog widget open soucre React lib

Downloads

4

Readme

:rainbow: Why?

Library of react components that allows you to create dialog interface that interacts with a third-party service that provides the ability to interact with chat.

:space_invader: Install

For install library you need enter next comand:

npm i sova-chatkit

:rocket: Quick start

For quick start and make changes to a library component, enter in your App.jsx file next comand:

import React from "react"
import { CkComponents } from "sova-chatkit"
 
function App() {
 return (
 <div className="App">
   <CkComponents.ChatIt ckStore={true} />
 </div>
 )
}
 
export default App

:crown: Table of contents

The library consists of the next components:

:unicorn: CkComponents - UI components of widget (react-components);
:wrench: ckAPIMethods - methods that affect behavior of UI or interaction with UI;
:blue_book: ckStore - management of content.

Detailed description of the library is given below.

:memo: Library Description

CkComponents

import { CkComponents } from "sova-chatkit"

Widget uses next react components:
| Component | | |-------------------------------------------------------------------------------------------------------------|-----------------------------------------------------| | Badge | widget expand button | | Message| bubble of text message with information about it | | Dialog | displaying a set of text messages | | Header | widget title | | Rate | component of rate the message | | Sender | message input and sending component |

Each component accepts props from ckStore with value true or false denoting whether the component should cling information from the base ckStore or not.

ckAPIMethods

import { ckAPIMethods } from "sova-chatkit"

ckAPIMethods stores a list of methods: | API method | | |---------------------------------------------------------------------------------------------------------------------------------------|---------------------| | recieveMessageAPI | add a text messages to STORE | | sendMessageAPI | send messages to the module to call request | | styleAPI | edit the widget theme or individual component | | uiManagmentAPI | change settings of components in STORE | | settingsAPI | change pictures in widget | | modulesAPI | connection of dialog modules | | languageAPI | settings language packs |

All methods affect information stored ckStore and can change widget behavior and display.

ckStore

import { ckStore } from "sova-chatkit"

ckStore stores content information in global keys:
| Key | | |------------------------------------------------------------------------------------------------------------|--------------------------------------------------------| | message | user message history and incoming answers | | modules | information of dialog modules | | settings | dialog settings and its states | | language | settings language packs | | styles | style settings of the dialog and individual components | | clientConfig | top-level widget settings | | managment | widget settings |

Implemented with Storeon. You can see all content information in react dev tools.