tiksync
v1.1.1
Published
TikSync - TikTok Live SDK for Node.js. Real-time chat, gifts, likes & viewer events.
Downloads
1,150
Maintainers
Readme
Installation
npm install tiksyncQuick Start
const { TikSync } = require("tiksync");
const live = new TikSync("username", {
apiKey: "your_api_key"
});
live.on("chat", (data) => {
console.log(`[${data.uniqueId}] ${data.comment}`);
});
live.on("gift", (data) => {
console.log(`${data.uniqueId} sent ${data.giftName} x${data.repeatCount}`);
});
live.on("follow", (data) => {
console.log(`${data.uniqueId} followed!`);
});
live.connect();Events
| Event | Description |
|-------|-------------|
| connected | Connected to stream |
| chat | Chat message received |
| gift | Gift received (with diamond count, streak info) |
| like | Likes received |
| follow | New follower |
| share | Stream shared |
| member | User joined the stream |
| roomUser | Viewer count update |
| streamEnd | Stream ended |
| disconnected | Disconnected |
| error | Connection error |
Get Started
- Sign up at tik-sync.com
- Create a free API key in your dashboard
- Install the SDK and start building
Free tier available. See pricing for details.
License
MIT - Built by 0xwolfsync
