{"adoption": {"forks": 222, "observed_at": "2026-08-28T04:03:21.410432+00:00", "stars": 1045}, "canonical_url": "https://ross.abutalabs.com/products/copy-text-to-clipboard", "card": {"archived": false, "artifact_type": "library", "description": "Copy text to the clipboard in modern browsers (0.2 kB)", "domain": ["web-development", "frontend", "browser-extensions"], "enriched": true, "function": ["ui-components"], "health_score": 74, "homepage": null, "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["sindresorhus/copy-text-to-clipboard"], "name": "sindresorhus/copy-text-to-clipboard", "platform": ["browser"], "pushed_at": "2026-02-02T12:31:39+00:00", "repo": "sindresorhus/copy-text-to-clipboard", "stars": 1045, "tags": ["clipboard", "copy-to-clipboard", "tiny", "zero-dependency", "browser-api", "javascript"], "topics": [], "urls": [], "use_cases": ["copy text to clipboard on button click in a web app", "clipboard copy fallback for non-HTTPS sites", "copy code snippets to clipboard in documentation sites", "copy text inside a modal with a focus trap", "lightweight alternative to clipboard.js"], "what_it_is": "A tiny (0.2 kB) JavaScript library for copying text to the clipboard in modern browsers. It works in non-secure contexts where the native navigator.clipboard API is unavailable.", "when_to_avoid": ["you only target secure contexts and can use navigator.clipboard.writeText directly", "you need clipboard access in Node.js (use clipboardy instead)", "you need copy/paste of rich content like images or HTML"], "when_to_choose": ["you need a minimal, dependency-free clipboard copy solution for the browser", "your site runs in non-secure contexts (HTTP) where navigator.clipboard is unavailable", "you need to copy text from within a focus trap like a modal"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/copy-text-to-clipboard", "repo": "sindresorhus/copy-text-to-clipboard", "role": "main", "score": 66}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:02:08.334381+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "12efbf45f4110e4c2408ce7a8bed5e2598d47c26d233f422f7abb0c5512aa864", "fetched_at": "2026-08-28T04:03:21.410432+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/copy-text-to-clipboard"}, {"content_hash": "41aa83d22810714e001b94754cc98f2ab7a99d0b4b2edde20a78a8155e4cff62", "fetched_at": "2026-08-29T13:03:02.024301+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/copy-text-to-clipboard"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:02:08.334381+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "12efbf45f4110e4c2408ce7a8bed5e2598d47c26d233f422f7abb0c5512aa864", "fetched_at": "2026-08-28T04:03:21.410432+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/copy-text-to-clipboard"}, {"content_hash": "41aa83d22810714e001b94754cc98f2ab7a99d0b4b2edde20a78a8155e4cff62", "fetched_at": "2026-08-29T13:03:02.024301+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/copy-text-to-clipboard"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:02:08.334381+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "12efbf45f4110e4c2408ce7a8bed5e2598d47c26d233f422f7abb0c5512aa864", "fetched_at": "2026-08-28T04:03:21.410432+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/copy-text-to-clipboard"}, {"content_hash": "41aa83d22810714e001b94754cc98f2ab7a99d0b4b2edde20a78a8155e4cff62", "fetched_at": "2026-08-29T13:03:02.024301+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/copy-text-to-clipboard"}], "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:03:21.410432+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:02:08.334381+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "12efbf45f4110e4c2408ce7a8bed5e2598d47c26d233f422f7abb0c5512aa864", "fetched_at": "2026-08-28T04:03:21.410432+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/copy-text-to-clipboard"}, {"content_hash": "41aa83d22810714e001b94754cc98f2ab7a99d0b4b2edde20a78a8155e4cff62", "fetched_at": "2026-08-29T13:03:02.024301+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/copy-text-to-clipboard"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:02:08.334381+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "12efbf45f4110e4c2408ce7a8bed5e2598d47c26d233f422f7abb0c5512aa864", "fetched_at": "2026-08-28T04:03:21.410432+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/copy-text-to-clipboard"}, {"content_hash": "41aa83d22810714e001b94754cc98f2ab7a99d0b4b2edde20a78a8155e4cff62", "fetched_at": "2026-08-29T13:03:02.024301+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/copy-text-to-clipboard"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:02:08.334381+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "12efbf45f4110e4c2408ce7a8bed5e2598d47c26d233f422f7abb0c5512aa864", "fetched_at": "2026-08-28T04:03:21.410432+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/copy-text-to-clipboard"}, {"content_hash": "41aa83d22810714e001b94754cc98f2ab7a99d0b4b2edde20a78a8155e4cff62", "fetched_at": "2026-08-29T13:03:02.024301+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/copy-text-to-clipboard"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:21.410432+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:02:08.334381+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "12efbf45f4110e4c2408ce7a8bed5e2598d47c26d233f422f7abb0c5512aa864", "fetched_at": "2026-08-28T04:03:21.410432+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/copy-text-to-clipboard"}, {"content_hash": "41aa83d22810714e001b94754cc98f2ab7a99d0b4b2edde20a78a8155e4cff62", "fetched_at": "2026-08-29T13:03:02.024301+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/copy-text-to-clipboard"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:02:08.334381+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "12efbf45f4110e4c2408ce7a8bed5e2598d47c26d233f422f7abb0c5512aa864", "fetched_at": "2026-08-28T04:03:21.410432+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/copy-text-to-clipboard"}, {"content_hash": "41aa83d22810714e001b94754cc98f2ab7a99d0b4b2edde20a78a8155e4cff62", "fetched_at": "2026-08-29T13:03:02.024301+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/copy-text-to-clipboard"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:02:08.334381+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "12efbf45f4110e4c2408ce7a8bed5e2598d47c26d233f422f7abb0c5512aa864", "fetched_at": "2026-08-28T04:03:21.410432+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/copy-text-to-clipboard"}, {"content_hash": "41aa83d22810714e001b94754cc98f2ab7a99d0b4b2edde20a78a8155e4cff62", "fetched_at": "2026-08-29T13:03:02.024301+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/copy-text-to-clipboard"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:02:08.334381+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "12efbf45f4110e4c2408ce7a8bed5e2598d47c26d233f422f7abb0c5512aa864", "fetched_at": "2026-08-28T04:03:21.410432+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sindresorhus/copy-text-to-clipboard"}, {"content_hash": "41aa83d22810714e001b94754cc98f2ab7a99d0b4b2edde20a78a8155e4cff62", "fetched_at": "2026-08-29T13:03:02.024301+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/copy-text-to-clipboard"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 65, "longevity": 100, "rhythm": 48}, "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": 3390, "days_push": 212, "days_rel": 344, "gap_med": 15, "n_releases_24m": 2}, "score": 66, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}