videoglow

Ambient light for the web's moving pictures.

Ambilight style glow for video, canvas and YouTube. Framework-agnostic core with React integrations.

Install

pnpm add @videoglow/react-video    # native <video>
pnpm add @videoglow/react-youtube  # YouTube
pnpm add @videoglow/core           # engine only, no React

Core first

A framework-agnostic engine samples frames into a small canvas. React, video, canvas and YouTube plug into it.

Blur on the compositor

The glow is a CSS filter on a 160 px buffer. No pixels are read back, so cross-origin media just works.

Frame-aware sampling

requestVideoFrameCallback drives the glow; a 30 fps cap and visibility gating keep the main thread idle.

Honest about YouTube

Iframe pixels cannot be read. A muted second player follows the visible one through an explicit drift policy.

Sources

Integration

Validation