展示HN:Xray – 一款面向开发者的简约截图工具(Rust/Tauri)
我创建Xray是因为对现有的截图工具感到失望,这些工具要么过于臃肿,要么需要注册账户,或者在多显示器和高DPI缩放下表现不佳。
Xray是一款轻量级的开源截图工具,使用Rust和Tauri构建。我们的目标是创建一个在需要时提供精确控制,但又不会占用用户太多注意力的工具。
关键技术规格:
核心:使用Rust构建,以确保内存安全和低开销。
前端:采用Tauri(React/TS)构建的极简UI,使得二进制文件大小显著小于基于Electron的替代品。
性能:优化以实现快速启动和低延迟的捕获体验。
我为何要创建它:
大多数工具专注于社交分享或云存储。我想要的是一个专注于本地工作流程的工具:捕获、注释(箭头、文本、模糊)以及复制到剪贴板或保存。我还希望它能够处理复杂的显示设置,而不会出现许多跨平台截图库中常见的“偏移”错误。
有什么不同:
原生体验:通过Tauri的后端使用系统原生API。
隐私:没有遥测,没有云同步,没有账户。所有数据都保留在您的机器上。
干净的代码库:项目结构便于扩展,方便希望添加自定义后处理脚本的用户。
该项目仍处于早期阶段。我希望获得以下方面的反馈:
在各种Linux窗口管理器上的性能(Wayland与X11)。
注释工具集的用户体验/界面改进。
针对开发者工作流程缺失的任何功能。
Github链接:https://github.com/wlswo/xray
我会随时回答有关实现或技术栈的任何问题。
查看原文
I built Xray because I was frustrated with existing screenshot tools that were either too bloated, required accounts, or didn'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/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 "offset" 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'm looking for feedback on:<p>Performance on various Linux window managers (Wayland vs X11).<p>UX/UI improvements for the annotation toolset.<p>Any features that are missing for a developer-centric workflow.<p>Github: https://github.com/wlswo/xray<p>I'll be around to answer any questions about the implementation or the tech stack.