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

@muabe/muabe-player-web

v1.1.0

Published

Muabe Web Component and JS SDK wrapper for .miv playback

Downloads

129

Readme

@muabe/muabe-player-web

Web Component + JS SDK for Muabe .miv playback.

Status

This package currently provides:

  • <muabe-player> custom element API surface
  • createMuabePlayer(...) JS SDK wrapper
  • iframe runtime bridge protocol
  • default runtime endpoint (production): https://webplayer.muabe.com/muabe-player-runtime/index.html

Companion runtime app:

  • apps/muabe_player_runtime_web (Flutter Web)
  • receives bridge commands via postMessage
  • renders .miv using MuabePlayerView

Runtime URL policy

Default runtime URL (all hosts, including localhost):

  • https://webplayer.muabe.com/muabe-player-runtime/index.html

You can override per element:

<muabe-player runtime-url="/custom-runtime/index.html"></muabe-player>

Runtime-host stub (debug only)

public/runtime-host.html is a development stub page for bridge debugging. It is not the production runtime.

Production runtime should use:

  • apps/muabe_player_runtime_web build output
  • served under /muabe-player-runtime/

Quick Usage

<script type="module">
  import './player-sdk/index.js';
</script>
<muabe-player src="./sample.miv"></muabe-player>

기본 레이아웃 정책:

  • layout-mode="adaptive"(기본값): 부모 높이가 있으면 부모를 채우고, 없으면 16:9 fallback
  • fullscreen 기본 fit: fullscreen-fit="contain" (왜곡 없이 전체 표시)

Runtime Build

cd /Users/bobby/workspace/muabe/no-code/muabe_player
./scripts/local/build_web_delivery.sh
./scripts/local/serve_web_delivery.sh

API

<muabe-player> attributes:

  • src
  • autoplay
  • initial-page
  • runtime-url
  • layout-mode (adaptive | aspect | viewport)
  • fullscreen-fit (contain | cover)

Methods:

  • load(source)
  • play()
  • pause()
  • stop()
  • seek(ms)
  • nextPage()
  • prevPage()
  • goToPage(index)
  • setPlaybackRate(rate)
  • getState()
  • dispose()

Events:

  • ready
  • error
  • pageChanged
  • playbackStateChanged
  • interaction
  • ended

Event payload policy (v1):

  • playbackStateChanged: actively emitted by runtime
  • interaction: reserved, default runtime path does not emit yet
  • ended: reserved, default runtime path does not emit yet

Breaking Change (v1.0.0)

  • Removed volume-related API surface:
    • Removed muted attribute
    • Removed setMuted(value) and setVolume(value) methods
    • Removed muted and volume fields from getState()

If you need audio policy control, implement it via Graphy role composition at content level.

Control Policy (Current)

  • Runtime actual media control is currently guaranteed for play() and pause().
  • stop(), seek(ms), and setPlaybackRate(rate) remain exposed as API surface, but detailed media semantics are intentionally not fixed yet.
  • Future advanced control should be designed via Graphy role composition, not by re-introducing global volume APIs.

Web Embed E2E

Playwright 기반 E2E는 아래 명령으로 실행한다.

cd /Users/bobby/workspace/muabe/no-code/muabe_player/packages/muabe_player_web
npm run test:e2e

빌드부터 포함해 실행하려면:

npm run test:e2e:build

검증 파일:

  • e2e/web-embed.spec.ts

CDN Usage

jsDelivr:

<script type="module" src="https://cdn.jsdelivr.net/npm/@muabe/muabe-player-web@1/dist/index.js"></script>

unpkg:

<script type="module" src="https://unpkg.com/@muabe/muabe-player-web@1/dist/index.js"></script>

runtime-url를 지정하면 기본값을 override할 수 있다.

Layout & Fullscreen

layout-mode:

  • adaptive (default): parent height가 유효하면 fill, 아니면 16:9 fallback
  • aspect: 항상 16:9 fallback
  • viewport: 항상 viewport fill

fullscreen-fit:

  • contain (default): 레터박스 허용, 왜곡 없음
  • cover: 화면을 채우되 일부 크롭 가능

예시:

<muabe-player
  src="./sample.miv"
  layout-mode="adaptive"
  fullscreen-fit="contain"
></muabe-player>