[开源]分享自己做的一个文本/文件云剪切板工具, self-hosted,支持 cli

6 月 28 日
 yunyuyuan

go + react 写的一个云剪切板工具,功能特别特别简单,解决我自己的一个痛点:每次需要在一台陌生的电脑上 debug 时,无法很方便地把日志等信息转给我自己的电脑,像 localsend 这类工具不太适用。需要快速在两台设备上分享文本/文件时,没有顺手的工具,总是图方便用微信发给自己😅

另外我不想在我的电脑上安装一些第三方软件拦截我的剪切板,所以就考虑做一个非常简单纯粹的自建文本/文件上传下载工具。只有网页版和 cli 就行了。

主要特色是支持 cli ,在终端上可以方便上传文件

  1. 先跑 curl https://paste.example.com/help 获取帮助信息
  2. 帮助信息大概如下
    curl -fsSL https://paste.example.com/cli/anypaste-linux-amd64 -o anypaste

  Usage:

    anypaste login --server https://paste.example.com/api     Log in (prompts for the password)
    anypaste up -m "some text"             Create a text paste
    anypaste up ./report.pdf               Create a paste and upload a file
    anypaste ls                            List pastes
    anypaste down <id> -o ./out.pdf        Download a paste's file (id is enough)
    anypaste logout                        Forget the stored token

仅支持网页版,没有应用程序,网页版预览如下

开源地址: https://github.com/yunyuyuan/anypaste

1206 次点击
所在节点    分享创造
1 条回复
nocmt
6 月 29 日
试试我这个,https://fengling.nocmt.com/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1223488

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX