Rotae
Hold Shift while dragging any file and a glass wheel opens around it with the actions that make sense for that file: convert, compress, crop, sign, transcribe, check, share. Pick one and the result lands next to the original. One gesture replaces a drawer full of single-purpose tools, and everything runs on your own PC. Rotae is Latin for wheels; the project shipped earlier as ShiftDrop.
Hold Shift while dragging a file to open the action wheel. The interactive demo loads here when scripts run.
- Rust + Tauri 2native core, plain-JavaScript UI, no UI framework. About 12k lines.
- 0 networkby default. The webviews' CSP allows
ipc:only. - Never overwritesthe original. Results are saved beside it with Undo to the Recycle Bin.
- No adminper-user NSIS installer, Windows 10 and 11, signed auto-updates.
One gesture for every file
Everyday file chores (shrink a video to fit a 25 MB upload limit, turn a HEIC into a JPG, pull the text out of a screenshot, check whether invoice.pdf.exe is really a PDF) each need a different app or a website you upload private files to. Rotae puts all of them behind one gesture that starts where the file already is, in File Explorer or on the desktop.




- Actions are chosen by the file's real type, read from its bytes, not its name.
- The wheel learns: actions you use often move onto it, the rest wait under More. Keys 1–8 pick a wedge, Esc cancels.
- Heavy engines (FFmpeg, whisper.cpp, Real-ESRGAN, ONNX models) are optional add-ons, downloaded only when an action needs them.
Close to a hundred actions, sorted by file
- Images
- PNG, JPG, WebP, AVIF, HEIC, RAW and more. Convert, compress, resize, rotate, crop, add a background, redact, remove metadata, copy text (OCR), read QR codes, app icons and favicons, colour palette, watermark, trace to SVG, contact sheet, slideshow video. Add-ons: remove background, blur faces, upscale 2×/4×.
- Video
- Convert (MP4, MOV, WebM, MKV, GIF…), compress, fit to a size limit (8/10/25/50 MB), resize, trim, merge, extract audio, mute, speed, flip, rotate, frames, thumbnail, fix sound. Add-on: subtitles from speech.
- Audio
- Convert, compress, fit to size, trim, merge, speed, denoise, normalise loudness. Add-on: transcribe.
- To images, compress, split, merge, rearrange, rotate or delete pages, sign, page numbers, watermark, text (with OCR for scans), extract images. Add-on: password protect and unlock.
- Documents
- Word, Excel and PowerPoint to PDF through Office or LibreOffice; Word to Markdown without either.
- Text & data
- To PDF or HTML, JSON ⇄ YAML ⇄ TOML, XML → JSON, CSV ⇄ JSON, pretty and minify, compare two files, QR code, Base64, translate and summarise with your own Claude API key.
- Programs
- .exe and .dll: open in x64dbg, IDA, Ghidra, Binary Ninja or Detect It Easy (found through Start-menu shortcuts, nothing to configure), a PE report with imphash and section entropy, signature check, strings, open in Windows Sandbox. Add-ons: capa, FLOSS, UPX unpack.
- Any file
- Real type check (catches
invoice.pdf.exe), hashes, VirusTotal lookup by hash, encrypt (age), shred, who is using it, copy the path as WSL, URL or Markdown, zip, send to a phone over Wi-Fi, upload to your Cloudflare R2.
- Recipes. Chain actions (Resize 50% → JPG → Remove metadata) and use the chain like any other action.
- Watched folders. New files in Downloads, Screenshots or any folder get a recipe automatically.
- Your own commands. Any command line, with
{file},{stem}and{ext}filled in. - Shelf. Collect files from different folders and drag them all out together.
- Quick look. Ctrl+Space in Explorer previews images, video, PDFs and text.
- Around the edges. Undo from the notification, drag the result straight into a chat or email, a right-click menu entry, batch rename, and Ctrl+V to paste files or screenshots in. English and Vietnamese, light and dark.
From a mouse hook to a finished file
Windows input Rotae (one Tauri process)
┌──────────────┐ Shift+drag ┌──────────────────────────────────────────────┐
│ low-level │ ────────────▶ │ win.rs hook thread, top priority │
│ mouse hook │ cursor, keys │ explorer.rs COM / UI Automation: which files? │
└──────────────┘ │ windows.rs overlay shown, never activated │
│ │ Tauri command run_action(Action, paths)│
│ ▼ │
│ jobs.rs one worker thread, catch_unwind │
│ ├─ image / pdf / office / text / files │
│ ├─ media ──▶ ffmpeg (Job Object) │
│ ├─ ai ─────▶ onnxruntime.dll (add-on) │
│ ├─ winrt ──▶ Windows codecs + OCR │
│ └─ security: type, hash, WinTrust, age │
│ toast progress, result, Undo, drag-out │
└──────────────────────────────────────────────┘- win.rsA low-level mouse hook on its own thread with a message loop at top priority. It reports a Shift-drag past a threshold, cursor moves, the drop, digit keys (only while the wheel is up) and Ctrl+Space (only when Quick look is on). It also grabs a small downscaled screen capture and box-blurs it in Rust for the frosted-glass background.
- explorer.rsExplorer does not hand its drag to another window, so the app asks it over COM which files are selected, and runs a UI Automation hit test to make sure the press landed on a file and not on empty space (where Shift-drag draws a selection box).
- windows.rsThe overlay and toast windows are created once and kept hidden so they appear instantly. The wheel is topmost but never takes focus from the app you dragged from.
- jobs.rsEvery action is a serialised Rust
Actionenum (including chained recipes and user command lines with{file},{stem},{ext}). One worker thread runs them in order. - engines/Image (image, webp, oxipng, vtracer, moxcms), PDF (pdfium), documents (Office or LibreOffice), text and data formats, media (FFmpeg), AI (ONNX Runtime for background removal and face blur, Real-ESRGAN for upscaling, whisper.cpp for subtitles), and security tools.
- winrt.rsUses the codecs and offline OCR already in Windows for HEIC, RAW and JXR, instead of bundling them.
- watch.rsOptional watched folders: polls every 2 s and runs a recipe once a new file's size stops changing.
- apps.rsFinds installed editors, debuggers and disassemblers once, through Start-menu and desktop shortcuts, so “open in x64dbg” or “open in Ghidra” needs no setup.
- shell.rs, tray.rsUndo to the Recycle Bin, files and images from the clipboard, batch rename, the Explorer right-click entry, and a tray menu to switch the gesture off, limit it to Explorer and the desktop, or open the shelf and the activity log.
- share.rsOpt-in sharing: a one-file LAN server, your own Cloudflare R2 bucket, or a translate or summarise call with your own Claude API key.
Rust underneath, plain JS on top
- Core
- Rust, Tauri 2 (autostart, single-instance, updater, drag plugins). Release profile: LTO, one codegen unit,
opt-level = "s", stripped. - UI
- Plain JavaScript built with Vite, Inter and JetBrains Mono, English and Vietnamese, light and dark.
- Windows APIs
windows-sysandwindows: hooks, COM, UI Automation, Job Objects, WinTrust, Restart Manager, WinRT imaging and OCR, DPAPI.- Crates
- image, pdfium-render, ort (dynamic load), infer, age, sha2, qrcode / rqrr, quick-xml, serde_yaml, toml, pulldown-cmark, similar.
- Add-ons
- FFmpeg (GPL-3.0, shipped separately), whisper.cpp, Real-ESRGAN ncnn Vulkan, ONNX Runtime with IS-Net and UltraFace, capa, FLOSS, UPX, qpdf.
- Build / CI
- GitHub Actions on Windows: clippy with
-D warnings,cargo test,npm audit, pluscargo auditon Linux. NSIS bundle with minisign-signed updates.
Choices, and what they cost
Output is named <stem> suffix.ext, never replaces an existing file (it becomes “(2)”), and multi-file results go into a new folder. Half-written outputs are deleted if a job fails or the app quits.
A single sequential worker means a large batch cannot saturate every core and freeze the machine you are working on.
Trade-off: large batches take longer than a fully parallel pool would.Nothing heavy is bundled. Add-ons are downloaded from official releases only when needed, which keeps the installer small and keeps GPL tools like FFmpeg outside the MIT app.
Trade-off: the first use of some actions needs a download.HEIC, RAW, JXR decoding and OCR come from WinRT rather than bundled codecs.
Trade-off: those calls can hang (a cloud-only OneDrive file, a stuck codec), so each runs on its own thread with a time limit.Releases are built and signed on the developer machine so no signing key is stored on GitHub.
Trade-off: releases cannot be cut by CI alone.The parts that fought back
- A hook must never slow input. Every click and key on the system passes through it. It runs on a dedicated top-priority thread and only captures keys while the wheel is visible. Windows 11 Efficiency mode made the whole system's mouse stutter, so the process opts out of it.
- A topmost window must never get stuck. If the page fails to answer, a safety hide fires; a menu-open counter stops a late hide from closing a newer menu.
- Deadlocks. Creating windows inside a synchronous Tauri command blocks the UI thread, so those commands are async and hand off to background threads.
- One bad file must not kill the queue. Engines run under
catch_unwind; child processes live in a Job Object with kill-on-close, so quitting never leaves an orphaned FFmpeg. - FFmpeg can “succeed” without writing anything. Output existence is checked. The 8/10/25/50 MB presets use a two-pass encode at the bitrate that lands just under the limit; speed changes beyond atempo's 0.5–2× range are chained.
- Small things that bite: batch rename goes through temporary names so swaps work; an unreadable settings file is never overwritten with defaults; a socket closed with unread data on Windows resets the peer, which the LAN share handles.
Offline until you ask
- Offline by default. The network is used only when you press something that says so: downloading an add-on, a VirusTotal lookup (sends the SHA-256 only), your own R2 bucket, translate or summarise with your own Claude API key (that one text file only), or a LAN share link that expires after 10 minutes.
- Webviews are boxed in. CSP
script-src 'self',connect-src ipc:, no objects, frames or forms, empty asset scope. Each window has its own allow-list of commands: only the hub changes settings, the preview window can read only the file it shows. - Secrets: API keys are sealed with Windows DPAPI; the UI only learns whether a key is set. Secrets go to curl through a config on stdin, never on the command line, and are blanked from logs.
- Downloads are pinned to SHA-256 digests; anything else is refused and deleted.
- LAN share: binds only to a private LAN address, caps the request head at 8 KB and 3 s, limits connections and serves one secret URL with no uploads.
- File-safety tools: real-type detection, hashes, Windows catalog signature checks, open-in-Windows-Sandbox with the folder read-only, age encryption, and shredding (best effort on SSDs).
What it doesn’t do
- Windows 10/11 64-bit only; a macOS version is planned.
- Word, Excel and PowerPoint to PDF need Microsoft Office or LibreOffice installed.
- SmartScreen may warn on first run, as it does for any new app.
- Engine tests need FFmpeg on PATH; the Explorer COM test is manual.