qmetrics.net

clipboard.js

Lightweight copy-to-clipboard JavaScript library

Frameworks & PlatformsNo commits in 18+ monthsDesktop/CLI app

clipboard.js has had no code changes for over 18 months (last commit 3 years ago).

clipboard.js screenshot

clipboard.js wires copy and cut actions to buttons using data attributes or a small imperative API. It relies on modern Selection and execCommand APIs without Flash.

Overview

clipboard.js is a browser library that copies or cuts text from triggers you define with CSS selectors or DOM nodes. It targets pages that need a compact, dependency-free clipboard helper rather than a full UI framework.

Setup loads a built script from dist or a CDN, then instantiates ClipboardJS on selectors. Declarative data-clipboard-target, data-clipboard-text, and data-clipboard-action attributes bind triggers to source elements or inline strings. Cut actions apply only where the platform allows cutting from inputs or text areas.

Event delegation keeps memory use low when many matching elements exist. Success and error events let applications show feedback or fall back to keyboard hints on older browsers. An imperative API returns dynamic targets or text without changing markup, and destroy cleans listeners for single-page apps.

The library ships no CSS or tooltips; demos reference external styling. A separate browser extension adds copy buttons on popular documentation sites.

Key features

  • Copy from elements or attributes
  • Cut support where allowed
  • Event delegation
  • Success and error events
  • Imperative target functions
  • Modal container option
  • Graceful older-browser fallback
  • Support detection helper

Use cases

  • Copy buttons on documentation sites
  • Code block clipboard actions
  • Forms copying generated values
  • Dashboards sharing links or IDs
  • SPAs with dynamic copy targets

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT