zenorocha/clipboard.js
:scissors: Modern copy to clipboard. No Flash. Just 3kb gzipped :clipboard: observed · 2026-08-28
Health v2 · maintenance only
53/100
- Activity 67
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4002
- days_rel: n/a
- days_push: 202
- n_releases_24m: 0
Adoption not part of the score
34119 stars · 3910 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
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
library · maturity stable
ui-components developer-tools web-development frontend developer-tools browser clipboard copy-to-clipboard flash-free lightweight event-delegation vanilla-javascript nodejs javascript
2 sources
- readme: https://github.com/zenorocha/clipboard.js · fetched 2026-08-28 · 53ad784e5f6b
- homepage: https://clipboardjs.com · fetched 2026-08-29 · b55d6e8acb79
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| zenorocha/clipboard.js | main | 53 |
For agents
markdown · JSON · MCP: product_card(name="zenorocha/clipboard.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem