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

pixi-effects

v0.1.0

Published

Declarative composition and video rendering for the web. Built on PixiJS v8.

Downloads

139

Readme

pixi-effects

Status: v0.1.0. API stable; semver from here.

Live demos → · 8 numbered examples + an in-browser playground.

Declarative composition and video rendering for the web. After Effects-style timelines on top of PixiJS v8 and GSAP, with strict TypeScript types. Render to MP4 / WebM / MOV via mediabunny.

  • Declarative DSL — describe your composition as a tree of typed sequences (text, image, video, audio, nested compositions). No imperative tween code.
  • Expression language — sprinkle 'GW * 0.5' or 'min(W, H) / 2' anywhere a number goes. Resolved at runtime against a sequence-relative scope.
  • Filters — chroma key, blur, color matrix. Animatable per-keyframe.
  • Built-in player UI — drop-in HTML5-<video>-style overlay controller (play, scrub, mute, volume, fullscreen, export-to-file).
  • MP4 / WebM / MOV export — pick container and quality from the controller, or call movie.render() from code.
  • Tiny dependency surface — only mediabunny (runtime) plus PixiJS and GSAP (peer deps).

Install

npm install pixi-effects pixi.js gsap

Quickstart

import { Movie } from 'pixi-effects';
import { Controller } from 'pixi-effects/controller';

const canvas = document.querySelector('canvas')!;
const movie = new Movie();
new Controller(movie, { canvas });

await movie.init({
  canvas,
  width: 1280, height: 720, duration: 5, frameRate: 30,
  composition: {
    sequences: [
      {
        type: 'text',
        text: 'hello pixi-effects',
        initial: { x: 'GW/2', y: 'GH/2', anchorX: 0.5, anchorY: 0.5 },
        keyframes: [
          { at: 0,    from: { alpha: 0, scale: 0 }, to: { alpha: 1, scale: 1 }, duration: 0.6, ease: 'back.out(1.7)' },
          { at: -0.5, to: { alpha: 0 }, duration: 0.5 },
        ],
        style: { fontSize: 'GW * 0.05', fill: '#ffffff', fontFamily: 'Arial' },
      },
    ],
  },
});

movie.play() starts playback. The controller bar handles user input. To export from code:

const blob = await movie.render({ format: 'mp4' });

Documentation

  • DSL reference — composition, sequences, keyframes, expressions, filters
  • API referenceMovie, Controller, events, render options
  • Examples — runnable HTML files (read in order):
    • 01-hello.html — minimum viable composition
    • 02-keyframes.html — keyframes, easings, expressions
    • 03-shapes.html — every shape primitive
    • 04-media.html — image / video / audio
    • 05-composition-mask.html — nested compositions and masks
    • 06-filters.html — built-in and pixi-filters via { type: 'custom' }
    • 07-transitions.html — all seven transition kinds in one timeline
    • 08-presets-export.htmlkenBurns preset and movie.render() from code
    • 09-audio.html — multi-track audio mixing with BGM ducking and SFX cues
    • playground.html — in-browser editor with preset dropdown

Browser support

Rendering uses the WebCodecs API via mediabunny:

| Feature | Chrome 94+ | Edge 94+ | Safari 16.4+ | Firefox 130+ | | --------- | ---------- | -------- | ------------ | ------------ | | Playback | ✅ | ✅ | ✅ | ✅ | | MP4 (avc) | ✅ | ✅ | ✅ | ✅ | | WebM (vp9)| ✅ | ✅ | ✅ | ✅ | | MOV (avc) | ✅ | ✅ | ✅ | ✅ |

Some codecs (notably aac audio in older Firefox) may need the mediabunny polyfill encoders (@mediabunny/aac-encoder, etc.).

License

MIT — see LICENSE.