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

@vizor-vr/react

v0.4.0

Published

React wrappers for Vizor VR Player

Readme

@vizor-vr/react

React wrappers for the Vizor VR player. Type-safe components with native event props.

Install

npm install @vizor-vr/react @vizor-vr/player

Usage

import { VzVideo } from '@vizor-vr/react';

export function Player() {
  return (
    <VzVideo src="video.mp4" format="MONO_360" autoplay onReady={() => console.log('ready')} />
  );
}

Components

VzVideo, VzImg, VzTour, VzCinema, VzLive, VzPlaylist, VzAnnotation, VzCaption.

VzAnnotation renders a <vz-annotation> child (props: lat, lon, title, icon, timeStart, timeEnd, sortOrder, plus children as popup content). VzCaption renders a subtitle <track> (props: src, srclang, label, default).

SSR

The wrappers import @vizor-vr/player/register as a side effect, which registers the underlying custom elements. Registration no-ops when there is no DOM, so importing the package is safe on the server — but the player itself only runs in the browser. In Next.js App Router or other RSC setups, render the components from a Client Component ('use client').

Props

Props are camelCase and are reflected to the underlying element's kebab-case attributes:

| Prop | Element attribute | Type | | ------------------------------------------------------------------------------------------------------ | ---------------------- | ------------------------------------- | | src | src | string | | format | format | VzFormat \| string | | title | title | string | | poster | poster | string | | loop / muted | loop / muted | boolean | | preload | preload | 'auto' \| 'metadata' \| 'none' | | apiKey | api-key | string | | licenseKey | license-key | string | | apiEndpoint | api-endpoint | string | | contentId | content-id | string | | controlsBehavior | controls-behavior | 'autohide' \| 'always' \| 'minimal' | | hideControls | hide-controls | boolean | | primaryColor | primary-color | string | | lensAngle | lens-angle | number | | collabServer / collabRoom / collabRole / collabUserId / collabDisplayName / collabPassword | collab-* | string | | className / style | class / inline style | string / React.CSSProperties | | sources | <source> children | { src, type?, quality? }[] |

VzPlaylist takes its own props: autoplay (auto-advance), loopPlaylist, panel ('none' \| 'expandable'), onPlaylistChange, onPlaylistEnd.

Event props

Each handler prop listens for a DOM event on the element; detail-carrying events pass event.detail directly to your handler:

| Prop | DOM event | Handler argument | | ---------------------------------------- | -------------------------------------------- | --------------------------------- | | onReady | vz-ready | — | | onPlay / onPause / onEnded | play / pause / ended | — | | onTimeUpdate | timeupdate | Event | | onError | vz-error | { code, message } | | onQualityChange | vz-quality-change | { quality, auto } | | onFullscreenEnter / onFullscreenExit | vz-fullscreen-enter / vz-fullscreen-exit | — | | onXrSessionStart / onXrSessionEnd | vz-xr-enter / vz-xr-exit | — | | onLicenseValidated | vz-license | { valid, tier, message? } | | onChapterChange | vz-chapter-change | { chapterId, title, startTime } | | onTourNavigate | vz-tour-navigate | { fromProbeId, toProbeId } | | onHubSelect | vz-hub-select | { id, src, title, index } | | onSceneClick | vz-scene-click | { lat, lon } |

Handler payload types come from VzEventDetailMap in @vizor-vr/shared, so detail shapes stay in sync with the player.

Note: onXrSessionStart / onXrSessionEnd / onLicenseValidated keep their prop names but listen for the events the player actually emits (vz-xr-enter / vz-xr-exit / vz-license). Earlier versions listened for vz-xr-session-start / vz-xr-session-end / vz-license-validated, which the player never emits, so these props never fired. The former onAnnotationClick, onOrientationChange, and onCaptionChange props were removed for the same reason — the player emits no vz-annotation-click, vz-orientation-change, or vz-caption-change events.

The forwarded ref points at the underlying custom element, so imperative methods (ref.current.play(), .pause(), .seek(t)) work directly.

Documentation

Full guides and the complete attribute/event reference: docs.vizor-vr.com. Source lives in the vizor-vr monorepo on GitHub.

Security

See the monorepo security policy for how to report vulnerabilities ([email protected]).

License

MIT — see LICENSE.