MCPcopy Index your code
hub / github.com/Brooooooklyn/Clipboard

github.com/Brooooooklyn/Clipboard @v1.1.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.4 ↗ · + Follow
19 symbols 35 edges 5 files 4 documented · 21%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

@napi-rs/clipboard

🚀 Help me to become a full-time open-source developer by sponsoring me on Github

Manipulate Clipboard in Node.js via native API.

It's a Node.js binding for 1Password/aboard with additions from rgwood/clipboard-anywhere

install size Downloads

API

Text

import { Clipboard } from '@napi-rs/clipboard'

const clipboard = new Clipboard()

clipboard.setText('😅')
clipboard.getText() // '😅'

Image

import { join } from 'path'
import { fileURLToPath } from 'url'

import { Clipboard } from '@napi-rs/clipboard'
import { Transformer } from '@napi-rs/image'

const image = new Transformer(
  readFileSync(join(fileURLToPath(import.meta.url), '..', 'test.png'))
)
const { width, height } = await image.metadata()
const rawPixels = await image.rawPixels()
// Only accept raw RGBA pixels
clipboard.setImage(width, height, image)

// You can paste image now

Core symbols most depended-on inside this repo

isMusl
called by 5
index.js
inner
called by 4
src/lib.rs
isMuslFromFilesystem
called by 1
index.js
isMuslFromReport
called by 1
index.js
isMuslFromChildProcess
called by 1
index.js
requireNative
called by 1
index.js
set_clipboard_osc_52
called by 1
src/lib.rs
set_wsl_clipboard
called by 1
src/lib.rs

Shape

Function 10
Method 6
Class 3

Languages

Rust58%
TypeScript42%

Modules by API surface

src/lib.rs10 symbols
index.js6 symbols
index.d.ts2 symbols
build.rs1 symbols

For agents

$ claude mcp add Clipboard \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact