https://github.com/ru44/cloudyclipy
Your own clipboard in the cloud
https://github.com/ru44/cloudyclipy
cli clipboard-manager gist github nodejs typescript
Last synced: 9 months ago
JSON representation
Your own clipboard in the cloud
- Host: GitHub
- URL: https://github.com/ru44/cloudyclipy
- Owner: ru44
- License: mit
- Created: 2024-11-21T05:55:39.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-22T07:07:00.000Z (about 1 year ago)
- Last Synced: 2025-04-14T23:18:34.176Z (10 months ago)
- Topics: cli, clipboard-manager, gist, github, nodejs, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/cclip
- Size: 119 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CloudyClipy
Your own clipboard in the cloud
it use gist to store your clipboard data inspired by [CloudClip](https://github.com/skywind3000/CloudClip)
## prerequisites
- nodejs
- npm or yarn or pnpm or bun
- github account
- generate a github token
## Installation
```bash
npm i -g cclip
or
yarn global add cclip
or
npx cclip
or
pnpm add -g cclip
or
bun install -g cclip
```
## Usage
so first you need to create a github token
A github access token is needed before everything, you can generate a new one from:
then you can use the following commands
```bash
cclip init "your-github-token"
```
it will generate a config file in your home directory with the gist id
after that you can use the following commands
when you want to copy something
```bash
cclip copy "the name of gist"
```
when you want to paste something
```bash
cclip paste "the name of gist"
```
for more information you can use
```bash
cclip --help
```
now you will have in your clipboard the content of the gist
## Troubleshooting
if you faced this issue with paste and looks like this
```bash
Command failed: C:\Users\Yourusername\WhereYouSavedYourClipBoard\node_modules\.pnpm\clipboardy@4.0.0\node_modules\clipboardy\fallbacks\windows\clipboard_x86_64.exe --paste thread 'main' panicked at 'Error: Could not paste from clipboard: Error { repr: Os { code: 0, message: "The operation completed successfully." } }', src\libcore\result.rs:906:4 note: Run with RUST_BACKTRACE=1 for a backtrace.
```
You will find the path where the clipboard_x86_64.exe is located in the error and try to do this
[github issue](https://github.com/sindresorhus/clipboardy/issues/42#issuecomment-2552941150)
C:\Users\Yourusername\WhereYouSavedYourClipBoard\node_modules\.pnpm\clipboardy@4.0.0\node_modules\clipboardy\fallbacks\windows\clipboard_x86_64.exe