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

@moviie/player-react

v0.1.3

Published

Moviie video player for the web (React DOM, Vidstack, telemetry, AI features).

Readme

@moviie/player-react

Native React web player for the Moviie platform. Renders playback directly in your page DOM (no iframe) on top of the same engine the official embed uses, with the same features and an API that mirrors @moviie/player-expo and the Player JS API.

Full documentation: docs.moviie.ai.

Prerequisites

You need a Moviie account and a publishable API key (mvi_pub_*).

  1. Create an account at app.moviie.ai/signin.
  2. Go to Organization Settings → API Keys and create a Publishable key.
  3. Copy the key: it starts with mvi_pub_.

Never use a secret key (mvi_sec_*) in a client app. The playback API rejects it.

Install

pnpm add @moviie/player-react

react and react-dom (>=19) are peer dependencies. The package brings its own playback engine.

Import the stylesheet once at the root of your app (it pulls in the design tokens and the player chrome):

import '@moviie/player-react/styles.css'

Features

Everything the iframe embed does, rendered natively in your DOM:

  • HLS playback (private videos included), poster, captions, chapters, branded chrome
  • Telemetry + Meta pixels, access gating with typed unavailable surfaces
  • The full AI menu: search, summary, ebook, quiz, mind map, tutor chat
  • Variants (the condensed "Express" version), timed CTAs, the social-DRM watermark
  • SSR/Next.js App Router safe; overlay code is lazy-loaded so the core stays lean

Quick start

'use client'
import { MoviieProvider, MoviieVideo, useMoviiePlayer } from '@moviie/player-react'

function Player({ embedId }: { embedId: string }) {
  const moviie = useMoviiePlayer({ embedId })
  return <MoviieVideo {...moviie} aspectRatio={16 / 9} />
}

export function Watch({ embedId }: { embedId: string }) {
  return (
    <MoviieProvider publishableKey={process.env.NEXT_PUBLIC_MOVIIE_PUBLISHABLE_KEY!}>
      <Player embedId={embedId} />
    </MoviieProvider>
  )
}

Imperative control and events

Attach a ref (or use onReady) to get the player handle, and subscribe to contract events. The method, event and property names are the same contract as the Player JS API and the Expo player.

import { useRef } from 'react'
import {
  MoviieVideo,
  useMoviieEvent,
  useMoviiePlayer,
  PLAYER_API_EVENTS,
  type MoviiePlayerHandle,
} from '@moviie/player-react'

function Player({ embedId }: { embedId: string }) {
  const ref = useRef<MoviiePlayerHandle>(null)
  const moviie = useMoviiePlayer({ embedId })

  useMoviieEvent(ref.current, PLAYER_API_EVENTS.PLAY, () => console.log('playing'))

  return (
    <>
      <MoviieVideo ref={ref} {...moviie} />
      <button onClick={() => ref.current?.seek(30)}>Skip to 0:30</button>
    </>
  )
}

Documentation

Looking for the React Native / Expo player?

For mobile apps, use @moviie/player-expo.

License

MIT: see LICENSE. Copyright (c) 2026 Moviie.