API reference
Every attribute, input and export of Diorama, generated from the library sources.
On this page
Most sites import from diorama only. The other packages are listed for full control and for plugin authors.
Markup and tools
- Markup: Every data-dio attribute Diorama reads or writes, and how params map to attributes.
- Inputs: The built-in values every effect can read, as shader nodes on u and as numbers on input.
- CLI: dioramajs gen writes the registry or the types of your effects folder without a bundler; dioramajs add copies a built-in effect into it.
Modules
@dioramajs/diorama | The site entry: start(), effect() and the re-exports most sites need. |
@dioramajs/diorama/assets | Exports of @dioramajs/diorama/assets. |
@dioramajs/diorama/astro | Astro integration that adds the Vite plugin. |
@dioramajs/diorama/astro/client | Exports of @dioramajs/diorama/astro/client. |
@dioramajs/diorama/audio | Exports of @dioramajs/diorama/audio. |
@dioramajs/diorama/audio/graph | One audio graph per page, shared by the audio effects and copies of them. |
@dioramajs/diorama/auto | The no-build entry served from a CDN; it starts on its own. |
@dioramajs/diorama/backgrounds | Exports of @dioramajs/diorama/backgrounds. |
@dioramajs/diorama/blocks | Exports of @dioramajs/diorama/blocks. |
@dioramajs/diorama/core | Exports of @dioramajs/diorama/core. |
@dioramajs/diorama/data | Exports of @dioramajs/diorama/data. |
@dioramajs/diorama/effects | Exports of @dioramajs/diorama/effects. |
@dioramajs/diorama/globe | Exports of @dioramajs/diorama/globe. |
@dioramajs/diorama/glsl | Exports of @dioramajs/diorama/glsl. |
@dioramajs/diorama/gsap | Exports of @dioramajs/diorama/gsap. |
@dioramajs/diorama/kit | Helpers for your own effects, and the built-in image layer for their children. |
@dioramajs/diorama/lenis | Exports of @dioramajs/diorama/lenis. |
@dioramajs/diorama/media | Exports of @dioramajs/diorama/media. |
@dioramajs/diorama/model | Exports of @dioramajs/diorama/model. |
@dioramajs/diorama/model/rig | The placed scene that model publishes to explode, hotspots and their copies. |
@dioramajs/diorama/next | Next.js wrapper that writes the effect registry for webpack and Turbopack. |
@dioramajs/diorama/nuxt | Nuxt module that adds the Vite plugin with the effects folder under srcDir. |
@dioramajs/diorama/particles | Exports of @dioramajs/diorama/particles. |
@dioramajs/diorama/quality | Exports of @dioramajs/diorama/quality. |
@dioramajs/diorama/render | Exports of @dioramajs/diorama/render. |
@dioramajs/diorama/text | Exports of @dioramajs/diorama/text. |
@dioramajs/diorama/transitions | Exports of @dioramajs/diorama/transitions. |
@dioramajs/diorama/vite | Vite plugin that turns the effects folder into a lazy registry with types. |
@dioramajs/assets | Asset loading, cache and preload. |
@dioramajs/assets/three | Loaders for glTF with Draco, Meshopt and KTX2. |
@dioramajs/audio | Exports of @dioramajs/audio. |
@dioramajs/audio/beat | Exports of @dioramajs/audio/beat. |
@dioramajs/audio/graph | One audio graph per page: one AudioContext and one source per media element. |
@dioramajs/audio/visualizer | Exports of @dioramajs/audio/visualizer. |
@dioramajs/backgrounds | Exports of @dioramajs/backgrounds. |
@dioramajs/backgrounds/blobs | Exports of @dioramajs/backgrounds/blobs. |
@dioramajs/backgrounds/clouds | Exports of @dioramajs/backgrounds/clouds. |
@dioramajs/backgrounds/dots | Exports of @dioramajs/backgrounds/dots. |
@dioramajs/backgrounds/gradient | Exports of @dioramajs/backgrounds/gradient. |
@dioramajs/backgrounds/grid | Exports of @dioramajs/backgrounds/grid. |
@dioramajs/backgrounds/stars | Exports of @dioramajs/backgrounds/stars. |
@dioramajs/backgrounds/waves | Exports of @dioramajs/backgrounds/waves. |
@dioramajs/blocks | Exports of @dioramajs/blocks. |
@dioramajs/blocks/beam | Exports of @dioramajs/blocks/beam. |
@dioramajs/blocks/glow | Exports of @dioramajs/blocks/glow. |
@dioramajs/blocks/shine | Exports of @dioramajs/blocks/shine. |
@dioramajs/data | Exports of @dioramajs/data. |
@dioramajs/data/chart | Exports of @dioramajs/data/chart. |
@dioramajs/data/graph | Exports of @dioramajs/data/graph. |
@dioramajs/data/heatmap | Exports of @dioramajs/data/heatmap. |
@dioramajs/data/map | Exports of @dioramajs/data/map. |
@dioramajs/effects/kit | Helpers for effect modules and site effects, loaded in lazy chunks only. |
@dioramajs/effects/testing | Test helpers for effects: a GPU stand-in and probe(). |
@dioramajs/globe | Exports of @dioramajs/globe. |
@dioramajs/globe/globe | Exports of @dioramajs/globe/globe. |
@dioramajs/globe/land | Exports of @dioramajs/globe/land. |
@dioramajs/glsl | Converted GLSL stages as effects, without the transpiler. |
@dioramajs/glsl/convert | GLSL to TSL at build time, in Node. |
@dioramajs/glsl/entries | A folder of shader entries as an effect registry. |
@dioramajs/glsl/loader | webpack 5 and Turbopack loader for .frag files. |
@dioramajs/glsl/vite | Vite plugin that turns .frag files into effects. |
@dioramajs/gsap | GSAP and ScrollTrigger on the Diorama frame. |
@dioramajs/lenis | Lenis smooth scroll on the Diorama frame. |
@dioramajs/media | Image effects: image, ripple, bend. |
@dioramajs/media/ambient | Exports of @dioramajs/media/ambient. |
@dioramajs/media/carousel | Exports of @dioramajs/media/carousel. |
@dioramajs/media/chroma | Exports of @dioramajs/media/chroma. |
@dioramajs/media/compare | Exports of @dioramajs/media/compare. |
@dioramajs/media/coverflow | Exports of @dioramajs/media/coverflow. |
@dioramajs/media/curtain | Exports of @dioramajs/media/curtain. |
@dioramajs/media/expand | Exports of @dioramajs/media/expand. |
@dioramajs/media/flare | Exports of @dioramajs/media/flare. |
@dioramajs/media/flipbook | Exports of @dioramajs/media/flipbook. |
@dioramajs/media/frost | Exports of @dioramajs/media/frost. |
@dioramajs/media/gallery | Exports of @dioramajs/media/gallery. |
@dioramajs/media/glitch | Exports of @dioramajs/media/glitch. |
@dioramajs/media/horizontal | Exports of @dioramajs/media/horizontal. |
@dioramajs/media/hover-preview | Exports of @dioramajs/media/hover-preview. |
@dioramajs/media/intro | Exports of @dioramajs/media/intro. |
@dioramajs/media/lightbox | Exports of @dioramajs/media/lightbox. |
@dioramajs/media/liquid | Exports of @dioramajs/media/liquid. |
@dioramajs/media/panorama | Exports of @dioramajs/media/panorama. |
@dioramajs/media/parallax | Exports of @dioramajs/media/parallax. |
@dioramajs/media/pixelate | Exports of @dioramajs/media/pixelate. |
@dioramajs/media/polaroids | Exports of @dioramajs/media/polaroids. |
@dioramajs/media/reflection | Exports of @dioramajs/media/reflection. |
@dioramajs/media/reveal | Exports of @dioramajs/media/reveal. |
@dioramajs/media/scrub | Exports of @dioramajs/media/scrub. |
@dioramajs/media/sequence | Exports of @dioramajs/media/sequence. |
@dioramajs/media/spin | Exports of @dioramajs/media/spin. |
@dioramajs/media/spotlight | Exports of @dioramajs/media/spotlight. |
@dioramajs/media/stack | Exports of @dioramajs/media/stack. |
@dioramajs/media/tilt | Exports of @dioramajs/media/tilt. |
@dioramajs/media/tone | Exports of @dioramajs/media/tone. |
@dioramajs/media/video-hover | Exports of @dioramajs/media/video-hover. |
@dioramajs/media/zoom | Exports of @dioramajs/media/zoom. |
@dioramajs/media/zoom-scroll | Exports of @dioramajs/media/zoom-scroll. |
@dioramajs/model | Exports of @dioramajs/model. |
@dioramajs/model/book | Exports of @dioramajs/model/book. |
@dioramajs/model/box | Exports of @dioramajs/model/box. |
@dioramajs/model/coin | Exports of @dioramajs/model/coin. |
@dioramajs/model/device | Exports of @dioramajs/model/device. |
@dioramajs/model/explode | Exports of @dioramajs/model/explode. |
@dioramajs/model/hotspots | Exports of @dioramajs/model/hotspots. |
@dioramajs/model/label | Exports of @dioramajs/model/label. |
@dioramajs/model/model | Exports of @dioramajs/model/model. |
@dioramajs/model/rig | How model shares its placed scene with the effects that work on it. |
@dioramajs/model/vinyl | Exports of @dioramajs/model/vinyl. |
@dioramajs/particles | Exports of @dioramajs/particles. |
@dioramajs/particles/confetti | Exports of @dioramajs/particles/confetti. |
@dioramajs/particles/drops | Exports of @dioramajs/particles/drops. |
@dioramajs/particles/emoji | Exports of @dioramajs/particles/emoji. |
@dioramajs/particles/snow | Exports of @dioramajs/particles/snow. |
@dioramajs/particles/sparkles | Exports of @dioramajs/particles/sparkles. |
@dioramajs/quality | Exports of @dioramajs/quality. |
@dioramajs/text | Exports of @dioramajs/text. |
@dioramajs/text/assemble | Exports of @dioramajs/text/assemble. |
@dioramajs/text/blinds | Exports of @dioramajs/text/blinds. |
@dioramajs/text/counter | Exports of @dioramajs/text/counter. |
@dioramajs/text/dust | Exports of @dioramajs/text/dust. |
@dioramajs/text/emboss | Exports of @dioramajs/text/emboss. |
@dioramajs/text/extrude | Exports of @dioramajs/text/extrude. |
@dioramajs/text/fire | Exports of @dioramajs/text/fire. |
@dioramajs/text/hologram | Exports of @dioramajs/text/hologram. |
@dioramajs/text/inflate | Exports of @dioramajs/text/inflate. |
@dioramajs/text/intro | Exports of @dioramajs/text/intro. |
@dioramajs/text/keycaps | Exports of @dioramajs/text/keycaps. |
@dioramajs/text/lens | Exports of @dioramajs/text/lens. |
@dioramajs/text/magnet | Exports of @dioramajs/text/magnet. |
@dioramajs/text/marquee | Exports of @dioramajs/text/marquee. |
@dioramajs/text/melt | Exports of @dioramajs/text/melt. |
@dioramajs/text/neon | Exports of @dioramajs/text/neon. |
@dioramajs/text/orbit | Exports of @dioramajs/text/orbit. |
@dioramajs/text/physics | Exports of @dioramajs/text/physics. |
@dioramajs/text/pins | Exports of @dioramajs/text/pins. |
@dioramajs/text/prism | Exports of @dioramajs/text/prism. |
@dioramajs/text/ribbon | Exports of @dioramajs/text/ribbon. |
@dioramajs/text/rotator | Exports of @dioramajs/text/rotator. |
@dioramajs/text/scramble | Exports of @dioramajs/text/scramble. |
@dioramajs/text/shatter | Exports of @dioramajs/text/shatter. |
@dioramajs/text/shimmer | Exports of @dioramajs/text/shimmer. |
@dioramajs/text/smoke | Exports of @dioramajs/text/smoke. |
@dioramajs/text/split-flap | Exports of @dioramajs/text/split-flap. |
@dioramajs/text/text-glitch | Exports of @dioramajs/text/text-glitch. |
@dioramajs/text/text-reveal | Exports of @dioramajs/text/text-reveal. |
@dioramajs/text/tunnel | Exports of @dioramajs/text/tunnel. |
@dioramajs/text/unfold | Exports of @dioramajs/text/unfold. |
@dioramajs/text/video-text | Exports of @dioramajs/text/video-text. |
@dioramajs/text/voxel | Exports of @dioramajs/text/voxel. |
@dioramajs/text/water | Exports of @dioramajs/text/water. |
@dioramajs/text/wave | Exports of @dioramajs/text/wave. |
@dioramajs/transitions | Page transitions and flights of keyed elements. |
@dioramajs/transitions/cover | Exports of @dioramajs/transitions/cover. |
Low level
The packages that start() wires together. Use them to build an app by hand with createApp.
@dioramajs/effects | Effects on DOM elements and their runtime. |
@dioramajs/core | App, plugins, signals, frame loop, stage, scroll and pointer. |
@dioramajs/effects/effect | effect() and defineEffect() without the rest of the effects package. |
@dioramajs/render | WebGPU renderer with the WebGL 2 fallback. |