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

gifloopcoder

v1.0.0

Published

GIF Loop Coder — a JavaScript library for making looping animated GIFs (and WebM/MP4) from code

Readme

gifloopcoder

Code looping animations in the browser and export them as GIF, WebM, MP4, or PNG.

GIF Loop Coder (GLC) is Keith Peters' (bit101) animation library, modernized as a TypeScript ES-module package: 22 shape types, a seamless-loop interpolation engine, a 28-effect WebGL post-processing chain, and a deterministic export pipeline (GIF via gifenc, WebM/MP4 via mediabunny/WebCodecs, PNG stills and ZIP sequences).

Try it in the browser playground: https://msurguy.github.io/gifloopcoder/

Install

npm install gifloopcoder

Quick start

import { createGLC } from 'gifloopcoder';

const glc = createGLC({ container: document.querySelector('#app') });

glc.renderList.addCircle({
  x: glc.w / 2,
  y: glc.h / 2,
  radius: [20, 150],          // animates 20 → 150 → 20, seamlessly
  fillStyle: ['gold', 'tomato'],
});

glc.loop();

Any property can be a constant, a [from, to] pair, a keyframe array, or a function(t). GLC interpolates over a normalized time t (0 → 1) and loops it seamlessly.

Deterministic exports

Exports pause playback, render every frame at a fixed time step, and resume — so a GIF and a WebM of the same sketch are frame-for-frame identical and loop cleanly.

const gif = await glc.exportGif();                       // Blob
const { blob } = await glc.exportVideo({ format: 'webm' });
const png = await glc.exportPng();                       // current frame, Blob
const zip = await glc.exportPngSequence();               // ZIP of the full loop

Post-processing effects

A lazily-created WebGL2 chain adds effects on top of the rendered frame (and into the export). 28 built-ins — bloom, glitch, crt, chromaticAberration, pixelate, vignette, filmGrain, dot, twist, and more — plus custom GLSL passes.

glc.effects.add('bloom', { strength: 0.8 });
glc.effects.add('chromaticAberration', { amount: 4 });

// custom fragment shader:
glc.effects.addShader({ fragment: `/* GLSL */`, uniforms: { intensity: 0.5 } });

Effects degrade to a no-op when WebGL2 is unavailable — check glc.effects.isSupported().

Legacy compatibility

The original standalone constructor still works:

var glc = new GLC(document.getElementById('sketch'));

Credits & license

Created by Keith Peters; modernized and packaged by Maks Surguy. MIT licensed.

Source, docs, and the full playground: https://github.com/msurguy/gifloopcoder