# jnordberg/gif.js

JavaScript GIF encoding library

Repository: https://github.com/jnordberg/gif.js
Canonical: https://ross.abutalabs.com/products/gifjs
Homepage: http://jnordberg.github.io/gif.js/
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-10-06T08:25:46+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4854, "days_push": 1062, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4971, forks 663 (observed 2026-08-28T04:09:04.040439+00:00)

## What it is
gif.js is a JavaScript GIF encoding library that runs entirely in the browser. It uses typed arrays and web workers to render GIF frames in the background for fast, non-blocking encoding.

## Use cases
- create animated GIFs from canvas elements in the browser
- convert image frames to a GIF client-side without a server
- encode GIFs from video frames in a web app
- generate GIF animations with dithering and transparency
- render GIFs off the main thread using web workers

## When to choose
- you need client-side GIF generation in a browser without server round-trips
- you want fast, non-blocking encoding via web workers
- you need control over frame delay, transparency, dithering, and repeat settings

## When to avoid
- you need to encode GIFs in Node.js or another non-browser environment
- you need modern video formats like WebM or MP4 instead of GIF
- you need a heavily maintained library with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing, graphics
- domain: web-development, frontend, media
- platform: browser
- tags: gif-encoder, web-workers, canvas, animation, client-side, javascript

## Member repositories
- jnordberg/gif.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:04.040439+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:17:45.414316+00:00, confidence not recorded.
  - readme: https://github.com/jnordberg/gif.js (fetched 2026-08-28T04:09:04.040439+00:00, sha 4ba736e59c9f)
  - homepage: http://jnordberg.github.io/gif.js/ (fetched 2026-08-29T08:59:19.427963+00:00, sha 748af834780c)
  - registry_npm: https://registry.npmjs.org/gif.js (fetched 2026-08-29T08:59:19.436851+00:00, sha fbceb1df2ab5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
