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

tizenbrew-iptv-viet

v0.1.2

Published

IPTV app module for TizenBrew (TiVi UI, AVPlay with HTML5 fallback)

Readme

IPTV Viet (TizenBrew app module)

Ứng dụng IPTV chạy qua TizenBrew (packageType=app), ưu tiên AVPlay, fallback HTML5 video. Ngôn ngữ UI: Tiếng Việt.

Tính năng

  • Nạp playlist M3U/M3U8 (HTTP/HLS), parse group-title, tên kênh, logo (nếu có)
  • Danh sách kênh theo nhóm, tìm kiếm, đánh dấu ưa thích, nhớ kênh cuối
  • Remote keys: Lên/Xuống/OK/Back, phím màu:
    • Đỏ: tải lại playlist hiện tại
    • Lục: toggle ưa thích kênh đang xem
    • Vàng: focus ô tìm kiếm
    • Lam: xóa tìm kiếm
  • Player: ưu tiên AVPlay (tizen.avplay), fallback <video> HLS nếu AVPlay không khả dụng
  • Auto-retry đơn giản cho HTML5 video error (reload và play lại)

Cấu trúc

  • package.json:
    • packageType: "app"
    • appPath: "app/index.html"
    • serviceFile: "service.js"
    • keys: Arrow/Enter/Back + ColorF0..F3 + MediaPlay/Pause/Stop
  • service.js: entry tối giản (log start)
  • app/index.html: UI
  • app/style.css: giao diện tối
  • app/app.js: logic parse playlist, render, player AVPlay/HTML5, remote

Cài đặt (tham khảo TizenBrew MODULES)

  1. Copy toàn bộ thư mục module này vào nơi TizenBrew server phục vụ modules (ví dụ modules/iptv-module).
  2. Đảm bảo package.json giữ packageType: "app"appPath: "app/index.html".
  3. Khởi động/làm mới TizenBrew server trên TV. Ứng dụng sẽ xuất hiện trong danh sách app modules.
  4. Nếu cần đăng ký key, TizenBrew sẽ đọc keys từ package.json (Arrow, Enter, Back, ColorF0..F3...).

Lưu ý: Nếu môi trường TizenBrew của bạn yêu cầu format khác (manifest riêng), hãy điều chỉnh theo đúng loader bạn đang dùng, nhưng giữ nguyên appPath, serviceFile, keys.

Sử dụng

  1. Mở app IPTV Viet từ TizenBrew UI.
  2. Nhập URL playlist M3U/M3U8 rồi bấm "Nạp playlist".
    • Mặc định đã điền mẫu: https://raw.githubusercontent.com/thichcode/thichcode/refs/heads/main/filtered_playlist.m3u
  3. Dùng phím màu/remote:
    • Đỏ: tải lại playlist hiện tại
    • Lục: đánh dấu ưa thích kênh đang xem
    • Vàng: focus ô tìm kiếm
    • Lam: xóa tìm kiếm
    • Lên/Xuống: di chuyển; OK: phát kênh
  4. App sẽ thử AVPlay trước; nếu lỗi sẽ tự fallback HTML5 video.

Ghi chú kỹ thuật

  • AVPlay: cần quyền tizen.avplay; nếu TizenBrew chặn AVPlay, code sẽ tự chuyển sang <video>.
  • HTML5 fallback: chỉ HLS (HTTP). DASH/DRM chưa hỗ trợ trong fallback.
  • Lưu cục bộ: favorites và last channel lưu bằng localStorage.

Tùy chỉnh

  • Thay playlist mặc định: chỉnh initSample() trong app/app.js.
  • Nếu muốn preload playlist khi mở app: gọi loadPlaylist(url) trong init() sau khi detectAvplay.

Dev nhanh (offline)

  • Có thể mở app/index.html bằng trình duyệt desktop để kiểm tra UI và logic parse (AVPlay không khả dụng, sẽ dùng HTML5 video).