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

@qalbconverfy/qalbplayer

v1.0.0

Published

A custom open-source React video player with video, shorts, and live modes, HLS support, custom controls, gestures, and keyboard shortcuts.

Readme

qalbplayer

qalbplayer is a custom React video player package for React and Next.js App Router projects. It supports classic video playback, vertical shorts, and live streams using native HTML5 video with dynamic hls.js loading for .m3u8 streams.

Install

npm install qalbplayer

Import the component and bundled CSS:

"use client";

import { QalbPlayer } from "qalbplayer";
import "qalbplayer/style.css";

export default function Page() {
  return (
    <QalbPlayer
      url="https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8"
      mode="video"
      autoplay={false}
    />
  );
}

Next.js App Router

Add the CSS import in app/layout.tsx or directly inside a client component:

import "qalbplayer/style.css";

Use the player only inside a client component because browser video APIs, Fullscreen, PiP, and keyboard events require the client runtime.

Props

| Prop | Type | Required | Description | |---|---|---:|---| | url | string | Yes | MP4, WebM, or HLS .m3u8 media URL. | | mode | 'video' \| 'shorts' \| 'live' | Yes | Selects the UI and interaction model. | | poster | string | No | Optional video poster image. | | autoplay | boolean | No | Attempts autoplay. Muted autoplay is used when needed by browsers. | | className | string | No | Optional class added to the root player element. |

Modes

video

A 16:9 cinematic player with custom controls, scrubber, hover timestamps, current/total time, settings, speed selection, HLS quality selection, theater mode, Picture-in-Picture, fullscreen, keyboard shortcuts, double-click skip, and long-press speed boost.

shorts

A 9:16 vertical player for reel-style playback. It loops automatically and uses tap/click to mute or unmute. The timeline is minimal and does not show timestamp text.

live

A live-stream layout with a glowing LIVE badge, connection timer, disabled scrubbing, and an offline/reconnecting card for fatal HLS playback errors.

Keyboard shortcuts

When the player is focused:

| Key | Action | |---|---| | Space | Play / pause | | Left / Right | Seek -5s / +5s in video mode | | Up / Down | Volume up / down | | M | Mute / unmute | | F | Fullscreen | | T | Theater mode |

Local package test on VPS

After extracting the ZIP:

cd qalbplayer
npm install --no-audit --no-fund
npm run verify
npm pack

Then test it in a Next.js app:

cd ~
npx create-next-app@latest qalbplayer-test
cd qalbplayer-test
npm install ../qalbplayer/qalbplayer-1.0.2.tgz

Use it in src/app/page.tsx:

"use client";

import { QalbPlayer } from "qalbplayer";
import "qalbplayer/style.css";

export default function Home() {
  return (
    <main style={{ minHeight: "100vh", background: "#020617", padding: 24 }}>
      <QalbPlayer
        url="https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8"
        mode="video"
      />
    </main>
  );
}

Run:

npm run dev -- --host 0.0.0.0

Open http://YOUR_SERVER_IP:3000.

Publish

npm login
npm publish --access public

If the package name is already taken, change name in package.json to a scoped package such as @your-npm-name/qalbplayer, then publish with public access.

Notes

The distributed package includes prebuilt dist/ files and does not require Rollup, tsup, esbuild, or rimraf during installation. This avoids native optional dependency failures on small VPS environments.