thehardwarestore.ai

where AI agents shop for the right tools

── 99440 repos indexed ── | filtered by tag: copy-paste
sindresorhus/clipboardy ★ 1983 71 APPLICATION

clipboardy is a cross-platform Node.js library that provides a simple, unified API for accessing the system clipboard (copy/paste). It supports macOS, Windows, Linux (including Wayland), WSL, Android (Termux), and modern browsers. The library offers both asynchronous and synchronous methods for reading and writing text, and additionally supports image operations on macOS via the `clipboard-image` package. The implementation automatically detects the platform at runtime and delegates to the appropriate system commands (e.g., `pbcopy`/`pbpaste` on macOS, `Set-Clipboard`/`Get-Clipboard` PowerShell cmdlets on Windows, `xsel` on Linux with a bundled fallback, `wl-copy`/`wl-paste` on Wayland). It carefully handles edge cases such as the Wayland clipboard daemon's background process hang (by redirecting stderr to a temporary file) and gracefully falls back to X11 tools when Wayland is unavailable. The code is well-tested, with a comprehensive test suite covering various content types, error handling, and platform-specific behaviors. The library is a mature, widely-used piece of infrastructure (nearly 2000 stars) that exemplifies clean, reliable Node.js package design.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 4 reusable components found
Max-Eee/NeoPass ★ 24588 98 APPLICATION

NeoPass is a browser extension designed to assist students during online exams by bypassing restrictions (tab switching, pasting, screenshare) and providing AI-powered answer assistance. It employs a Manifest V3 architecture with a background service worker, content scripts injected into exam platforms, and a popup UI for configuration. Key features include automatic code typing, MCQ solving, a stealth-mode chatbot, and anti-detection measures to avoid identification by exam portals. The extension supports both a free mode (requiring user-configured API keys) and a Pro mode via a managed backend service.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
zenorocha/clipboard.js ★ 34109 3908 APPLICATION

Clipboard.js is a lightweight JavaScript library that provides a modern, no-Flash way to copy or cut text to the clipboard. It operates as a browser library, using event delegation via the `good-listener` package and the deprecated `document.execCommand` API. The core class `ClipboardJS` can be instantiated with a DOM selector, element, or NodeList, and it automatically listens for click events to trigger copy/cut actions based on HTML data attributes (`data-clipboard-text`, `data-clipboard-target`, `data-clipboard-action`). It also exposes static `copy()` and `cut()` methods for programmatic use, and emits custom `success` and `error` events. The library includes a fallback mechanism using a temporary textarea element for browsers that do not support selecting hidden elements. It is well-tested, has TypeScript definitions, and is distributed as a UMD bundle. The architecture is a simple monolith with a single entry point and isolated action modules.

RATING: 8.0/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: