{"adoption": {"forks": 273, "observed_at": "2026-08-28T04:07:52.039855+00:00", "stars": 3250}, "canonical_url": "https://ross.abutalabs.com/products/background-check", "card": {"archived": false, "artifact_type": "library", "description": "Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.", "domain": ["web-development", "frontend", "image-processing"], "enriched": true, "function": ["image-processing", "ui-components", "frontend-framework"], "health_score": 20, "homepage": "http://kennethcachia.com/background-check/", "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["kennethcachia/background-check"], "name": "kennethcachia/background-check", "platform": ["browser"], "pushed_at": "2022-08-07T22:28:45+00:00", "repo": "kennethcachia/background-check", "stars": 3250, "tags": ["contrast-detection", "adaptive-ui", "background-detection", "vanilla-js", "accessibility", "javascript"], "topics": [], "urls": [], "use_cases": ["keep nav text readable over hero images", "automatically switch text color based on image brightness", "make slider captions legible over photos", "detect dark vs light backgrounds under fixed headers", "handle text contrast over fullscreen CSS background images"], "what_it_is": "A small vanilla JavaScript library that detects the brightness of images behind overlapping elements and applies `.background--dark` or `.background--light` CSS classes so text stays readable. It also flags complex backgrounds and works with CSS background images and sliders.", "when_to_avoid": ["you need a maintained library with active updates", "you want a solution that styles elements for you rather than adding classes", "your project uses a framework with its own contrast/adaptive-color tooling"], "when_to_choose": ["you overlay text or UI on images and need automatic contrast switching", "you want a dependency-free vanilla JS solution", "you need a simple class-based API you style yourself with CSS"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/background-check", "repo": "kennethcachia/background-check", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:24:26.014890+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a78cbd0400a8b3c3a1d74da0bd03a5cb94627567a456df632ff0fd20d24cd7a2", "fetched_at": "2026-08-28T04:07:52.039855+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kennethcachia/background-check"}, {"content_hash": "298c9e73f317c58a4e9e59a8af594dab16ad25319bd8794566f4b78982b45e0b", "fetched_at": "2026-08-29T09:37:15.431775+00:00", "kind": "homepage", "missing": false, "url": "http://kennethcachia.com/background-check/"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:24:26.014890+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a78cbd0400a8b3c3a1d74da0bd03a5cb94627567a456df632ff0fd20d24cd7a2", "fetched_at": "2026-08-28T04:07:52.039855+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kennethcachia/background-check"}, {"content_hash": "298c9e73f317c58a4e9e59a8af594dab16ad25319bd8794566f4b78982b45e0b", "fetched_at": "2026-08-29T09:37:15.431775+00:00", "kind": "homepage", "missing": false, "url": "http://kennethcachia.com/background-check/"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:24:26.014890+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a78cbd0400a8b3c3a1d74da0bd03a5cb94627567a456df632ff0fd20d24cd7a2", "fetched_at": "2026-08-28T04:07:52.039855+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kennethcachia/background-check"}, {"content_hash": "298c9e73f317c58a4e9e59a8af594dab16ad25319bd8794566f4b78982b45e0b", "fetched_at": "2026-08-29T09:37:15.431775+00:00", "kind": "homepage", "missing": false, "url": "http://kennethcachia.com/background-check/"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:24:26.014890+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a78cbd0400a8b3c3a1d74da0bd03a5cb94627567a456df632ff0fd20d24cd7a2", "fetched_at": "2026-08-28T04:07:52.039855+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kennethcachia/background-check"}, {"content_hash": "298c9e73f317c58a4e9e59a8af594dab16ad25319bd8794566f4b78982b45e0b", "fetched_at": "2026-08-29T09:37:15.431775+00:00", "kind": "homepage", "missing": false, "url": "http://kennethcachia.com/background-check/"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:24:26.014890+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a78cbd0400a8b3c3a1d74da0bd03a5cb94627567a456df632ff0fd20d24cd7a2", "fetched_at": "2026-08-28T04:07:52.039855+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kennethcachia/background-check"}, {"content_hash": "298c9e73f317c58a4e9e59a8af594dab16ad25319bd8794566f4b78982b45e0b", "fetched_at": "2026-08-29T09:37:15.431775+00:00", "kind": "homepage", "missing": false, "url": "http://kennethcachia.com/background-check/"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:24:26.014890+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a78cbd0400a8b3c3a1d74da0bd03a5cb94627567a456df632ff0fd20d24cd7a2", "fetched_at": "2026-08-28T04:07:52.039855+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kennethcachia/background-check"}, {"content_hash": "298c9e73f317c58a4e9e59a8af594dab16ad25319bd8794566f4b78982b45e0b", "fetched_at": "2026-08-29T09:37:15.431775+00:00", "kind": "homepage", "missing": false, "url": "http://kennethcachia.com/background-check/"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:52.039855+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:24:26.014890+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a78cbd0400a8b3c3a1d74da0bd03a5cb94627567a456df632ff0fd20d24cd7a2", "fetched_at": "2026-08-28T04:07:52.039855+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kennethcachia/background-check"}, {"content_hash": "298c9e73f317c58a4e9e59a8af594dab16ad25319bd8794566f4b78982b45e0b", "fetched_at": "2026-08-29T09:37:15.431775+00:00", "kind": "homepage", "missing": false, "url": "http://kennethcachia.com/background-check/"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:24:26.014890+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a78cbd0400a8b3c3a1d74da0bd03a5cb94627567a456df632ff0fd20d24cd7a2", "fetched_at": "2026-08-28T04:07:52.039855+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kennethcachia/background-check"}, {"content_hash": "298c9e73f317c58a4e9e59a8af594dab16ad25319bd8794566f4b78982b45e0b", "fetched_at": "2026-08-29T09:37:15.431775+00:00", "kind": "homepage", "missing": false, "url": "http://kennethcachia.com/background-check/"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:24:26.014890+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a78cbd0400a8b3c3a1d74da0bd03a5cb94627567a456df632ff0fd20d24cd7a2", "fetched_at": "2026-08-28T04:07:52.039855+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kennethcachia/background-check"}, {"content_hash": "298c9e73f317c58a4e9e59a8af594dab16ad25319bd8794566f4b78982b45e0b", "fetched_at": "2026-08-29T09:37:15.431775+00:00", "kind": "homepage", "missing": false, "url": "http://kennethcachia.com/background-check/"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:24:26.014890+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a78cbd0400a8b3c3a1d74da0bd03a5cb94627567a456df632ff0fd20d24cd7a2", "fetched_at": "2026-08-28T04:07:52.039855+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kennethcachia/background-check"}, {"content_hash": "298c9e73f317c58a4e9e59a8af594dab16ad25319bd8794566f4b78982b45e0b", "fetched_at": "2026-08-29T09:37:15.431775+00:00", "kind": "homepage", "missing": false, "url": "http://kennethcachia.com/background-check/"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4735, "days_push": 1487, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}