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

lorapok-player

v1.4.0

Published

High-performance React media engine with Organic Intelligence aesthetics. Supports HLS, DASH, and Hardware Acceleration.

Downloads

284

Readme

LORAPOK PLAYER (Core Library)

SUPERCOMPUTING MEDIA ENGINE

NPM Version Bundle Size NPM Downloads License

Lorapok Player is a high-performance React media engine engineered for ultra-low latency playback and biological aesthetics. It seamlessly handles MP4, HLS, and DASH streams with 4K/8K hardware acceleration.


🧬 FEATURES

  • Adaptive Multi-Platform: Native support for HLS (.m3u8), DASH (.mpd), and standard Mp4.
  • Organic UI Engine: Biological aesthetics with real-time reactive ambient lighting.
  • Hardware Acceleration: GPU-optimized rasterization for buttery smooth 8K playback.
  • Neural Probing: Accurate duration and metadata discovery using supercomputing pipelines.
  • Theme Injection: Runtime theme switching with zero-latency visual transition.

📦 INSTALLATION

npm install lorapok-player

🚀 QUICK START

import { LorapokPlayer } from 'lorapok-player';
import 'lorapok-player/style.css';

const App = () => (
  <div className="player-wrapper">
    <LorapokPlayer 
      src="https://example.com/stream.m3u8" 
      autoPlay={false}
      className="lorapok-themed"
    />
  </div>
);

🧬 API REFERENCE

Props

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | src | string | Required | Source URL (supports .mp4, .m3u8, .mpd). | | autoPlay | boolean | false | Enable automatic playback. | | loop | boolean | false | Restart media when finished. | | muted | boolean | false | Start with volume at 0. | | poster | string | undefined | Image displayed before video starts. | | className | string | undefined | Custom CSS classes for the container. | | initialPosition | number | 0 | Start playback from a specific timestamp (seconds). | | showControls | boolean | true | Toggle the high-fidelity control deck. |

Event Callbacks

| Callback | Signature | Description | | :--- | :--- | :--- | | onPlay | () => void | Fired when playback starts. | | onPause | () => void | Fired when playback is paused. | | onEnded | () => void | Fired when the media reaches the end. | | onTimeUpdate | (time: number) => void | Fired periodically during playback. | | onError | (error: any) => void | Fired when a loading or playback error occurs. |


🎮 PROGRAMMATIC CONTROL (Imperative API)

The LorapokPlayer component exposes a functional API via React refs. This allows you to control the player procedurally from your own components.

Usage Example

import { useRef } from 'react';
import { LorapokPlayer, LorapokPlayerRef } from 'lorapok-player';

const MyComponent = () => {
  const playerRef = useRef<LorapokPlayerRef>(null);

  const handleAction = () => {
    // Programmatically load a new video
    playerRef.current?.load('https://example.com/new-video.mp4');
    
    // Control playback
    playerRef.current?.play();
    
    // Seek to 30 seconds
    playerRef.current?.seek(30);
    
    // Switch themes on the fly
    playerRef.current?.setTheme('Cyber Bloom');
  };

  return <LorapokPlayer ref={playerRef} src="..." />;
};

Exposed Methods

| Method | Signature | Description | | :--- | :--- | :--- | | load | (url: string) => void | Updates the source and prepares for playback. | | play | () => void | Starts or resumes playback. | | pause | () => void | Pauses playback. | | toggle | () => void | Toggles play/pause state. | | seek | (time: number) => void | Jumps to a specific timestamp (seconds). | | setVolume | (v: number) => void | Sets volume level (0.0 to 1.0). | | setMuted | (m: boolean) => void | Toggles or sets mute state. | | setTheme | (name: 'Midnight Core' | 'Cyber Bloom' | 'Quantum Pulse') => void | Switches visual styling. |


🎨 STYLING & ADAPTIVE THEME

The player uses biological aesthetics with a reactive ambient lighting system. You can override global styles using the provided CSS variables:

:root {
  --lorapok-neon-cyan: #00F3FF;
  --lorapok-electric-purple: #BC13FE;
  --lorapok-midnight: #050510;
}

🛠 ADVANCED USAGE

HLS / DASH Support

The engine automatically detects and initializes hls.js or dash.js based on the file extension. No additional configuration is required.

Custom Keyboard Shortcuts

The library comes with a built-in interactive help system and standard shortcuts:

  • SPACE : Play/Pause
  • ← / → : Seek 5s
  • F : Fullscreen
  • M : Mute

🛠 TECH STACK

  • React 18 (Functional Components & Hooks)
  • HLS.js / Dash.js (Adaptive Streaming)
  • Framer Motion (Organic Transitions)
  • Vite (Next-gen Bundling)

📜 LICENSE

MIT © 2026 Lorapok Team. The core media engine and biological aesthetics are optimized for high-performance open computing.