Skip to content

Add private package sources next to the Store #248

Closed

Description

@M4n0x

Problem

Teams can't share StableBar packages privately. Widgets for an internal GitLab, Jira or company tools can't go in the public Store, and today the only other way to share one is to send a folder. Settings → Packages → Store reads a single, fixed index (the store release of Seb-GRAF/stablebar-packages), and nothing records where an installed package came from. So StableBar can't tell a team's package from a Store package with the same ID, or know where its updates should come from.

Proposal

Add private package sources next to the public Store, and show each package's source wherever packages appear.

  • A source is a name and an HTTPS URL to an index.json in the Store's format. Sources are listed under packageSources in config.json, so a team can share them through an include. The public Store is always on.
  • Tokens: each source can have its own token. It is kept in the login Keychain, never in the configuration, and sent only to the host it was entered for. GitLab API URLs get PRIVATE-TOKEN, everything else Authorization: Bearer. Configuration and package commands can't read it.
  • Settings: a Sources… sheet in Packages to add, edit and remove sources. The form checks the index before the source can be added.
  • Store and Installed: one Store grid for every source, with a source menu and a tag on each card. Installed rows and package pages say where a package came from. A package from a private source carries the note that StableBar's maintainers didn't review it.
  • Updates: each installed package remembers its source in packages/<id>/.source.json, and updates come only from that source. A source can't take over an ID that another source installed, so a private package can't replace a Store package with the same ID.
  • Joining: a stablebar://add-source?name=…&url=… link opens the form already filled in. It never carries a token and never adds anything without confirmation.
  • Publishing: StableBar --build-source PACKAGES OUT checks package folders and writes the index and archives, ready to upload to a private GitHub branch, GitLab's package registry or any HTTPS server.
  • Command line: --install-package ID --source SOURCE, and a source field in --packages.

Possible today

No. PackageIndex.url is the only index. The packages docs say installation doesn't record where a copy came from, and labels such as Listed in Store go by ID alone.

Related

Triaged by Claude Code (Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 22, 2026
  2. added a commit that references this issue on Oct 23, 2026
    a4e6a08
  3. stablebar-releases commented on Oct 23, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.6.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