Skip to content

doominkim/chzzk-z

Repository files navigation

Chzzk-Z - JavaScript API for Chzzk

Generic badge Generic badge Generic badge Generic badge

Chzzk-Z is API library for chzzk for develop ChatBot, GameClient when naver creates an official API, the update stops.

It's very unstable now, so don't use it before it becomes version 1.0.0.

Evnrioment

  • Available over node.js 18

Key Features:

  • User Login / Find User Infomation
  • Join Chatting Room / Quit Chatting Room / Send Chat
  • Find Channel Infomation
  • WebSocket Connect ( Streaming Type )

Installration


$ npm install chzzk-z

Usage Examples:

Here is simple example:

import * from "chzzk-z";

/**
    Channel
**/

// create ChzzkConnect Object
const chzzkModule = new ChzzkModule();

// find channles by string keyword
const channels = await chzzkModule.channel.find("침착맨");

// channelId
const channelId = channels["data"][0]?.channel?.channelId;

// find specific channel by channelId
const channel = await chzzkModule.channel.findById(channelId);

// get channel status
const status = await chzzkModule.live.findStatusByChannelId(channelId);

// get channel detail
const detail = await chzzkModule.live.findDetailByChannelId(channelId);

// get channel access token
const token = await chzzkModule.chat.findAccessToken(status.chatChannelId);

/**
    User
**/

//login
await chzzkModule.user.login(
    YOUR_NID_AUTH, YOUR_NID_SESSION
  );

//get your naver account info
const user = await chzzkModule.user.status();



About

Naver Chzzk Unofficial API Library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published