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

dsflix-sdk

v1.0.2

Published

DSFlix SDK – Official JavaScript/TypeScript client for the DSFlix streaming API 2026. Access movies, TV shows, AI chat, coins, user profiles, and more.

Readme

DSFlix SDK (dsflix-sdk-npm )

Official JavaScript/TypeScript SDK for the DSFlix Streaming API — 2026

npm version License: MIT TypeScript


What is DSFlix SDK?

The DSFlix SDK (dsflix-sdk) is the official client library for the DSFlix / DawensFlix streaming platform API. It lets you integrate movies, TV shows, AI chat, user coins, membership, music, and news into any JavaScript or TypeScript application — in minutes.

Features

  • 🎬 Movies – Popular, trending, top-rated, now playing, upcoming, details, cast
  • 📺 TV Shows – Series, seasons, episodes, credits
  • 🔍 Search – Multi-search across movies and TV
  • 🤖 AI Chat – Conversational movie/streaming assistant
  • 🪙 Coins – Balance, transfer, convert, transaction history
  • 👤 User – Profile, watchlist, watch history, notifications, referrals
  • 🎵 Music – Trending tracks, search
  • 📰 News – Top headlines, search
  • 🏆 Membership – Plans, status, upgrade
  • TypeScript-first – Full type definitions included

Installation

npm install dsflix-sdk
yarn add dsflix-sdk
pnpm add dsflix-sdk

Quick Start

import { DsfClient } from 'dsflix-sdk';

// Initialize with your API key
const dsf = new DsfClient({ apiKey: 'dfx-your-api-key-here' });

// Get popular movies
const movies = await dsf.movies.getPopular();
console.log(movies.results);

// Search for a movie
const results = await dsf.search.multi('Inception');
console.log(results.results);

// Get user profile (requires auth)
const profile = await dsf.user.getProfile();
console.log(profile.username, profile.coins);

// Chat with AI
const reply = await dsf.ai.chat('Recommend me a good thriller movie');
console.log(reply.reply);

Configuration

import { DsfClient } from 'dsflix-sdk';

const dsf = new DsfClient({
  apiKey: 'dfx-your-api-key',         // Required
  baseUrl: 'https://api.dawensflix.com', // Optional (default)
  timeout: 10000,                        // Optional (ms, default 10000)
  language: 'en-US',                     // Optional (default 'en-US')
});

API Reference

Movies

dsf.movies.getPopular(options?)
dsf.movies.getTrending(timeWindow)      // 'day' | 'week'
dsf.movies.getTopRated(options?)
dsf.movies.getNowPlaying(options?)
dsf.movies.getUpcoming(options?)
dsf.movies.getDetails(movieId, options?)
dsf.movies.getCast(movieId)
dsf.movies.search(query, options?)
dsf.movies.download(params)

TV Shows

dsf.tv.getPopular(options?)
dsf.tv.getDetails(seriesId, options?)
dsf.tv.getSeason(seriesId, seasonNumber)
dsf.tv.getEpisode(seriesId, seasonNumber, episodeNumber)
dsf.tv.getCredits(seriesId, seasonNumber)
dsf.tv.getCast(seriesId)
dsf.tv.search(query, options?)

Search

dsf.search.multi(query, options?)
dsf.search.movies(query, options?)
dsf.search.tv(query, options?)

AI

dsf.ai.chat(message, context?)

User

dsf.user.getProfile()
dsf.user.getById(displayId)
dsf.user.getWatchlist()
dsf.user.addToWatchlist(mediaType, mediaId)
dsf.user.removeFromWatchlist(mediaId)
dsf.user.getWatchHistory(options?)
dsf.user.getLanguage()
dsf.user.updateLanguage(languageCode)
dsf.user.getWallet()
dsf.user.getReferral()
dsf.user.getNotifications(options?)
dsf.user.uploadPhoto(file)

Coins

dsf.coins.getBalance()
dsf.coins.transfer(recipientDisplayId, amount, note?)
dsf.coins.convert(rewardCoins)
dsf.coins.getTransactions(options?)

Membership

dsf.membership.getPlans()
dsf.membership.getStatus()
dsf.membership.upgrade(plan, durationDays, paymentMethod?)

Music

dsf.music.getTrending(options?)
dsf.music.search(query, options?)

News

dsf.news.getTop(options?)
dsf.news.search(query, options?)

Home

dsf.home.getHero(language?)
dsf.home.getSections(options?)
dsf.home.getSplash()
dsf.home.getFeatured(options?)

Error Handling

import { DsfClient, DsfError } from 'dsflix-sdk';

const dsf = new DsfClient({ apiKey: 'dfx-...' });

try {
  const movies = await dsf.movies.getPopular();
} catch (err) {
  if (err instanceof DsfError) {
    console.error(`DSFlix API Error [${err.statusCode}]: ${err.message}`);
  } else {
    throw err;
  }
}

Authentication

Get your API key from dawensflix.com/api-dashboard.

All API keys follow the format: dfx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


Documentation

Full documentation with 26 pages is available in the /docs folder:

| Page | Description | |------|-------------| | Getting Started | Installation & first request | | Authentication | API keys & headers | | Configuration | All config options | | Movies | Movie endpoints | | TV Shows | TV series, seasons, episodes | | Search | Multi-search | | Streaming | Stream URLs | | AI Chat | AI assistant | | Coins | Coin system | | User | User profile & data | | Music | Music API | | News | News headlines | | Membership | Plans & upgrades | | Error Handling | Error types & codes | | Examples | Real-world usage examples | | Changelog | Version history | | Contributing | How to contribute |


Requirements

  • Node.js 16+
  • An active DSFlix API key (dfx-...)

License

MIT © DSFlix Team


Links