# kient

Latest version **2.3.0** (published 2025-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install kient
pnpm add kient
yarn add kient
bun add kient
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.0 |
| Published | 2025-04-18 |
| First published | 2023-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 8 |
| Unpacked size | 44.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 45 |
| Maintainers | soulweaver |
| Keywords | kick, api, livestream, bot |

## Links

- npm: https://www.npmjs.com/package/kient
- Repository: https://github.com/zSoulweaver/kient
- Homepage: https://kient.pages.dev
- npm.io page: https://npm.io/package/kient

## Dependencies (8)

- [defu](https://npm.io/package/defu.md) ^6.1.4
- [hono](https://npm.io/package/hono.md) ^4.7.2
- [destr](https://npm.io/package/destr.md) ^2.0.3
- [tseep](https://npm.io/package/tseep.md) ^1.2.2
- [nanoid](https://npm.io/package/nanoid.md) ^5.1.0
- [ofetch](https://npm.io/package/ofetch.md) ^1.3.4
- [pusher-js](https://npm.io/package/pusher-js.md) ^8.4.0-rc2
- [@kakasoo/deep-strict-types](https://npm.io/package/@kakasoo/deep-strict-types.md) ^2.0.2

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 2.3.0 (latest) — 2025-04-18
- 2.2.0 — 2025-04-06
- 2.1.0 — 2025-04-06
- 2.0.1-7 — 2025-03-05
- 2.0.1-6 — 2025-03-05
- 2.0.1-5 — 2025-03-03
- 2.0.1-4 — 2025-03-01
- 2.0.1-3 — 2025-02-22
- 2.0.1-2 — 2025-02-22
- 2.0.1-1 — 2025-02-22
- 1.0.1-22 — 2025-01-09
- 1.0.1-21 — 2024-12-27
- 1.0.1-20 — 2024-11-01
- 1.0.1-18 — 2024-10-26
- 1.0.1-17 — 2024-10-21
- … 17 more at https://npm.io/package/kient/versions

## README

<h1 align="center">
Kient
</h1>

<p align="center">
  <a href="https://github.com/zSoulweaver/kient/blob/master/LICENSE">
    <img src="https://img.shields.io/badge/license-MIT-blue.svg?&color=47ff47&style=for-the-badge">
  </a>
  <a href="https://www.npmjs.com/package/kient">
    <img src="https://img.shields.io/npm/v/kient.svg?logo=npm&color=47ff47&logoColor=fff&style=for-the-badge">
  </a>
  <a href="https://kient.pages.dev/">
    <img src="https://img.shields.io/badge/Documentation-fff?style=for-the-badge">
  </a>
</p>

## About

Kient (**K**ick-Cl**ient**) is a versatile TypeScript library designed to simplify interaction with Kick's API and Webhooks. With Kient, you can seamlessly integrate Kick's platform into your projects, making it easier than ever to leverage its capabilities.

## Documentation

Learn how to use Kient and find detailed information on the [website](https://kient.pages.dev/) - Very much WIP.

## Installation and Example Usage

Install Kient with your preferred package manager.

```bash
$ bun add kient
```

Import Kient, create a new instance, and interact with API endpoints or listen to WebSocket events.

```ts
import { env } from 'bun'
import { Kient } from 'kient'

// Create a new kient instance
const kient = new Kient()

// Set the authentication token
kient.setAuthToken(env.KICK_TOKEN as string)

// Get the currently authorised user
const currentUser = await kient.api.channel.getAuthorisedUser()
// Log the raw output
console.log(currentUser.raw)

// Retrieve multiple channels by their ID
const multipleUsers = await kient.api.channel.getByIds([1, 2, 3])

// Send a chat message to the first channel in the above list as the authenticated user
await kient.api.chat.send({
	type: 'user',
	message: 'Message will be send to specified user id below',
	userId: multipleUsers[0].id,
})
```

## License

Kient is licensed under the [MIT License](https://github.com/zSoulweaver/kient/blob/master/LICENSE).

---
_Source: https://npm.io/package/kient · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
