npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tiktok-live-api-ranks

v1.0.0

Published

TikTok LIVE leaderboard + rankings API client: live creator/gifter/gaming/shop rankings across 30+ regions, updated live.

Readme

TikTok LIVE Rankings API

A typed client for the public TikTok LIVE leaderboard and rankings API. Pull live creator, gifter, gaming and shop rankings across 30+ regions, updated live, with a two-line install and no API key. Powered by the TikTool managed API.

Docs and dashboard: tik.tools

npm TypeScript License

Zero dependencies. Uses the global fetch (Node 18+ or any modern browser). The endpoints wrapped here are public and need no key. For the full authenticated API - real-time WebSocket chat, gifts and battles, gift catalogs, profiles and signing - see tiktok-live-api.

Not affiliated with or endorsed by TikTok. It reads the public rankings published by the TikTool Live managed API service.

Install

npm install tiktok-live-api-ranks

Quick Start

import { TikTokRanks } from 'tiktok-live-api-ranks';

const ranks = new TikTokRanks();
const board = await ranks.getGlobalLeaderboard();

console.log(`${board.totalLive} creators live across ${board.totalRegions} regions`);
for (const region of board.regions) {
  console.log(`${region.region}: ${region.liveCount} live, top creator #${region.top[0]?.rank}`);
}

API

new TikTokRanks(options?)

  • options.baseUrl - override the API base URL. Defaults to https://tik.tools.
  • options.timeoutMs - request timeout in milliseconds. Defaults to 15000.

getGlobalLeaderboard(): Promise<GlobalLeaderboard>

Worldwide live totals plus a leaderboard per region. Each region board carries liveCount, totalScore and a top array of ranked creators (rank, uniqueId, displayName, score, isLive, roomId).

getRegion(regionCode): Promise<RegionLeaderboard | null>

The board for a single region, for example "US+", "BR" or "MENA". Region code is case-insensitive. Returns null when the region is not in the current global board.

const us = await ranks.getRegion('US+');
if (us) console.log(`US+ has ${us.liveCount} creators live`);

getTopChannels(): Promise<TopChannel[]>

The top live channels feed across all regions, ordered by the current ranking. Each channel carries uniqueId, displayName, viewerCount, region and roomId.

const channels = await ranks.getTopChannels();
console.log(`${channels.length} channels in the live top feed`);

Types

Every method returns a fully typed result. The exported types are GlobalLeaderboard, RegionLeaderboard, RankedCreator, TopChannel, TikTokRanksOptions and the TikTokRanksError class.

Why tik.tools

  • Live, managed rankings. Creator, gifter, gaming and shop boards across 30+ regions, refreshed live - no scraping and no sign server to maintain.
  • Agency and leaderboard intelligence. Region movers, gaming ranks and eligible-creator discovery on the full tik.tools API.
  • AI live captions and translation. Real-time speech-to-text with 60+ language translation on the managed API.
  • Unreal Engine plugin. Drive avatars and overlays from live chat, gifts and battles.
  • Free Sandbox tier. Start building for free, upgrade only when you need higher limits or unmasked data.

License

MIT - see LICENSE.