Skip to content

Add a widget package kind that runs no commands #32

Closed

Description

@Seb-GRAF

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, no command or stream providers and no environment. The loader rejects anything else, as it does for themes.
  • Add an open action that opens a URL or an app without a shell, so these widgets stay clickable. Agenda rows could open the calendar's link directly.
  • The Packages tab skips the command review for this kind and says why.
  • Add an example under examples/packages/.

This would unlock:

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

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 16, 2026
  2. stablebar-releases commented on Oct 21, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.5.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions