Kient (Kick-Client) is a versatile TypeScript client designed to simplify interaction with Kick's API and WebSocket. With Kient, you can seamlessly integrate Kick's platform into your projects, making it easier than ever to leverage its capabilities.
Learn how to use Kient and find detailed information on the website.
Install Kient with your preferred package manager.
$ pnpm add kientImport Kient, create a new instance, and interact with API endpoints or listen to WebSocket events.
import{Events,Kient}from'kient'// Create a new client instanceconstclient=awaitKient.create()// Get a channel and listen to its chatroomconstchannel=awaitclient.api.channel.getChannel('channel_slug')awaitclient.ws.chatroom.listen(channel.data.chatroom.id)// Handle incoming messagesclient.on(Events.Chatroom.Message,(message)=>{console.log(message.data)})Kient is licensed under the MIT License.