Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

API reference

Every attribute, input and export of Diorama, generated from the library sources.

View as Markdown
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/dioramaThe site entry: start(), effect() and the re-exports most sites need.
@dioramajs/diorama/assetsExports of @dioramajs/diorama/assets.
@dioramajs/diorama/astroAstro integration that adds the Vite plugin.
@dioramajs/diorama/astro/clientExports of @dioramajs/diorama/astro/client.
@dioramajs/diorama/audioExports of @dioramajs/diorama/audio.
@dioramajs/diorama/audio/graphOne audio graph per page, shared by the audio effects and copies of them.
@dioramajs/diorama/autoThe no-build entry served from a CDN; it starts on its own.
@dioramajs/diorama/backgroundsExports of @dioramajs/diorama/backgrounds.
@dioramajs/diorama/blocksExports of @dioramajs/diorama/blocks.
@dioramajs/diorama/coreExports of @dioramajs/diorama/core.
@dioramajs/diorama/dataExports of @dioramajs/diorama/data.
@dioramajs/diorama/effectsExports of @dioramajs/diorama/effects.
@dioramajs/diorama/globeExports of @dioramajs/diorama/globe.
@dioramajs/diorama/glslExports of @dioramajs/diorama/glsl.
@dioramajs/diorama/gsapExports of @dioramajs/diorama/gsap.
@dioramajs/diorama/kitHelpers for your own effects, and the built-in image layer for their children.
@dioramajs/diorama/lenisExports of @dioramajs/diorama/lenis.
@dioramajs/diorama/mediaExports of @dioramajs/diorama/media.
@dioramajs/diorama/modelExports of @dioramajs/diorama/model.
@dioramajs/diorama/model/rigThe placed scene that model publishes to explode, hotspots and their copies.
@dioramajs/diorama/nextNext.js wrapper that writes the effect registry for webpack and Turbopack.
@dioramajs/diorama/nuxtNuxt module that adds the Vite plugin with the effects folder under srcDir.
@dioramajs/diorama/particlesExports of @dioramajs/diorama/particles.
@dioramajs/diorama/qualityExports of @dioramajs/diorama/quality.
@dioramajs/diorama/renderExports of @dioramajs/diorama/render.
@dioramajs/diorama/textExports of @dioramajs/diorama/text.
@dioramajs/diorama/transitionsExports of @dioramajs/diorama/transitions.
@dioramajs/diorama/viteVite plugin that turns the effects folder into a lazy registry with types.
@dioramajs/assetsAsset loading, cache and preload.
@dioramajs/assets/threeLoaders for glTF with Draco, Meshopt and KTX2.
@dioramajs/audioExports of @dioramajs/audio.
@dioramajs/audio/beatExports of @dioramajs/audio/beat.
@dioramajs/audio/graphOne audio graph per page: one AudioContext and one source per media element.
@dioramajs/audio/visualizerExports of @dioramajs/audio/visualizer.
@dioramajs/backgroundsExports of @dioramajs/backgrounds.
@dioramajs/backgrounds/blobsExports of @dioramajs/backgrounds/blobs.
@dioramajs/backgrounds/cloudsExports of @dioramajs/backgrounds/clouds.
@dioramajs/backgrounds/dotsExports of @dioramajs/backgrounds/dots.
@dioramajs/backgrounds/gradientExports of @dioramajs/backgrounds/gradient.
@dioramajs/backgrounds/gridExports of @dioramajs/backgrounds/grid.
@dioramajs/backgrounds/starsExports of @dioramajs/backgrounds/stars.
@dioramajs/backgrounds/wavesExports of @dioramajs/backgrounds/waves.
@dioramajs/blocksExports of @dioramajs/blocks.
@dioramajs/blocks/beamExports of @dioramajs/blocks/beam.
@dioramajs/blocks/glowExports of @dioramajs/blocks/glow.
@dioramajs/blocks/shineExports of @dioramajs/blocks/shine.
@dioramajs/dataExports of @dioramajs/data.
@dioramajs/data/chartExports of @dioramajs/data/chart.
@dioramajs/data/graphExports of @dioramajs/data/graph.
@dioramajs/data/heatmapExports of @dioramajs/data/heatmap.
@dioramajs/data/mapExports of @dioramajs/data/map.
@dioramajs/effects/kitHelpers for effect modules and site effects, loaded in lazy chunks only.
@dioramajs/effects/testingTest helpers for effects: a GPU stand-in and probe().
@dioramajs/globeExports of @dioramajs/globe.
@dioramajs/globe/globeExports of @dioramajs/globe/globe.
@dioramajs/globe/landExports of @dioramajs/globe/land.
@dioramajs/glslConverted GLSL stages as effects, without the transpiler.
@dioramajs/glsl/convertGLSL to TSL at build time, in Node.
@dioramajs/glsl/entriesA folder of shader entries as an effect registry.
@dioramajs/glsl/loaderwebpack 5 and Turbopack loader for .frag files.
@dioramajs/glsl/viteVite plugin that turns .frag files into effects.
@dioramajs/gsapGSAP and ScrollTrigger on the Diorama frame.
@dioramajs/lenisLenis smooth scroll on the Diorama frame.
@dioramajs/mediaImage effects: image, ripple, bend.
@dioramajs/media/ambientExports of @dioramajs/media/ambient.
@dioramajs/media/carouselExports of @dioramajs/media/carousel.
@dioramajs/media/chromaExports of @dioramajs/media/chroma.
@dioramajs/media/compareExports of @dioramajs/media/compare.
@dioramajs/media/coverflowExports of @dioramajs/media/coverflow.
@dioramajs/media/curtainExports of @dioramajs/media/curtain.
@dioramajs/media/expandExports of @dioramajs/media/expand.
@dioramajs/media/flareExports of @dioramajs/media/flare.
@dioramajs/media/flipbookExports of @dioramajs/media/flipbook.
@dioramajs/media/frostExports of @dioramajs/media/frost.
@dioramajs/media/galleryExports of @dioramajs/media/gallery.
@dioramajs/media/glitchExports of @dioramajs/media/glitch.
@dioramajs/media/horizontalExports of @dioramajs/media/horizontal.
@dioramajs/media/hover-previewExports of @dioramajs/media/hover-preview.
@dioramajs/media/introExports of @dioramajs/media/intro.
@dioramajs/media/lightboxExports of @dioramajs/media/lightbox.
@dioramajs/media/liquidExports of @dioramajs/media/liquid.
@dioramajs/media/panoramaExports of @dioramajs/media/panorama.
@dioramajs/media/parallaxExports of @dioramajs/media/parallax.
@dioramajs/media/pixelateExports of @dioramajs/media/pixelate.
@dioramajs/media/polaroidsExports of @dioramajs/media/polaroids.
@dioramajs/media/reflectionExports of @dioramajs/media/reflection.
@dioramajs/media/revealExports of @dioramajs/media/reveal.
@dioramajs/media/scrubExports of @dioramajs/media/scrub.
@dioramajs/media/sequenceExports of @dioramajs/media/sequence.
@dioramajs/media/spinExports of @dioramajs/media/spin.
@dioramajs/media/spotlightExports of @dioramajs/media/spotlight.
@dioramajs/media/stackExports of @dioramajs/media/stack.
@dioramajs/media/tiltExports of @dioramajs/media/tilt.
@dioramajs/media/toneExports of @dioramajs/media/tone.
@dioramajs/media/video-hoverExports of @dioramajs/media/video-hover.
@dioramajs/media/zoomExports of @dioramajs/media/zoom.
@dioramajs/media/zoom-scrollExports of @dioramajs/media/zoom-scroll.
@dioramajs/modelExports of @dioramajs/model.
@dioramajs/model/bookExports of @dioramajs/model/book.
@dioramajs/model/boxExports of @dioramajs/model/box.
@dioramajs/model/coinExports of @dioramajs/model/coin.
@dioramajs/model/deviceExports of @dioramajs/model/device.
@dioramajs/model/explodeExports of @dioramajs/model/explode.
@dioramajs/model/hotspotsExports of @dioramajs/model/hotspots.
@dioramajs/model/labelExports of @dioramajs/model/label.
@dioramajs/model/modelExports of @dioramajs/model/model.
@dioramajs/model/rigHow model shares its placed scene with the effects that work on it.
@dioramajs/model/vinylExports of @dioramajs/model/vinyl.
@dioramajs/particlesExports of @dioramajs/particles.
@dioramajs/particles/confettiExports of @dioramajs/particles/confetti.
@dioramajs/particles/dropsExports of @dioramajs/particles/drops.
@dioramajs/particles/emojiExports of @dioramajs/particles/emoji.
@dioramajs/particles/snowExports of @dioramajs/particles/snow.
@dioramajs/particles/sparklesExports of @dioramajs/particles/sparkles.
@dioramajs/qualityExports of @dioramajs/quality.
@dioramajs/textExports of @dioramajs/text.
@dioramajs/text/assembleExports of @dioramajs/text/assemble.
@dioramajs/text/blindsExports of @dioramajs/text/blinds.
@dioramajs/text/counterExports of @dioramajs/text/counter.
@dioramajs/text/dustExports of @dioramajs/text/dust.
@dioramajs/text/embossExports of @dioramajs/text/emboss.
@dioramajs/text/extrudeExports of @dioramajs/text/extrude.
@dioramajs/text/fireExports of @dioramajs/text/fire.
@dioramajs/text/hologramExports of @dioramajs/text/hologram.
@dioramajs/text/inflateExports of @dioramajs/text/inflate.
@dioramajs/text/introExports of @dioramajs/text/intro.
@dioramajs/text/keycapsExports of @dioramajs/text/keycaps.
@dioramajs/text/lensExports of @dioramajs/text/lens.
@dioramajs/text/magnetExports of @dioramajs/text/magnet.
@dioramajs/text/marqueeExports of @dioramajs/text/marquee.
@dioramajs/text/meltExports of @dioramajs/text/melt.
@dioramajs/text/neonExports of @dioramajs/text/neon.
@dioramajs/text/orbitExports of @dioramajs/text/orbit.
@dioramajs/text/physicsExports of @dioramajs/text/physics.
@dioramajs/text/pinsExports of @dioramajs/text/pins.
@dioramajs/text/prismExports of @dioramajs/text/prism.
@dioramajs/text/ribbonExports of @dioramajs/text/ribbon.
@dioramajs/text/rotatorExports of @dioramajs/text/rotator.
@dioramajs/text/scrambleExports of @dioramajs/text/scramble.
@dioramajs/text/shatterExports of @dioramajs/text/shatter.
@dioramajs/text/shimmerExports of @dioramajs/text/shimmer.
@dioramajs/text/smokeExports of @dioramajs/text/smoke.
@dioramajs/text/split-flapExports of @dioramajs/text/split-flap.
@dioramajs/text/text-glitchExports of @dioramajs/text/text-glitch.
@dioramajs/text/text-revealExports of @dioramajs/text/text-reveal.
@dioramajs/text/tunnelExports of @dioramajs/text/tunnel.
@dioramajs/text/unfoldExports of @dioramajs/text/unfold.
@dioramajs/text/video-textExports of @dioramajs/text/video-text.
@dioramajs/text/voxelExports of @dioramajs/text/voxel.
@dioramajs/text/waterExports of @dioramajs/text/water.
@dioramajs/text/waveExports of @dioramajs/text/wave.
@dioramajs/transitionsPage transitions and flights of keyed elements.
@dioramajs/transitions/coverExports of @dioramajs/transitions/cover.

Low level

The packages that start() wires together. Use them to build an app by hand with createApp.

@dioramajs/effectsEffects on DOM elements and their runtime.
@dioramajs/coreApp, plugins, signals, frame loop, stage, scroll and pointer.
@dioramajs/effects/effecteffect() and defineEffect() without the rest of the effects package.
@dioramajs/renderWebGPU renderer with the WebGL 2 fallback.