Show HN: Xray – 开发者必备的极简截图工具 (Rust/Tauri)

1作者: wlswo15 天前
我开发 Xray 是因为我对现有的截图工具感到沮丧,这些工具要么过于臃肿,要么需要账号,要么无法很好地兼容多显示器和高 DPI 缩放。<p>Xray 是一款轻量级、开源的截图工具,使用 Rust 和 Tauri 构建。目标是创建一个不碍事,但在需要时提供精确控制的工具。<p>关键技术规格: 核心:使用 Rust 构建,以确保内存安全和低开销。<p>前端:使用 Tauri(React/TS)的极简 UI,使二进制文件大小远小于基于 Electron 的替代方案。<p>性能:针对快速启动和低延迟的截图进行了优化。<p>我为什么开发它: 大多数工具都侧重于社交分享或云存储。我想要一个专注于本地工作流程的工具:截图、标注(箭头、文本、模糊处理),然后复制到剪贴板或保存。我还想确保它能处理复杂的显示设置,而不会出现许多跨平台截图库中常见的“偏移”错误。<p>有什么不同: 原生体验:它通过 Tauri 的后端使用系统原生 API。<p>隐私:无遥测、无云同步、无账号。所有内容都保存在您的机器上。<p>干净的代码库:该项目结构设计易于扩展,方便那些想要添加自定义后处理脚本的人。<p>该项目仍处于早期阶段。我正在寻求关于以下方面的反馈:<p>在各种 Linux 窗口管理器(Wayland vs X11)上的性能。<p>标注工具集的 UX/UI 改进。<p>对于以开发者为中心的工作流程,缺少哪些功能。<p>Github:https://github.com/wlswo/xray<p>我会随时解答有关实现或技术栈的任何问题。
查看原文
I built Xray because I was frustrated with existing screenshot tools that were either too bloated, required accounts, or didn&#x27;t play well with multiple monitors and high-DPI scaling.<p>Xray is a lightweight, open-source screenshot utility built with Rust and Tauri. The goal was to create a tool that stays out of the way but provides precise control when needed.<p>Key Technical Specs: Core: Built with Rust to ensure memory safety and low overhead.<p>Frontend: Minimalist UI using Tauri (React&#x2F;TS), keeping the binary size significantly smaller than Electron-based alternatives.<p>Performance: Optimized for quick startup and low latency during capture.<p>Why I built it: Most tools focus on social sharing or cloud storage. I wanted something that focused on the local workflow: capture, annotate (arrows, text, blur), and copy-to-clipboard or save. I also wanted to ensure it handles complex display setups without the common &quot;offset&quot; bugs found in many cross-platform screenshot libraries.<p>What’s different: Native Feel: It uses system-native APIs via Tauri’s backend.<p>Privacy: No telemetry, no cloud sync, no accounts. Everything stays on your machine.<p>Clean Codebase: The project is structured to be easily extendable for those who want to add custom post-processing scripts.<p>The project is still in its early stages. I&#x27;m looking for feedback on:<p>Performance on various Linux window managers (Wayland vs X11).<p>UX&#x2F;UI improvements for the annotation toolset.<p>Any features that are missing for a developer-centric workflow.<p>Github: https:&#x2F;&#x2F;github.com&#x2F;wlswo&#x2F;xray<p>I&#x27;ll be around to answer any questions about the implementation or the tech stack.