{"adoption": {"forks": 97, "observed_at": "2026-08-28T04:04:18.416844+00:00", "stars": 1303}, "canonical_url": "https://ross.abutalabs.com/products/react-resize-detector", "card": {"archived": false, "artifact_type": "library", "description": "A Cross-Browser, Event-based, Element Resize Detection for React", "domain": ["frontend", "web-development", "developer-tools"], "enriched": true, "function": ["ui-components", "frontend-framework"], "health_score": 80, "homepage": "http://maslianok.github.io/react-resize-detector/", "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["maslianok/react-resize-detector"], "name": "maslianok/react-resize-detector", "platform": ["browser", "cross-platform"], "pushed_at": "2026-04-19T21:06:58+00:00", "repo": "maslianok/react-resize-detector", "stars": 1303, "tags": ["react", "resize-observer", "hooks", "typescript", "responsive-layout", "nodejs"], "topics": ["react", "resize", "cross-browser", "resize-events", "resizeobserver", "react-resize-observer", "resizer", "resizeable", "resizes"], "urls": [], "use_cases": ["detect when a react element is resized", "get element width and height in react", "responsive component behavior based on container size", "run javascript logic on element dimension changes", "replace window resize listeners with element-level resize detection", "build responsive charts or layouts that adapt to their container"], "what_it_is": "A tiny (~2kb) TypeScript React library for detecting element size changes using the native ResizeObserver API. It provides a hook and component to react to element resizes without window resize listeners or timeouts.", "when_to_avoid": ["pure CSS container queries can solve your responsive styling needs", "you only need to react to window resizes rather than individual elements", "you are not using React"], "when_to_choose": ["you need JavaScript-based resize logic integrated with React state and effects", "you need complex calculations based on element dimensions", "CSS container queries are insufficient for your use case", "you want a tiny, widely-used, TypeScript-first solution"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/react-resize-detector", "repo": "maslianok/react-resize-detector", "role": "main", "score": 65}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:51:12.879247+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6ca7af68389359717642382e8f98f92626aef02ce32282561afdc56d9e61d80b", "fetched_at": "2026-08-28T04:04:18.416844+00:00", "kind": "readme", "missing": false, "url": "https://github.com/maslianok/react-resize-detector"}, {"content_hash": "e3f43543e979815bdf802c312ad5d751daa3902dd8d6205dceb57792d1c96fea", "fetched_at": "2026-08-29T12:09:30.018516+00:00", "kind": "homepage", "missing": false, "url": "http://maslianok.github.io/react-resize-detector/"}, {"content_hash": "1a4073bfade1653f7161051073d4115b5e42c67105a8bed32cfd8601a4659cbc", "fetched_at": "2026-08-29T12:09:30.027806+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-resize-detector"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:51:12.879247+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6ca7af68389359717642382e8f98f92626aef02ce32282561afdc56d9e61d80b", "fetched_at": "2026-08-28T04:04:18.416844+00:00", "kind": "readme", "missing": false, "url": "https://github.com/maslianok/react-resize-detector"}, {"content_hash": "e3f43543e979815bdf802c312ad5d751daa3902dd8d6205dceb57792d1c96fea", "fetched_at": "2026-08-29T12:09:30.018516+00:00", "kind": "homepage", "missing": false, "url": "http://maslianok.github.io/react-resize-detector/"}, {"content_hash": "1a4073bfade1653f7161051073d4115b5e42c67105a8bed32cfd8601a4659cbc", "fetched_at": "2026-08-29T12:09:30.027806+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-resize-detector"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:51:12.879247+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6ca7af68389359717642382e8f98f92626aef02ce32282561afdc56d9e61d80b", "fetched_at": "2026-08-28T04:04:18.416844+00:00", "kind": "readme", "missing": false, "url": "https://github.com/maslianok/react-resize-detector"}, {"content_hash": "e3f43543e979815bdf802c312ad5d751daa3902dd8d6205dceb57792d1c96fea", "fetched_at": "2026-08-29T12:09:30.018516+00:00", "kind": "homepage", "missing": false, "url": "http://maslianok.github.io/react-resize-detector/"}, {"content_hash": "1a4073bfade1653f7161051073d4115b5e42c67105a8bed32cfd8601a4659cbc", "fetched_at": "2026-08-29T12:09:30.027806+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-resize-detector"}], "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:04:18.416844+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:51:12.879247+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6ca7af68389359717642382e8f98f92626aef02ce32282561afdc56d9e61d80b", "fetched_at": "2026-08-28T04:04:18.416844+00:00", "kind": "readme", "missing": false, "url": "https://github.com/maslianok/react-resize-detector"}, {"content_hash": "e3f43543e979815bdf802c312ad5d751daa3902dd8d6205dceb57792d1c96fea", "fetched_at": "2026-08-29T12:09:30.018516+00:00", "kind": "homepage", "missing": false, "url": "http://maslianok.github.io/react-resize-detector/"}, {"content_hash": "1a4073bfade1653f7161051073d4115b5e42c67105a8bed32cfd8601a4659cbc", "fetched_at": "2026-08-29T12:09:30.027806+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-resize-detector"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:51:12.879247+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6ca7af68389359717642382e8f98f92626aef02ce32282561afdc56d9e61d80b", "fetched_at": "2026-08-28T04:04:18.416844+00:00", "kind": "readme", "missing": false, "url": "https://github.com/maslianok/react-resize-detector"}, {"content_hash": "e3f43543e979815bdf802c312ad5d751daa3902dd8d6205dceb57792d1c96fea", "fetched_at": "2026-08-29T12:09:30.018516+00:00", "kind": "homepage", "missing": false, "url": "http://maslianok.github.io/react-resize-detector/"}, {"content_hash": "1a4073bfade1653f7161051073d4115b5e42c67105a8bed32cfd8601a4659cbc", "fetched_at": "2026-08-29T12:09:30.027806+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-resize-detector"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:51:12.879247+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6ca7af68389359717642382e8f98f92626aef02ce32282561afdc56d9e61d80b", "fetched_at": "2026-08-28T04:04:18.416844+00:00", "kind": "readme", "missing": false, "url": "https://github.com/maslianok/react-resize-detector"}, {"content_hash": "e3f43543e979815bdf802c312ad5d751daa3902dd8d6205dceb57792d1c96fea", "fetched_at": "2026-08-29T12:09:30.018516+00:00", "kind": "homepage", "missing": false, "url": "http://maslianok.github.io/react-resize-detector/"}, {"content_hash": "1a4073bfade1653f7161051073d4115b5e42c67105a8bed32cfd8601a4659cbc", "fetched_at": "2026-08-29T12:09:30.027806+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-resize-detector"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:18.416844+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:51:12.879247+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6ca7af68389359717642382e8f98f92626aef02ce32282561afdc56d9e61d80b", "fetched_at": "2026-08-28T04:04:18.416844+00:00", "kind": "readme", "missing": false, "url": "https://github.com/maslianok/react-resize-detector"}, {"content_hash": "e3f43543e979815bdf802c312ad5d751daa3902dd8d6205dceb57792d1c96fea", "fetched_at": "2026-08-29T12:09:30.018516+00:00", "kind": "homepage", "missing": false, "url": "http://maslianok.github.io/react-resize-detector/"}, {"content_hash": "1a4073bfade1653f7161051073d4115b5e42c67105a8bed32cfd8601a4659cbc", "fetched_at": "2026-08-29T12:09:30.027806+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-resize-detector"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:51:12.879247+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6ca7af68389359717642382e8f98f92626aef02ce32282561afdc56d9e61d80b", "fetched_at": "2026-08-28T04:04:18.416844+00:00", "kind": "readme", "missing": false, "url": "https://github.com/maslianok/react-resize-detector"}, {"content_hash": "e3f43543e979815bdf802c312ad5d751daa3902dd8d6205dceb57792d1c96fea", "fetched_at": "2026-08-29T12:09:30.018516+00:00", "kind": "homepage", "missing": false, "url": "http://maslianok.github.io/react-resize-detector/"}, {"content_hash": "1a4073bfade1653f7161051073d4115b5e42c67105a8bed32cfd8601a4659cbc", "fetched_at": "2026-08-29T12:09:30.027806+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-resize-detector"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:51:12.879247+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6ca7af68389359717642382e8f98f92626aef02ce32282561afdc56d9e61d80b", "fetched_at": "2026-08-28T04:04:18.416844+00:00", "kind": "readme", "missing": false, "url": "https://github.com/maslianok/react-resize-detector"}, {"content_hash": "e3f43543e979815bdf802c312ad5d751daa3902dd8d6205dceb57792d1c96fea", "fetched_at": "2026-08-29T12:09:30.018516+00:00", "kind": "homepage", "missing": false, "url": "http://maslianok.github.io/react-resize-detector/"}, {"content_hash": "1a4073bfade1653f7161051073d4115b5e42c67105a8bed32cfd8601a4659cbc", "fetched_at": "2026-08-29T12:09:30.027806+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-resize-detector"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:51:12.879247+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6ca7af68389359717642382e8f98f92626aef02ce32282561afdc56d9e61d80b", "fetched_at": "2026-08-28T04:04:18.416844+00:00", "kind": "readme", "missing": false, "url": "https://github.com/maslianok/react-resize-detector"}, {"content_hash": "e3f43543e979815bdf802c312ad5d751daa3902dd8d6205dceb57792d1c96fea", "fetched_at": "2026-08-29T12:09:30.018516+00:00", "kind": "homepage", "missing": false, "url": "http://maslianok.github.io/react-resize-detector/"}, {"content_hash": "1a4073bfade1653f7161051073d4115b5e42c67105a8bed32cfd8601a4659cbc", "fetched_at": "2026-08-29T12:09:30.027806+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-resize-detector"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 78, "longevity": 100, "rhythm": 28}, "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": 3940, "days_push": 136, "days_rel": 435, "gap_med": 84.5, "n_releases_24m": 3}, "score": 65, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}