Studio

🧩 Plugin Lab

PVM v1
Generation credits
Describe it β€” AI writes the code
⌘/Ctrl + Enter
PVM v1 Specification

File: one plugin = one file, <id>.pvm.js β€” a plain ES module, no build step or dependencies.

computeParticle(i, count, time, p, target, color) β€” the rendering contract. Runs ~60Γ—/sec for thousands of particles. Mutate target (THREE.Vector3 position) and color (THREE.Color). Must be deterministic: no DOM, audio, network or global state.

params + paramSchema β€” defaults plus slider definitions ({ key, label, min, max, step, unit? }) that auto-generate the control panel in the studio.

cameraPos [x, y, z] sets the opening camera. Optional bgColor (hex) and bloomThreshold (0–1) tweak the backdrop and glow.

id must be a lowercase slug; format must be "pvm-1". Export the file to share it β€” anyone can paste it here and install.

Plugin source

Live preview

Valid PVM v1
drag Β· scroll
Radius50
Twist3
Speed1x

Conformity check

  • Code compiles β€” parses as a PVM module
  • Default export is an object β€” ok
  • format: "pvm-1" β€” declared
  • id is a lowercase slug β€” my-vortex
  • name is set β€” My Vortex
  • computeParticle is a function β€” found
  • cameraPos is [x, y, z] β€” ok
  • params is an object β€” radius, twist, speed
  • paramSchema entries have key + label β€” 3 sliders
  • Runs without errors β€” tested at 3 points in time
  • Positions particles (target) β€” ok
  • Colors particles (color) β€” ok

Installed (1)

  • Ember Heart Swarm