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

dracinapi

v1.0.0

Published

DracinAPI — Satu REST API untuk 42 Platform Drama China & Drama Pendek. Akses data drama, episode, streaming HLS dari DramaBox, ShortMax, ReelShort, iDrama, FlexTV, dan 37 provider lainnya. Chinese Drama API / Dracin API / API Dracin.

Readme


npm API Status Providers

Apa Itu DracinAPI?

DracinAPI adalah REST API terpadu yang menyediakan akses ke data drama China (dracin) dan drama pendek dari 42 platform sekaligus. Cukup satu API key, kamu bisa mencari drama, mengambil detail, daftar episode, dan URL streaming HLS dari DramaBox, ShortMax, ReelShort, iDrama, FlexTV, dan 37 provider lainnya.

Package ini adalah SDK resmi Node.js untuk DracinAPI.

Kenapa Pakai Dracin API?

  • 42 provider drama pendek & drama China dalam satu API
  • 100.000+ judul drama terindeks
  • 8.000.000+ episode tersedia
  • 40+ bahasa subtitle & audio
  • Streaming HLS (.m3u8) siap putar
  • CDN global via cdn.dracinapi.com
  • Format JSON konsisten untuk semua provider

Instalasi

npm install dracinapi

Mulai Cepat

const DracinAPI = require("dracinapi");

// Daftar gratis di https://dracinapi.com/register
const api = new DracinAPI("API_KEY_KAMU");

// Cari drama di DramaBox
const results = await api.search("dramabox", "cinta");
console.log(results);

// Ambil detail drama
const drama = await api.detail("dramabox", "2047");
console.log(drama.title, drama.desc);

// Ambil daftar episode
const eps = await api.episodes("dramabox", "2047");
console.log(`Total episode: ${eps.total}`);

// Play streaming HLS
const stream = await api.play("dramabox", "2047", 1);
console.log(`HLS URL: ${stream.hlsUrl}`);

API Reference

new DracinAPI(apiKey, options?)

Buat instance DracinAPI.

| Parameter | Tipe | Deskripsi | |-----------|------|-----------| | apiKey | string | API key dari dracinapi.com/register | | options.baseUrl | string | Base URL (default: https://dracinapi.com) |

api.search(provider, keyword)

Cari drama di provider tertentu. Dokumentasi →

const results = await api.search("shortmax", "CEO");
// Returns: [{ id, title, cover, episodes, genre, source }]

api.detail(provider, id)

Ambil detail drama lengkap. Dokumentasi →

const drama = await api.detail("reelshort", "8842");
// Returns: { id, title, cover, desc, episodes, genre, language, source }

api.episodes(provider, id)

Ambil daftar episode. Dokumentasi →

const eps = await api.episodes("idrama", "5501");
// Returns: { dramaId, total, episodes: [{ ep, title, thumbnail, duration, locked }] }

api.play(provider, id, ep)

Ambil URL streaming HLS. Dokumentasi →

const stream = await api.play("starshort", "8842", 1);
// Returns: { dramaId, episode, hlsUrl, quality: [{ definition, url }], duration, source }

api.feed(provider)

Ambil drama trending/populer. Dokumentasi →

const trending = await api.feed("shortmax");
// Returns: [{ id, title, cover, episodes, genre, source }]

api.status()

Cek status semua 42 provider. Dokumentasi →

const status = await api.status();

Provider yang Didukung (42)

| # | Provider | # | Provider | # | Provider | |---|----------|---|----------|---|----------| | 1 | StarShort | 15 | Velolo | 29 | Reelife | | 2 | DramaBite | 16 | ReelShort | 30 | PineDrama | | 3 | FreeReels | 17 | FlickReels | 31 | FlexTV | | 4 | FunDrama | 18 | Stardusttv | 32 | Reelala | | 5 | MicroDrama | 19 | Serial+ | 33 | Anyreel | | 6 | Vigloo | 20 | DotDrama | 34 | RaptDrama | | 7 | BiliTV | 21 | RapidTV | 35 | BonusTV | | 8 | DramaBox | 22 | ShortsWave | 36 | MiniTV | | 9 | DramaWave | 23 | DramaNova | 37 | Gold Drama | | 10 | NetShort | 24 | CubeTV | 38 | IQIYI | | 11 | iDrama | 25 | ReelBuzz | 39 | Bstation | | 12 | ShortMax | 26 | FlareFlow | 40 | Joyreels | | 13 | GoodShort | 27 | MoboReels | 41 | KalosTV | | 14 | Melolo | 28 | HappyShort | 42 | Vibeshort |

Harga API Dracin

| Paket | Harga | Request/Bulan | |-------|-------|---------------| | Gratis | Rp 0 | 1.000 | | Basic | Rp 99rb/bln | 100.000 | | Pro | Rp 199rb/bln | 1.000.000 | | 3 Bulan | Rp 499rb | 100JT/bln | | 1 Tahun | Rp 900rb | 100JT/bln |

Lihat harga lengkap →

TypeScript

Package ini sudah termasuk type definitions (index.d.ts):

import DracinAPI from "dracinapi";

const api = new DracinAPI("API_KEY_KAMU");
const results = await api.search("dramabox", "cinta");
// results: Drama[] — fully typed

Links

License

MIT © DracinAPI