fast-average-color/fast-average-color
🍏🍊🍅 Fast Average Color observed · 2026-08-28
Health v2 · maintenance only
70/100
- Activity 75
- Release rhythm 46
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 190.5
- age_days: 3132
- days_rel: 150
- days_push: 150
- n_releases_24m: 3
Adoption not part of the score
1537 stars · 55 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small, fast TypeScript library that calculates the average or dominant color of images, videos, canvases, and raw pixel arrays in the browser. It supports multiple algorithms, transparency handling, web workers, and partial-region color extraction.
Use cases
- get the average color of an image to tint a page background
- extract dominant color from a video frame
- compute average color from a canvas or OffscreenCanvas
- get average color from an image URL or base64 string
- ignore specific colors (like white backgrounds) when averaging
- calculate average color of a specific region of an image
- use in a web worker for non-blocking color extraction
When to choose
- you need fast average or dominant color extraction in the browser
- you want a tiny, tree-shakeable dependency with no heavy image library
- you need to work with videos, canvases, ImageBitmaps, or raw pixel arrays
- you need transparency-aware color averaging
When to avoid
- you need full image processing or manipulation, not just color stats
- you need dominant color clustering like k-means with palette generation
- you need server-side processing without a browser environment (use the companion Node.js package instead)
Facets
library · maturity stable
image-processing graphics image-processing web-development frontend browser average-color dominant-color canvas color-extraction typescript tree-shakeable nodejs web-server
3 sources
- readme: https://github.com/fast-average-color/fast-average-color · fetched 2026-08-28 · 56e2694681c5
- homepage: https://fast-average-color.github.io/examples/background.html · fetched 2026-08-29 · d75f7cd43d6e
- registry_npm: https://registry.npmjs.org/fast-average-color · fetched 2026-08-29 · 497f422c6a2b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| fast-average-color/fast-average-color | main | 70 |
For agents
markdown · JSON · MCP: product_card(name="fast-average-color/fast-average-color")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem