tauri-nspanel is a Tauri plugin that creates or converts macOS NSPanel windows for floating palettes, HUDs, and inspectors. It exposes a PanelBuilder API and hooks into existing Tauri commands.
Overview
This plugin extends Tauri desktop apps on macOS with panel-style windows that stay above normal content, matching AppKit NSPanel behavior. You can spin up a new panel through a builder or turn an existing window into a panel, then drive it from Rust commands like any other Tauri window surface.
Documented capabilities include mouse tracking with enter, exit, and move events, panel-specific event handlers, and main-thread handling for AppKit operations. Macros help declare custom panel classes and event handlers within the Tauri project structure.
It is distributed as a Rust crate installable from crates.io or a maintained v2.1 branch, with examples and API reference material for integrators. Showcase projects illustrate real palette-style UIs built with the plugin.
Key features
- PanelBuilder creation API
- Window-to-panel conversion
- Mouse tracking events
- Custom panel event handlers
- Tauri command integration
- Main-thread AppKit safety
- Declarative panel macros
- Published Rust API docs
Use cases
- Floating tool palettes
- HUD-style controls
- Inspector side panels
- Always-on-top utilities
- Desktop companion windows