{"adoption": {"forks": 75, "observed_at": "2026-08-28T04:04:02.962361+00:00", "stars": 1225}, "canonical_url": "https://ross.abutalabs.com/products/dark-mode-toggle", "card": {"archived": false, "artifact_type": "library", "description": "A custom element that allows you to easily put a Dark Mode 🌒 toggle or switch on your site:", "domain": ["web-development", "frontend", "web-design", "accessibility"], "enriched": true, "function": ["ui-components", "frontend-framework", "theme"], "health_score": 94, "homepage": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html", "language": "JavaScript", "license": "Apache-2.0", "license_family": "permissive", "maturity": "stable", "member_repos": ["GoogleChromeLabs/dark-mode-toggle"], "name": "GoogleChromeLabs/dark-mode-toggle", "platform": ["browser"], "pushed_at": "2026-08-05T15:31:16+00:00", "repo": "GoogleChromeLabs/dark-mode-toggle", "stars": 1225, "tags": ["web-components", "custom-elements", "dark-mode", "prefers-color-scheme", "theme-switcher", "web-server"], "topics": ["dark-mode", "dark-theme", "dark-mode-switcher", "dark-mode-toggle", "dark-theme-switcher", "dark-theme-toggle", "prefers-color-scheme", "web-components", "custom-elements", "custom-elements-v1", "supported-color", "media-queries"], "urls": [], "use_cases": ["add a dark mode toggle to my website", "let users switch between light and dark themes", "respect prefers-color-scheme but allow manual override", "remember a user's theme choice across visits", "conditionally load light and dark stylesheets", "avoid theme flashing on page load"], "what_it_is": "A web component (custom element) called <dark-mode-toggle> that adds a dark mode toggle or switch to any website. It respects the user's prefers-color-scheme system preference while allowing per-site overrides, optionally persisted.", "when_to_avoid": ["your site uses a framework with its own built-in theming solution", "you need server-side theme rendering or cookie-based persistence", "you don't use web components and prefer a plain JS or CSS-only approach", "you need complex multi-theme (beyond light/dark) support"], "when_to_choose": ["you want a drop-in, framework-agnostic web component for theme switching", "your site organizes CSS into light/dark stylesheets loaded via media queries", "you need to persist user theme preference in localStorage", "you value a small, performance-optimized solution from a trusted source"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/dark-mode-toggle", "repo": "GoogleChromeLabs/dark-mode-toggle", "role": "main", "score": 73}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:15:22.147936+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f541b4eb18abedb7d5d58ebda5ee88baa710a0ec01e28fdea1d24b8c78353456", "fetched_at": "2026-08-28T04:04:02.962361+00:00", "kind": "readme", "missing": false, "url": "https://github.com/GoogleChromeLabs/dark-mode-toggle"}, {"content_hash": "9711a1344800430740828e8d482508c523ff232cbe65fb6cacd8fc9aafc1dd43", "fetched_at": "2026-08-29T12:23:15.700376+00:00", "kind": "homepage", "missing": false, "url": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html"}, {"content_hash": "dd687b484f8a221c779cfacc2faeb71b78f4f76aebcb9f2946cae30e11bdd1cd", "fetched_at": "2026-08-29T12:23:15.709272+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/dark-mode-toggle"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:15:22.147936+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f541b4eb18abedb7d5d58ebda5ee88baa710a0ec01e28fdea1d24b8c78353456", "fetched_at": "2026-08-28T04:04:02.962361+00:00", "kind": "readme", "missing": false, "url": "https://github.com/GoogleChromeLabs/dark-mode-toggle"}, {"content_hash": "9711a1344800430740828e8d482508c523ff232cbe65fb6cacd8fc9aafc1dd43", "fetched_at": "2026-08-29T12:23:15.700376+00:00", "kind": "homepage", "missing": false, "url": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html"}, {"content_hash": "dd687b484f8a221c779cfacc2faeb71b78f4f76aebcb9f2946cae30e11bdd1cd", "fetched_at": "2026-08-29T12:23:15.709272+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/dark-mode-toggle"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:15:22.147936+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f541b4eb18abedb7d5d58ebda5ee88baa710a0ec01e28fdea1d24b8c78353456", "fetched_at": "2026-08-28T04:04:02.962361+00:00", "kind": "readme", "missing": false, "url": "https://github.com/GoogleChromeLabs/dark-mode-toggle"}, {"content_hash": "9711a1344800430740828e8d482508c523ff232cbe65fb6cacd8fc9aafc1dd43", "fetched_at": "2026-08-29T12:23:15.700376+00:00", "kind": "homepage", "missing": false, "url": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html"}, {"content_hash": "dd687b484f8a221c779cfacc2faeb71b78f4f76aebcb9f2946cae30e11bdd1cd", "fetched_at": "2026-08-29T12:23:15.709272+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/dark-mode-toggle"}], "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:02.962361+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:15:22.147936+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f541b4eb18abedb7d5d58ebda5ee88baa710a0ec01e28fdea1d24b8c78353456", "fetched_at": "2026-08-28T04:04:02.962361+00:00", "kind": "readme", "missing": false, "url": "https://github.com/GoogleChromeLabs/dark-mode-toggle"}, {"content_hash": "9711a1344800430740828e8d482508c523ff232cbe65fb6cacd8fc9aafc1dd43", "fetched_at": "2026-08-29T12:23:15.700376+00:00", "kind": "homepage", "missing": false, "url": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html"}, {"content_hash": "dd687b484f8a221c779cfacc2faeb71b78f4f76aebcb9f2946cae30e11bdd1cd", "fetched_at": "2026-08-29T12:23:15.709272+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/dark-mode-toggle"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:15:22.147936+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f541b4eb18abedb7d5d58ebda5ee88baa710a0ec01e28fdea1d24b8c78353456", "fetched_at": "2026-08-28T04:04:02.962361+00:00", "kind": "readme", "missing": false, "url": "https://github.com/GoogleChromeLabs/dark-mode-toggle"}, {"content_hash": "9711a1344800430740828e8d482508c523ff232cbe65fb6cacd8fc9aafc1dd43", "fetched_at": "2026-08-29T12:23:15.700376+00:00", "kind": "homepage", "missing": false, "url": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html"}, {"content_hash": "dd687b484f8a221c779cfacc2faeb71b78f4f76aebcb9f2946cae30e11bdd1cd", "fetched_at": "2026-08-29T12:23:15.709272+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/dark-mode-toggle"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:15:22.147936+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f541b4eb18abedb7d5d58ebda5ee88baa710a0ec01e28fdea1d24b8c78353456", "fetched_at": "2026-08-28T04:04:02.962361+00:00", "kind": "readme", "missing": false, "url": "https://github.com/GoogleChromeLabs/dark-mode-toggle"}, {"content_hash": "9711a1344800430740828e8d482508c523ff232cbe65fb6cacd8fc9aafc1dd43", "fetched_at": "2026-08-29T12:23:15.700376+00:00", "kind": "homepage", "missing": false, "url": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html"}, {"content_hash": "dd687b484f8a221c779cfacc2faeb71b78f4f76aebcb9f2946cae30e11bdd1cd", "fetched_at": "2026-08-29T12:23:15.709272+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/dark-mode-toggle"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:02.962361+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:15:22.147936+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f541b4eb18abedb7d5d58ebda5ee88baa710a0ec01e28fdea1d24b8c78353456", "fetched_at": "2026-08-28T04:04:02.962361+00:00", "kind": "readme", "missing": false, "url": "https://github.com/GoogleChromeLabs/dark-mode-toggle"}, {"content_hash": "9711a1344800430740828e8d482508c523ff232cbe65fb6cacd8fc9aafc1dd43", "fetched_at": "2026-08-29T12:23:15.700376+00:00", "kind": "homepage", "missing": false, "url": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html"}, {"content_hash": "dd687b484f8a221c779cfacc2faeb71b78f4f76aebcb9f2946cae30e11bdd1cd", "fetched_at": "2026-08-29T12:23:15.709272+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/dark-mode-toggle"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:15:22.147936+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f541b4eb18abedb7d5d58ebda5ee88baa710a0ec01e28fdea1d24b8c78353456", "fetched_at": "2026-08-28T04:04:02.962361+00:00", "kind": "readme", "missing": false, "url": "https://github.com/GoogleChromeLabs/dark-mode-toggle"}, {"content_hash": "9711a1344800430740828e8d482508c523ff232cbe65fb6cacd8fc9aafc1dd43", "fetched_at": "2026-08-29T12:23:15.700376+00:00", "kind": "homepage", "missing": false, "url": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html"}, {"content_hash": "dd687b484f8a221c779cfacc2faeb71b78f4f76aebcb9f2946cae30e11bdd1cd", "fetched_at": "2026-08-29T12:23:15.709272+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/dark-mode-toggle"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:15:22.147936+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f541b4eb18abedb7d5d58ebda5ee88baa710a0ec01e28fdea1d24b8c78353456", "fetched_at": "2026-08-28T04:04:02.962361+00:00", "kind": "readme", "missing": false, "url": "https://github.com/GoogleChromeLabs/dark-mode-toggle"}, {"content_hash": "9711a1344800430740828e8d482508c523ff232cbe65fb6cacd8fc9aafc1dd43", "fetched_at": "2026-08-29T12:23:15.700376+00:00", "kind": "homepage", "missing": false, "url": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html"}, {"content_hash": "dd687b484f8a221c779cfacc2faeb71b78f4f76aebcb9f2946cae30e11bdd1cd", "fetched_at": "2026-08-29T12:23:15.709272+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/dark-mode-toggle"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:15:22.147936+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f541b4eb18abedb7d5d58ebda5ee88baa710a0ec01e28fdea1d24b8c78353456", "fetched_at": "2026-08-28T04:04:02.962361+00:00", "kind": "readme", "missing": false, "url": "https://github.com/GoogleChromeLabs/dark-mode-toggle"}, {"content_hash": "9711a1344800430740828e8d482508c523ff232cbe65fb6cacd8fc9aafc1dd43", "fetched_at": "2026-08-29T12:23:15.700376+00:00", "kind": "homepage", "missing": false, "url": "https://googlechromelabs.github.io/dark-mode-toggle/demo/index.html"}, {"content_hash": "dd687b484f8a221c779cfacc2faeb71b78f4f76aebcb9f2946cae30e11bdd1cd", "fetched_at": "2026-08-29T12:23:15.709272+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/dark-mode-toggle"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 96, "longevity": 100, "rhythm": 28}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2637, "days_push": 28, "days_rel": 264, "gap_med": 212, "n_releases_24m": 4}, "score": 73, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}