Skip to content

v2.2.0 — Realtime SSE, CLI & iOS Shortcuts, PWA, and Bounded Memory

Choose a tag to compare

@github-actions github-actions released this 28 Nov 08:53
· 8 commits to main since this release

Highlights

  • Realtime SSE Notifications: Replaced 10-second HTTP status polling with instant Server-Sent Events (GET /api/v1/clipboard/events) so new clipboard updates light up across devices in milliseconds while automatically closing idle connections in background tabs.
  • CLI, SSH & iOS Shortcuts (Authorization: Bearer <TOKEN>): Synchronize text, command output, screenshots, and files directly from curl, headless SSH servers, shell aliases, or iOS Shortcuts — with automatic type/MIME inference and zero extra CLI binaries to install (Guide).
  • Standalone Desktop & Mobile PWA: Install GCopy to your macOS Dock, Windows taskbar, iOS Home Screen, or Android launcher. Ships with a privacy-first static-shell Service Worker that never caches /api/* clipboard data.
  • Bounded Memory with LRU Eviction (-max-memory / GCOPY_MAX_MEMORY): Caps total in-memory clipboard usage (default 512 MiB, 0 = unlimited) and evicts least-recently-used entries automatically to prevent OOM on small VPS and container instances.
  • Multi-Platform Single-Binary Releases & New Docs: Automated release archives for linux, darwin, and windows (amd64 / arm64) with checksums.txt, improved WebKit gesture compatibility on iOS, expanded backend/frontend unit tests, and a new bilingual documentation site at docs.gcopy.link.

版本亮点(中文说明)

  • 毫秒级 SSE 实时同步提示:用轻量 Server-Sent Events(GET /api/v1/clipboard/events)替代原先的 10 秒轮询,跨设备复制后秒级亮起新内容提示,且切到后台标签页时自动释放连接。
  • 原生支持 curl / SSH / iOS 快捷指令(Authorization: Bearer <8位令牌>):无需安装额外客户端,在远程 Linux 服务器、终端脚本或 iPhone「快捷指令 / 轻敲背面」即可一行命令收发文字、截图与文件(详见使用指南)。
  • 支持安装为桌面与手机独立应用(PWA):支持 Chrome / Edge / Safari「安装应用 / 添加到主屏幕」独立无地址栏运行;内置静态壳 Service Worker 严格绕过 /api/*,绝不缓存任何剪贴板隐私数据。
  • 内存上限与 LRU 自动淘汰(-max-memory / GCOPY_MAX_MEMORY):默认限制剪贴板墙总内存上限为 512 MiB(设为 0 不限制),超限时按最近最少使用(LRU)自动淘汰旧数据,小内存服务器长期运行更稳健。
  • 六平台单文件二进制包与全新文档站:提供 linux / darwin / windows(amd64 & arm64)开箱即用单文件可执行包与 checksums.txt,优化 iOS WebKit 剪贴板手势兼容,补齐前后端核心单测,并上线全新双语文档站 docs.gcopy.link/zh-CN/。

Quick Upgrade / 快速升级

Docker Hub:

docker pull llaoj/gcopy:v2.2.0

Aliyun ACR (国内镜像加速):

docker pull registry.cn-beijing.aliyuncs.com/llaoj/llaoj_gcopy:v2.2.0

Full Changelog: v2.1.14...v2.2.0