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

immersive-media-spots

v1.3.2

Published

Immersive Media Spots

Readme

npm version License: MIT

IMS — Immersive Media Spots

Simple web components that turn static pages into immersive, interactive media experiences. Drop a single HTML tag — get a full-featured 360° spinner, panorama viewer, image comparison slider, or video player.

Why IMS?

  • One tag — one widget. Just <ims-viewer src-data="data.json"> and you're done.
  • Universal. Works in any stack: vanilla HTML, React, Vue, Angular, Svelte — anything that renders DOM.
  • Smart loading. Adaptive resolution based on viewport & DPI, lazy loading via IntersectionObserver, on-demand dependency imports.
  • Hypermedia navigation. Link widgets together with interactive hotspots — let users explore 3D products, then dive into 360°, then watch a video, all in one seamless flow.
  • Themeable. Full CSS custom properties for colors, sizing, and layout. No CSS framework lock-in.
  • Lightweight. Built on Symbiote.js — each widget loads only what it needs.

Widgets

| Widget | Description | Docs | |--------|-------------|------| | ims-spinner | 360° product viewer with frame-by-frame rotation, autoplay, and drag interaction | docs | | ims-gallery | Touch-friendly image gallery with navigation, looping, and fullscreen | docs | | ims-diff | Before/after image comparison with a draggable slider | docs | | ims-pano | 360° panorama with inertia-based pan, zoom, and auto-rotation (Three.js) | docs | | ims-model | 3D model viewer for GLTF/GLB with orbit controls and auto-rotation (Three.js) | docs | | ims-video | Video player with HLS adaptive streaming, subtitles, and quality switching | docs | | ims-audio | Audio player with real-time waveform visualization (Web Audio API) | docs | | ims-map | Interactive map with markers | docs | | ims-hotspots | Interactive overlay spots with state-bound positioning and keyframe animation | docs | | ims-viewer | Universal loader — auto-imports any widget by type with version control, manages hotspot navigation and history | docs |

Quick Start

1. Set up dependencies — add an importmap or install via npm (only Symbiote.js is required; Three.js and hls.js are needed only for the widgets that use them)

2. Load the viewer (it pulls widget code on demand):

<script type="module" src="https://cdn.jsdelivr.net/npm/immersive-media-spots@<VERSION>/viewer/+esm"></script>

3. Use it:

<ims-viewer src-data="./product.json"></ims-viewer>

That's it. The viewer reads imsType from product.json and dynamically imports the right widget.

Version pinning

Every data JSON can include a version field that locks the widget import to an exact library release. This guarantees that previously published pages keep working even after new IMS versions are released with breaking changes.

// product.json
{ "imsType": "spinner", "version": "1.4.2", ... }

The viewer resolves the CDN URL as [email protected]/spinner/+esm. You can also override the version via the HTML attribute:

<ims-viewer src-data="./product.json" version="1.4.2"></ims-viewer>

If neither is set, latest is used. For production deployments, always pin the version in your data files.

Direct widget usage

Skip the viewer and load a specific widget directly:

<script type="module" src="https://cdn.jsdelivr.net/npm/immersive-media-spots@<VERSION>/spinner/+esm"></script>

<ims-spinner src-data="./data.json" autoplay="true"></ims-spinner>

npm

npm install immersive-media-spots

Hypermedia Navigation

Combine ims-viewer with ims-hotspots to create connected experiences:

<ims-viewer
  src-data="./exterior-spin.json"
  url-template="./{{imsType}}/index.js"
  hotspots="./exterior-hotspots.json">
</ims-viewer>

Hotspots link widgets together — click a spot on a 360° product to open a detail gallery, then jump to a panoramic interior, all with animated back navigation. → Hotspots docs

Common Features

All widgets share a base architecture that provides:

  • Adaptive loading — automatically selects the best resolution variant for the viewport and DPI
  • Lazy loadinglazy attribute defers initialization until the element enters the viewport
  • Fullscreen — native Fullscreen API with CSS fallback
  • Mobile-ready — touch gestures, responsive sizing, pointer event support
  • CSS theming — design tokens for toolbar, colors, spacing, and transitions
  • Plugin system — extend lifecycle hooks with custom plugins (→ plugins docs)
  • Events — standard lifecycle events: ims-load, ims-ready, ims-error (→ events docs)
  • Attribute overrides — override any JSON config property via HTML attributes

Documentation

Articles & Demos

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT © rnd-pro.com