{"adoption": {"forks": 89, "observed_at": "2026-08-28T04:06:28.901016+00:00", "stars": 2228}, "canonical_url": "https://ross.abutalabs.com/products/foresightjs", "card": {"archived": false, "artifact_type": "library", "description": "DEPRECATED: Prior to recent developments with the picture element, Foresight.js gaves webpages the ability to tell if the user's device is capable of viewing high-resolution images before the image is requested from the server. Additionally, it judges if the user's device currently has a fast enough network connection for high-resolution images. Depending on device display and network connectivity, foresight.js will request the appropriate image for the webpage.", "domain": ["web-development", "frontend", "image-processing", "performance"], "enriched": true, "function": ["image-processing", "http-client"], "health_score": 20, "homepage": null, "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "abandoned", "member_repos": ["adamdbradley/foresight.js"], "name": "adamdbradley/foresight.js", "platform": ["browser"], "pushed_at": "2014-09-10T19:54:15+00:00", "repo": "adamdbradley/foresight.js", "stars": 2228, "tags": ["responsive-images", "retina", "deprecated", "network-detection", "device-pixel-ratio", "image-set", "javascript"], "topics": [], "urls": [], "use_cases": ["serve retina images only to devices that support them", "avoid wasting bandwidth on slow network connections", "detect device pixel ratio before requesting images", "manage hi-res image variants across a site from one config", "estimate network connection speed in the browser"], "what_it_is": "Foresight.js is a JavaScript library that detects whether a user's device has a high-resolution display and a fast enough network connection before requesting images, then loads the appropriate image variant. It is now deprecated in favor of the native HTML picture element and polyfills like picturefill.", "when_to_avoid": ["starting any new project - it is deprecated", "modern browsers that support the native picture element and srcset", "projects where picturefill or native responsive images suffice"], "when_to_choose": ["maintaining a legacy codebase that already uses foresight.js", "supporting very old browsers that lack the picture element and cannot use picturefill"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/foresightjs", "repo": "adamdbradley/foresight.js", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:44:42.111124+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "565fd1c1b9e474c00aac40f7be04d87875b8b3d4e77d1f5962aeea7b2d2623c6", "fetched_at": "2026-08-28T04:06:28.901016+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adamdbradley/foresight.js"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:44:42.111124+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "565fd1c1b9e474c00aac40f7be04d87875b8b3d4e77d1f5962aeea7b2d2623c6", "fetched_at": "2026-08-28T04:06:28.901016+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adamdbradley/foresight.js"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:44:42.111124+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "565fd1c1b9e474c00aac40f7be04d87875b8b3d4e77d1f5962aeea7b2d2623c6", "fetched_at": "2026-08-28T04:06:28.901016+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adamdbradley/foresight.js"}], "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:06:28.901016+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:44:42.111124+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "565fd1c1b9e474c00aac40f7be04d87875b8b3d4e77d1f5962aeea7b2d2623c6", "fetched_at": "2026-08-28T04:06:28.901016+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adamdbradley/foresight.js"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:44:42.111124+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "565fd1c1b9e474c00aac40f7be04d87875b8b3d4e77d1f5962aeea7b2d2623c6", "fetched_at": "2026-08-28T04:06:28.901016+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adamdbradley/foresight.js"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:44:42.111124+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "565fd1c1b9e474c00aac40f7be04d87875b8b3d4e77d1f5962aeea7b2d2623c6", "fetched_at": "2026-08-28T04:06:28.901016+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adamdbradley/foresight.js"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:28.901016+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:44:42.111124+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "565fd1c1b9e474c00aac40f7be04d87875b8b3d4e77d1f5962aeea7b2d2623c6", "fetched_at": "2026-08-28T04:06:28.901016+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adamdbradley/foresight.js"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:44:42.111124+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "565fd1c1b9e474c00aac40f7be04d87875b8b3d4e77d1f5962aeea7b2d2623c6", "fetched_at": "2026-08-28T04:06:28.901016+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adamdbradley/foresight.js"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:44:42.111124+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "565fd1c1b9e474c00aac40f7be04d87875b8b3d4e77d1f5962aeea7b2d2623c6", "fetched_at": "2026-08-28T04:06:28.901016+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adamdbradley/foresight.js"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:44:42.111124+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "565fd1c1b9e474c00aac40f7be04d87875b8b3d4e77d1f5962aeea7b2d2623c6", "fetched_at": "2026-08-28T04:06:28.901016+00:00", "kind": "readme", "missing": false, "url": "https://github.com/adamdbradley/foresight.js"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 5286, "days_push": 4375, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}