# rgbaster.js

🎨 A simple library for extracting dominant colors from images.

Repository: https://github.com/briangonzalez/rgbaster.js
Canonical: https://ross.abutalabs.com/products/rgbasterjs
Language: TypeScript
License Family: other
Last push: 2019-12-20T00:32:39+00:00
Link (homepage): http://briangonzalez.github.io/jquery.adaptive-backgrounds.js/

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

## Adoption (not part of the score)
Stars 1747, forks 211 (observed 2026-08-28T04:05:30.816887+00:00)

## What it is
A jQuery plugin that extracts the dominant color from images and applies it as the background color of their parent element. It is built on top of rgbaster.js, a small JavaScript library for extracting dominant colors from images.

## Use cases
- extract dominant color from an image in the browser
- apply adaptive background color to a card or container based on its image
- dynamically theme page sections to match image colors
- normalize text color for readability over extracted backgrounds
- get dominant colors from a CSS background image element

## When to choose
- you use jQuery and want a one-line setup for image-derived background colors
- you need simple client-side dominant color extraction without heavy dependencies
- you want automatic text color normalization over dynamic backgrounds

## When to avoid
- you need a maintained, actively updated solution (last release was 2017)
- your project does not use jQuery
- you need advanced color quantization or palette extraction beyond dominant colors
- you need server-side or Node.js image color analysis

## Facets
- artifact type: plugin
- maturity: maintenance
- function: image-processing, ui-components
- domain: frontend, web-development, image-processing
- platform: browser
- tags: dominant-color, adaptive-backgrounds, color-extraction, jquery-plugin, javascript, jquery

## Member repositories
- briangonzalez/rgbaster.js (main) score 23
- briangonzalez/jquery.adaptive-backgrounds.js (plugin) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.816887+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-29T17:44:31.159568+00:00, confidence not recorded.
  - readme: https://github.com/briangonzalez/rgbaster.js (fetched 2026-08-28T04:05:30.816887+00:00, sha b280cc604dd4)
  - homepage: http://briangonzalez.github.io/jquery.adaptive-backgrounds.js/ (fetched 2026-08-29T08:41:33.449114+00:00, sha 9522d08e6ac2)
  - registry_npm: https://registry.npmjs.org/rgbaster.js (fetched 2026-08-29T08:41:33.458154+00:00, sha c02af6c9b8a8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
