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

gifencoderv2

v1.0.0

Published

Streaming server-side animated (and non-animated) GIF generation for Node.js — republished fork for modern Node and ST BOT messenger integration.

Downloads

293

Readme

gifencoderv2

A republished fork of the original gifencoder package for modern Node.js and easier use in messenger bot projects.

About

This repository is maintained by Sheikh Tamim and republished from the original project at https://github.com/eugeneware/gifencoder.

The fork is intended to support newer Node.js usage scenarios and to make the package more reliable for bot integrations such as the ST BOT project.

Install

npm install gifencoderv2

Or install directly from GitHub:

npm install github:sheikhtamimlover/gitencoderv2

Usage

const GIFEncoder = require('gifencoderv2');
const { createCanvas } = require('canvas');

const width = 320;
const height = 240;
const canvas = createCanvas(width, height);
const ctx = canvas.getContext('2d');

ctx.fillStyle = '#3498db';
ctx.fillRect(0, 0, width, height);

const encoder = new GIFEncoder(width, height);
encoder.start();
encoder.setRepeat(0);
encoder.setDelay(500);
encoder.setQuality(10);
encoder.addFrame(ctx);
encoder.finish();

const fs = require('fs');
const out = fs.createWriteStream('output.gif');
encoder.createReadStream().pipe(out);

Why this fork?

  • Original package: https://github.com/eugeneware/gifencoder
  • Fork maintained by: Sheikh Tamim
  • Republished for newer Node.js compatibility and messenger bot use.
  • Good fit for projects like ST BOT: https://github.com/sheikhtamimlover/ST-BOT

Notes for ST BOT users

If you are building a messenger bot or using the ST BOT repository, this package can help generate GIFs server-side with canvas support.

License

MIT