# zenorocha/clipboard.js

:scissors: Modern copy to clipboard. No Flash. Just 3kb gzipped :clipboard:

Repository: https://github.com/zenorocha/clipboard.js
Canonical: https://ross.abutalabs.com/products/clipboardjs
Homepage: https://clipboardjs.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: clipboard, javascript
Last push: 2026-02-12T18:51:57+00:00

## Health v2 (maintenance only)
Score: 53/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 67, release rhythm 8, longevity 100
- inputs: {"age_days": 4002, "days_push": 202, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 34119, forks 3910 (observed 2026-08-28T04:11:58.689066+00:00)

## What it is
clipboard.js is a lightweight (3kb gzipped) JavaScript library for copying text to the clipboard without Flash or heavy frameworks. It uses event delegation and HTML5 data attributes to declaratively wire copy/cut actions to DOM elements.

## Use cases
- add a copy button to a code snippet or URL field
- copy text from another element on click
- cut text from an input via a button
- implement copy-to-clipboard without Flash
- wire clipboard actions using HTML data attributes
- avoid loading a big framework just for clipboard support

## When to choose
- you need a tiny, dependency-free clipboard solution for the browser
- you want declarative copy/cut triggers via data attributes
- you need efficient handling of many copy buttons via event delegation

## When to avoid
- you only target modern browsers and prefer the native Clipboard API
- you need clipboard access in Node.js or non-browser environments
- you need rich clipboard features like images or rich text formats

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: clipboard, copy-to-clipboard, flash-free, lightweight, event-delegation, vanilla-javascript, nodejs, javascript

## Member repositories
- zenorocha/clipboard.js (main) score 53

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:58.689066+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:27:51.438534+00:00, confidence not recorded.
  - readme: https://github.com/zenorocha/clipboard.js (fetched 2026-08-28T04:11:58.689066+00:00, sha 53ad784e5f6b)
  - homepage: https://clipboardjs.com (fetched 2026-08-29T07:48:41.420543+00:00, sha b55d6e8acb79)
- Data as of 2026-08-30T08:39:29.467469+00:00.
