Repository navigation
Description
Problem
Widget authors cannot distribute their own SwiftUI views for StableBar without changing and rebuilding the app. Existing packages configure widgets through JSON and commands, but cannot provide native views, animations, or custom SwiftUI controls.
Proposal
Explore a versioned native widget plugin interface integrated with the existing package and popup systems. A developer should be able to build a separate plugin and a user should be able to review, install, enable, disable, and remove it without rebuilding StableBar. Include a small example and developer documentation.
Native plugins execute in StableBar's process with its permissions. They must not load before the user explicitly trusts the specific signed code. Changes to a plugin need renewed review. The API must define compatibility, lifecycle, and failure handling.
Open security and distribution questions need maintainer input: the current Developer ID build uses Hardened Runtime and Library Validation, which prevents loading a bundle signed by a different team. Allowing arbitrary third-party code in-process requires a security exception. Signature checks and consent do not sandbox that code. Plugin crashes can terminate the app, and disabling a plugin may require a restart to unload its code. An ABI boundary and signing policy must be chosen before a stable API is promised.
Possible today
Packages can supply JSON layouts, popups, and commands, but runtime SwiftUI plugins are not supported (see docs/popups.md). Authors can add a built-in widget to StableBar's source and rebuild it.
Related
- Let widget scripts reach the bar that runs them #301 concerns the environment and command-line access of widget scripts, not native views.
- Run SketchyBar plugin scripts that call
sketchybar --set#87 considered SketchyBar command compatibility; it was declined and does not cover native SwiftUI bundles. - Include common Store widgets in StableBar Essentials #268 added built-in widgets; it does not provide an independently distributed native plugin API.
Triaged by Codex (GPT-6).
Activity
Seb-GRAF commentedon Nov 16, 2026
Thanks again for the PR and the context, we'll extend the widget system instead of adding native plugins
You can already have DuoBar itself on the bar: run it next to StableBar, put its item on the bar in Menu bar items and choose "As in the menu bar" under Show (or
{ "app": "DuoBar", "display": "live" }inshown). It needs macOS 27, Screen Recording access and a beta for now, and it's a copy refreshed every two seconds, so the animations won't play.To build something similar as a regular package, without Swift, we'll add:
networkproviderOnce those are in you'll be able to build a DuoBar-like widget that follows the theme. It won't match everything (no Wi-Fi name, no custom animations), but it should get you close
Seb-GRAF commentedon Nov 16, 2026
Hey @1tuz , I've pushed a few fixes that allow open rings with dots, combining multiple system providers in one widget, checking for the Wi-Fi name, native volume and output controls, and also adding detail views in popups.. I also made a widget that acts a bit similar, it's in the store and called
Status ring. I'm doing a stable release soon but if you choose the beta channel for the app you can try it.Two things I said wouldn't work actually do now: the Wi-Fi name shows up (macOS asks for Location the first time) and the volume flashes next to the ring when you change it. The battery view also lists your Bluetooth devices
Feel free to fork or open a PR if you want to add more features
Let me know what you think!
1tuz commentedon Nov 16, 2026
Hey, @Seb-GRAF ! Very nice! Thanks! Need to add this feature to the stable release