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

hqk-leo-chat-uikit-react

v1.0.1

Published

_English | [简体中文](readme.zh_cn.md)_ # [chat-uikit-react](https://www.tencentcloud.com/document/product/1047/34279/) >chat-uikit-react is a UI component library based on Tencent Cloud IM SDK. It provides universal UI components to offer features such as

Downloads

2

Readme

English | 简体中文

chat-uikit-react

chat-uikit-react is a UI component library based on Tencent Cloud IM SDK. It provides universal UI components to offer features such as conversation, chat, relationship chain, group, and audio/video call features. With these UI components, you can quickly build your own business logic. When implementing UI features, components in chat-uikit-react will also call the corresponding APIs of the IM SDK to implement IM-related logic and data processing, allowing developers to focus on their own business needs or custom extensions.

Demos

We have built demos to illustrate the chatting feature.

| | sample-chat | live-chat | | ------ | ------ | ------ | | | img.png | img.png | | url | sample-chat | live-chat | | demo code | sample-chat-code | live-chat-code |

You can preview these demos on our website and obtain their open source code in GitHub.

Running Demo

Step 1. Download the source code

# Run the code in CLI
$ git clone https://github.com/TencentCloud/chat-uikit-react
# Go to the project  
$ cd chat-uikit-react
# Install dependencies of the demo
$ npm install && cd examples/sample-chat && npm install

Step 2. Configure demo

  1. Open the examples/sample-chat project and locate the GenerateTestUserSig.js file in ./examples/sample-chat/src/debug/GenerateTestUserSig.js.
  2. In the GenerateTestUserSig.js file, set SDKAPPID and SECRETKEY, whose values can be obtained in the IM console. Click the card of the target app to go to its configuration page.
  3. In the Basic Information area, click Display key, and copy and save the key information to the GenerateTestUserSig file.

!

  • In this document, the method to obtain UserSig is to configure the secret key in the client code. In this method, the secret key is vulnerable to decompilation and reverse engineering. Once your secret key is leaked, attackers can steal your Tencent Cloud traffic. Therefore, this method is only suitable for locally running a demo project and debugging.
  • The best practice is to integrate the calculation code of UserSig into your server and provide an application-oriented API. When UserSig is needed, your application can send a request to your server for a dynamic UserSig. For more information, see How do I calculate UserSig during production?.

Step 3. Launch the project

# Launch the project
$ cd examples/sample-chat
$ npm run start

Step 4. Send your first message

  1. After the product is launched, click the + icon to create a conversation.
  2. Search for another user's userID in the input box.
  3. Click the user's profile photo to initiate a conversation.
  4. Enter a message in the input box and press Enter to send it.

Quick links