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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@kv8n2oryk/tizeniptv

v1.2.3

Published

tizeniptv is an app bring https://iptvwebv2.vercel.app/ on your Tizen (Samsung) TVs.

Readme

TizenIPTV

An npm module that provides access to IPTV channels from https://iptvwebv2.vercel.app/ for Tizen (Samsung) TVs.

Installation

npm install @kv8n2oryk/tizeniptv

Usage

const TizenIPTV = require('@kv8n2oryk/tizeniptv');

async function main() {
  // Create IPTV instance
  const iptv = new TizenIPTV({
    baseURL: 'https://iptvwebv2.vercel.app', // optional, default
    port: 8085 // optional, default
  });

  try {
    // Initialize the service
    await iptv.init();
    console.log('IPTV service started on port', iptv.port);

    // Get available channels
    const channels = await iptv.getChannels();
    console.log('Available channels:', channels);

    // Play a channel
    if (channels.length > 0) {
      const channelUrl = iptv.getLocalPlaybackUrl(channels[0].url);
      console.log('Playback URL:', channelUrl);
      // Open channelUrl in browser or media player
    }

  } catch (error) {
    console.error('Error:', error.message);
  } finally {
    // Stop the service
    iptv.stop();
  }
}

main();

API

new TizenIPTV(options)

Creates a new TizenIPTV instance.

Options:

  • baseURL (string): Base URL of the IPTV website (default: 'https://iptvwebv2.vercel.app')
  • port (number): Port for the local server (default: 8085)

async init()

Initializes the IPTV service and starts the local server.

async getChannels()

Fetches available IPTV channels from the website.

Returns: Array of channel objects with name and url properties.

getLocalPlaybackUrl(channelUrl)

Generates a local playback URL for a channel.

Parameters:

  • channelUrl (string): The HLS URL of the channel

Returns: Local URL that can be used to play the channel

playChannel(channelUrl)

Generates a direct playback URL for a channel on the remote website.

Parameters:

  • channelUrl (string): The HLS URL of the channel

Returns: Remote URL for direct playback

stop()

Stops the local server.

Endpoints

When the service is running, the following endpoints are available:

  • GET /play?url=<channel_url> - HLS video player for the specified channel
  • GET /channels - JSON API returning available channels

Development

# Install dependencies
npm install

# Build the module
npm run build

# Run tests
node test.js

License

GPL-3.0-only

Repository

https://github.com/thichcode/tizeniptv