Xray
A simple, intuitive, and light universal UI capture and inspection tool for macOS
Install / Use
/learn @wlswo/XrayREADME
Universal UI capture and inspection tool.
macOS Desktop application for inspecting and capturing UI elements across the entire system, similar to Chrome DevTools inspector but for the OS.
Features
- Global Inspector: Hover over any window, button, or UI element on your screen to see it highlighted.
- Info HUD: Real-time display of element role and dimensions (e.g.,
Button | 120 × 40). - Smart Capture: Click the highlighted element to instantly capture it to your clipboard.
- Enhanced Visibility: Inset highlight ensures visibility even at screen edges.
- System Tray Integration: Runs quietly in the background.
- Global Shortcut: Activate the inspector on demand.
Setup & Installation
- Clone the repository
- Install Dependencies:
npm install - Run Development Build:
npm run tauri dev
Building for Production
To build a production-ready application bundle:
-
Standard Build:
npm run tauri build -
Build with Version Update: If you want to specify a new version before building:
npm run build:to --new_version=1.1.0This command will update
package.jsonandCargo.tomlto the specified version and then run the build process.
The generated application bundle will be located in src-tauri/target/release/bundle/.
How to Use
-
Grant Permissions:
- On first launch, you must grant Accessibility and Screen Recording permissions to the app (or your terminal if running in dev mode).
- If the app doesn't work, check System Settings > Privacy & Security and ensure permissions are enabled.
-
Start Inspection:
- The app launches in the background (check the Menu Bar for the icon).
- Press <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>X</kbd> (or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>X</kbd>) to activate the overlay.
-
Capture:
- Move your mouse to highlight the desired UI element.
- Click to capture.
- The overlay will close, and the screenshot is now in your Clipboard. Paste it anywhere (<kbd>Cmd</kbd> + <kbd>V</kbd>).
-
Quit:
- Click the tray icon in the menu bar and select Quit.
Architecture
- Frontend: React + TypeScript (Visual Overlay)
- Backend: Rust (Tauri, Accessibility API, CoreGraphics)
- State Management: Tauri Events (
element-hover)
License
Related Skills
himalaya
347.9kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
taskflow
347.9kname: taskflow description: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layer
coding-agent
347.9kDelegate coding tasks to Codex, Claude Code, or Pi agents via background process
tavily
347.9kTavily web search, content extraction, and research tools.
