npx skills add https://github.com/xixu-me/xdrop --skill xdrop使用此技能目录中的捆绑脚本。
scripts/upload.mjs — 将本地文件或目录上传到 Xdrop 服务器并打印分享链接scripts/download.mjs — 下载 Xdrop 分享链接,在本地解密并保存文件环境要求:
bun scripts/upload.mjs --server <xdrop-site-url> <file-or-directory> [...]
在相关情况下建议使用以下标志:
--quiet: 抑制进度输出,保持 stdout 干净--json: 返回 transferId、shareUrl 和 广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
expiresAt--expires-in <seconds>: 选择支持的过期时间--api-url <url>: 覆盖默认的 <server>/api/v1--name <value>: 设置传输显示名称--concurrency <n>: 限制每个文件的并行上传数量实用示例:
bun scripts/upload.mjs --server http://localhost:8080 ./dist/report.pdf
bun scripts/upload.mjs --server http://localhost:8080 --quiet ./archive.zip
bun scripts/upload.mjs --server http://localhost:8080 --expires-in 600 --json ./notes.txt
如果用户需要验证,可以上传一个小的临时文件,然后确认公共传输 API 或浏览器可以打开返回的链接。
需要完整的分享链接,包括 #k=...。没有片段密钥,传输内容将无法解密。
bun scripts/download.mjs "<share-url>"
在相关情况下建议使用以下标志:
--output <dir>: 选择目标目录--quiet: 抑制进度输出,保持 stdout 干净--json: 返回 transferId、outputRoot 和已保存的文件路径--api-url <url>: 覆盖默认的 <share-origin>/api/v1实用示例:
bun scripts/download.mjs "http://localhost:8080/t/abc123#k=..."
bun scripts/download.mjs --output ./downloads "http://localhost:8080/t/abc123#k=..."
bun scripts/download.mjs --quiet --json --output ./downloads "http://localhost:8080/t/abc123#k=..."
默认情况下,下载器会将文件写入 ./xdrop-<transferId> 并保留清单中的相对路径。
#k=... 片段的下载链接无法解密。请索取完整的原始分享 URL。--quiet。否则进度日志会输出到 stderr,但最终结果仍然重要。--quiet。每周安装量
1.4K
仓库
GitHub 星标数
3
首次出现
4 天前
安全审计
安装于
opencode1.4K
gemini-cli1.4K
github-copilot1.4K
codex1.4K
warp1.4K
amp1.4K
Use the bundled scripts inside this skill directory.
scripts/upload.mjs — Upload local files or directories to an Xdrop server and print the share linkscripts/download.mjs — Download an Xdrop share link, decrypt it locally, and save the filesEnvironment requirements:
bun scripts/upload.mjs --server <xdrop-site-url> <file-or-directory> [...]
Prefer these flags when relevant:
--quiet: suppress progress output and keep stdout clean--json: return transferId, shareUrl, and expiresAt--expires-in <seconds>: choose a supported expiry--api-url <url>: override the default <server>/api/v1--name <value>: set the transfer display name--concurrency <n>: limit parallel uploads per fileUseful examples:
bun scripts/upload.mjs --server http://localhost:8080 ./dist/report.pdf
bun scripts/upload.mjs --server http://localhost:8080 --quiet ./archive.zip
bun scripts/upload.mjs --server http://localhost:8080 --expires-in 600 --json ./notes.txt
If the user wants verification, upload a small temporary file and then confirm the public transfer API or browser can open the returned link.
Require the full share link, including #k=.... Without the fragment key, the transfer cannot be decrypted.
bun scripts/download.mjs "<share-url>"
Prefer these flags when relevant:
--output <dir>: choose the destination directory--quiet: suppress progress output and keep stdout clean--json: return transferId, outputRoot, and saved file paths--api-url <url>: override the default <share-origin>/api/v1Useful examples:
bun scripts/download.mjs "http://localhost:8080/t/abc123#k=..."
bun scripts/download.mjs --output ./downloads "http://localhost:8080/t/abc123#k=..."
bun scripts/download.mjs --quiet --json --output ./downloads "http://localhost:8080/t/abc123#k=..."
By default the downloader writes to ./xdrop-<transferId> and preserves the manifest's relative paths.
#k=... fragment is not decryptable. Ask for the full original share URL.--quiet whenever another command or caller needs to capture stdout. Progress logs otherwise go to stderr, but the final result still matters.--quiet when another command or script needs to capture stdout.Weekly Installs
1.4K
Repository
GitHub Stars
3
First Seen
4 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
opencode1.4K
gemini-cli1.4K
github-copilot1.4K
codex1.4K
warp1.4K
amp1.4K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装