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

shortvideo-tv

v1.1.5

Published

Public short-video feed player for TizenBrew on Samsung Tizen 3

Downloads

942

Readme

ShortVideo TV

A lightweight video feed player for Samsung Tizen 3 TVs via TizenBrew. Plays TikTok and Facebook Reels without loading their websites.

What It Does

Tizen 3 TVs run an old WebKit browser that can't handle modern TikTok/Facebook/Instagram pages. Instead of embedding those sites, this app:

  1. Loads a curated feed of video URLs from a Cloudflare Worker backend
  2. Plays each video using the TV's native <video> player (H.264 MP4 only)
  3. Resolves TikTok videos directly from the TV's own network — no server proxy needed for short clips

Remote Controls

| Button | Action | |--------|--------| | ← → ↑ ↓ | Navigate feed | | OK / Enter | Play / Pause | | ◁ Back | Close player, return to feed | | 🔴 Red button | Clear entire feed |

Backend

The companion Cloudflare Worker provides:

  • POST /submit — add a TikTok or Facebook Reels URL to a code's feed
  • GET /feed?code=XXX — fetch the feed as JSON
  • GET /resolve?url=... — resolve a URL to a playable CDN link
  • DELETE /feed?code=XXX — clear all items from a feed

A FastAPI server handles yt-dlp resolution for Facebook Reels and proxies CDN URLs when direct playback fails.

Feed JSON Schema

{
  "items": [
    {
      "id": "unique-id",
      "title": "Video title",
      "source": "TikTok | Facebook",
      "sourceUrl": "https://www.tiktok.com/... or https://facebook.com/reel/...",
      "videoUrl": "https://cdn.example.com/video.mp4",
      "thumbnailUrl": "https://cdn.example.com/thumb.jpg",
      "duration": 0
    }
  ]
}

Supported Sources

| Source | Resolution Method | Notes | |--------|-------------------|-------| | TikTok | TV resolves from __UNIVERSAL_DATA HTML page | Uses TV's residential IP — no Cloudflare Worker proxy needed | | Facebook Reels | Server yt-dlp resolves sd/hd H.264 progressive format | Falls back to server proxy if direct CDN fails |

Technical Constraints

  • Tizen 3 codec: H.264/AVC only. No AV1, no VP9.
  • TikTok CDN: URLs are IP-bound. Cloudflare Worker egress IPs don't match — so the TV resolves TikTok itself.
  • Facebook CDN: Server-side yt-dlp selects sd/hd/b (H.264 progressive) for codec compatibility.
  • No login: Only public/no-login videos.

Build

npx esbuild src/inject.ts --bundle --minify --target=es2015 --outfile=dist/inject.js

License

MIT