Skip to content

Browse, install and update shared widget packages from a store #33

Closed

Description

@Seb-GRAF

Problem

Sharing a widget means sending a folder. The recipient reviews and installs it in Customize → Packages or with --install-package, and updates by installing a new folder (README "Local widget packages": "There is no network registry or automatic update process"). There is nowhere to find widgets others made, and nothing tells the recipient:

  • what the package needs: tools on the login shell's PATH such as jq or aerospace, a StableBar version, or macOS permissions such as Calendars or Automation;
  • which hosts it contacts;
  • whether anyone besides its author has read it;
  • whether the folder is the version that was read.

Proposal

Build on the package format, with the review model Raycast uses: open source, reviewed in one repository, and built by the store rather than the author.

  1. A public packages repository, one folder per package, with contributions as pull requests. CI runs StableBar --inspect-package and --validate, runs shellcheck on scripts, and rejects binaries and minified code.
  2. Start with themes and packages that run no commands (Add a widget package kind that runs no commands #32), which need only CI. Accept packages with commands once a maintainer reviews each one and each update.
  3. CI publishes an index. For each version it lists the kind, commands, requirements, source commit and the SHA-256 of its archive.
  4. A Browse view in Customize → Packages, and --install-package <id>. StableBar downloads the archive, checks it against the index and installs through WidgetPackageStore.install. Installing still doesn't enable a package, and versions stay pinned.
  5. Updates list newer versions. When one adds commands, hosts or permissions, show the difference and ask before enabling it.
  6. Manifest additions shown at review: description, author, repository, a screenshot, minimumVersion, requires (tools) and permissions (macOS permissions, hosts). Add a secret setting type kept in the Keychain instead of config.json, for API tokens.

Open questions

Possible today

Partly. Local packages already have manifests, typed settings, atomic versioned installs, pinning, rollback and a command review. Discovery, downloads, integrity checks, update prompts and declared requirements are missing.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 16, 2026
  2. Seb-GRAF commented on Oct 16, 2026

    @Seb-GRAF
    CollaboratorAuthor

    Done in #35 and #36, on top of #34 (packages that contain no commands, #32).

    • The store is https://github.com/Seb-GRAF/stablebar-packages. Its CI lints and validates every package against StableBar main and publishes index.json and the archives to the store release. It starts with 13 packages: four themes, five that contain no commands and four that run commands.
    • Customize → Packages lists the store, and --install-package <id> installs from it. Downloads are checked against the index's SHA-256, then reviewed like a local folder. Enabling an update that adds commands, hosts or permissions asks first.
    • The manifest keys description, author, repository, screenshot, minimumVersion, requires, permissions and hosts show in the review. secret settings live in the Keychain (feat: keep package secrets in the Keychain #36).

    The open questions, as settled for now:

    • Hosting: a store prerelease in the packages repository, not GitHub Pages.
    • Signing: HTTPS and the index's SHA-256. The index isn't signed.
    • Sandboxing: not done. A maintainer reads every version of a package that runs commands.
    • Other repositories: only the curated one.
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions