zerodytrash / TikTok-Chat-Reader

Website to display chats and gifts in realtime from your TikTok LIVE stream. Demo project for TikTok-Live-Connector library.
https://tiktok-chat-reader.zerody.one
277 stars 122 forks source link
api broadcast chat chat-application gift javascript live nodejs socket-io stream tiktok tiktok-api tiktok-live

TikTok-Chat-Reader

A chat reader for TikTok LIVE utilizing TikTok-Live-Connector and Socket.IO to forward the data to the client. This demo project uses the unofficial TikTok API to retrieve chat comments, gifts and other events from TikTok LIVE.

Demo: https://tiktok-chat-reader.zerody.one/

Installation

To run the chat reader locally, follow these steps:

  1. Install Node.js on your system
  2. Clone this repository or download and extract this ZIP file
  3. Open a console/terminal in the root directory of the project
  4. Enter npm i to install all required dependencies
  5. Enter node server.js to start the application server

Now you should see the following message: Server running! Please visit http://localhost:8091
Simply open http://localhost:8091/ in your browser. Thats it.

If you have problems with Node.js, you can also just open the index.html from the public folder.
This will use the server backend of the demo site, which is sufficient for testing purposes. If you want to offer it to others or make many connections at the same time, please consider using your own server.

Screenshot

TikTok LIVE Chat Reader (Demo)