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

@hologramism/browser

v1.0.1

Published

Motion-reactive security-hologram (DOVID/Kinegram) canvas for the web: color-shifting foil that tilts with the device, GPU-rendered with Rust + wgpu/WebGPU.

Readme

@hologramism/browser

A motion-reactive security-hologram (DOVID / Kinegram) canvas for the web. You get the shiny, color-shifting "3D laser" foil look, GPU-rendered with Rust + wgpu/WebGPU, reacting live to device orientation and pointer tilt.

Same scene schema as @hologramism/react-native: HologramCanvas props match HologramView props one-for-one.

Live demo: tilt your device (or drag) to see the foil shift. Needs a WebGPU browser (see Requirements).

Requirements

WebGPU. Chrome ≥ 113, Edge ≥ 113, or Safari 18+. Firefox needs dom.webgpu.enabled in about:config. iOS Safari 18+ works too, and the motion-permission prompt is handled for you.

Install

npm install @hologramism/browser

react and react-dom (≥ 18) are peer dependencies.

Usage

import { HologramCanvas, Preset, Layout } from '@hologramism/browser';

// Gold guilloché on a transparent background.
<HologramCanvas style={{ width: 300, height: 190 }} preset="guilloche" color="gold" />

// PNG as artwork, or as a preset-filled silhouette (the mask gets a beveled rim).
<HologramCanvas shape={{ type: 'png', uri: '/bird.png', mode: 'image' }} />
<HologramCanvas shape={{ type: 'png', uri: '/bird.png', mode: 'mask' }} preset="dotMatrix" />

// Tile the shape into a grid; the rainbow sweeps the whole grid as one surface.
<HologramCanvas shape="circle" preset="rainbow" layout={Layout.tile({ size: 0.22, gap: 0.03 })} />

// Kinegram: cross-fades gold to sapphire on tilt.
<HologramCanvas
  layers={[
    { preset: Preset.linear({ angle: 0 }), color: 'gold', azimuth: 0 },
    { preset: 'rosette', color: 'sapphire', azimuth: 90 },
  ]}
  tilt={{ motion: true, gesture: true, autoOrbit: true }}
/>

Props

| Prop | Type | Notes | | --- | --- | --- | | shape | 'rect' \| 'circle' \| 'ellipse' or { type, ... } | polygon (normalized points), png/svg (uri | base64 | svg, mode: 'image' \| 'mask') | | preset | 'linear' \| ... or { type, angle?, freq? } | Preset.*(...) helpers return the config object | | color | 'spectrum' \| 'gold' \| ... or RGBA[] | a bare [r,g,b,a] list is a custom palette | | layout | 'single' \| 'tile' or { type, ... } | Layout.single({ size?, position? }) places one shape; Layout.tile({ size?, gap?, fit? }) repeats it as a grid. size/gap are fractions of the view; fit: 'cover' \| 'fill'. Pattern + color stay global | | layers | Layer \| Layer[] | each layer takes shape/preset/color/azimuth (deg)/layout; array = multiplex | | background | string (hex) or RGBA | transparent by default; set a hex string or [r,g,b,a] to make it opaque | | tilt | { motion?, gesture?, autoOrbit? } | orientation sources (all default true) | | glare | number | strength of the motion-driven light reflection; 0 disables | | sparkle | true \| false \| { density?, intensity? } | glint control, global; true/false enable/disable with defaults, an object overrides density (count) / intensity (brightness) | | intensity | number | blend between flat artwork and full holographic shimmer (0 to 1) | | grating | number | diffraction line density; higher = finer color bands | | iridescence | number | thin-film color-shift strength | | sharpness | number | specular / glare hotspot tightness (higher = tighter) |

Angles and azimuths are in degrees. Presets: linear, radial, concentric, guilloche, dotMatrix, rosette, lattice, rainbow. Foils: gold, silver, rainbowFoil, emerald, sapphire, copper.

Notes

The wasm engine presents directly to a WebGPU <canvas>; a CPU read-back path is the automatic fallback when surface attach is unavailable. The cross-origin isolation headers (COOP/COEP) are required for the WebGPU context, so set them on the page serving the canvas.

License

MIT. See the repository.