Repository navigation
Description
Problem
Every widget package gets the command review, because nothing stops one from running commands. A package that only shows native data, such as a CPU graph or a calendar agenda, still asks the user to read its files before enabling it (README "Local widget packages").
Themes solved this for looks. "kind": "theme" limits a package to tokens, defaults, bar, groups and profiles, and the loader rejects anything else at review, install and load (validateThemeDocument in Sources/StableBar/WidgetPackage.swift), so a theme needs no review. Widgets have no such kind.
Clicks are the other gap: every action is a shell command. Even the calendar's Join runs joinCommand, open '<link>', through /bin/zsh -c.
Proposal
- Add a package kind, for example
"kind": "widgets", that may contain widgets, templates and popups besides what a theme allows, but no key that runs a command, nocommandorstreamproviders and noenvironment. The loader rejects anything else, as it does for themes. - Add an
openaction that opens a URL or an app without a shell, so these widgets stay clickable. Agenda rows could open the calendar'slinkdirectly. - The Packages tab skips the command review for this kind and says why.
- Add an example under
examples/packages/.
This would unlock:
- Installing a shared widget that only shows data without reading its files
- More such widgets as Register data sources behind one interface, including event-driven ones #17 adds sources (disk, now playing, Bluetooth) and Resolve widget styles in one place, with named states #15 adds states and
rulesfor built-in providers - A provider that fetches JSON from HTTPS hosts the manifest declares, for weather, CI or GitHub widgets without a script
- A store tier that needs no code review (Browse, install and update shared widget packages from a store #33)
Possible today
Partly. A widget package can avoid commands by convention, and its review then lists none. Nothing enforces it, so the README still treats every widget package as code to review.
Related
- Pick a theme from installed theme packages #19 added
"kind": "theme", the same guarantee for looks. - Register data sources behind one interface, including event-driven ones #17 and Resolve widget styles in one place, with named states #15 widen what such a package can show.
- Browse, install and update shared widget packages from a store #33 would install these packages from a store.
Triaged by Claude Code (Claude Opus 5.5).
Activity
stablebar-releases commentedon Oct 21, 2026
🎉 This issue has been resolved in version 0.5.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀