Skip to content
Written for developers. Just using FluxPlugs? Go to the user guide.

Run the plugin store

The plugin store is a static part of this website. It lists the bundled plugins from plugins/ and the community plugins from a checkout of FluxerDevs/FluxPlugs-Plugins. Nothing in the runtime or the injector reads it yet; /plugins/index.json exists for a later in-app list.

  1. An author opens a pull request in FluxPlugs-Plugins. Its validate workflow runs scripts/community/validate.mjs from this repository, at the commit and repository pinned in that repository’s toolchain.json (while the code is in a private repository, the workflows read it with a FLUXPLUGS_TOKEN secret, so they can’t run for pull requests from forks).
  2. After the merge, its publish workflow runs scripts/community/release-plugin.mjs (rebuild, hash check, pack) and virustotal-wait.mjs (upload, then wait for the analysis), creates the GitHub release <id>-v<version> with an artifact attestation, writes plugins/<id>/release.json with write-release-json.mjs, regenerates CODEOWNERS, commits, and sends the repository_dispatch event community-plugins-updated to this repository.
  3. deploy.yml runs on that event, on pushes to main that touch docs/ or the bundled plugins’ manifests and READMEs, and by hand. It checks FluxPlugs-Plugins out into plugins-community/ (gitignored) and builds the site.
  4. docs/src/data/store/ reads both sources and renders each README through a sanitizing Markdown pipeline. docs/src/pages/plugins/ turns the result into /plugins/, /plugins/<id>/, /plugins/<id>/icon.png and /plugins/index.json.

The store never serves plugin files. Downloads go to the release assets, so the bytes a user gets are the bytes VirusTotal scanned and GitHub attested.

For each plugins-community/plugins/<id>/:

File Written by Used for
fluxplug.json the author name, version, author, description, capabilities, hosts, code hash
store.json the author owners, summary, repository, homepage, license, tags, icon
README.md the author the “About this plugin” section
icon.png the author the card and page icon
CHANGELOG.md the author a link under Details, when present
release.json the publish workflow download link, ZIP hash, VirusTotal results, attestation link, dates

verified.json at the checkout root lists reviewed entries: id, version, sha256, reviewedAt, reviewer and notes. A plugin is Reviewed when an entry’s id and sha256 equal its current manifest’s id and integrity.sha256.

The loader (docs/src/data/store/sources.ts) leaves out a plugin without release.json (merged, not published yet) and one whose release.json is behind its manifest (publish in progress). It fails the build on a folder whose name differs from its id, a reserved or bundled id, an oversized README or icon, or invalid JSON. A failed deploy keeps the previous site online.

Reserved ids are in docs/src/data/store/reserved-ids.json. The plugins repository reads the same file through its pinned checkout.

Without a community checkout the store builds with the bundled plugins only, and the build log says so. To see community plugins, clone the repository next to plugins/:

Terminal window
git clone https://github.com/FluxerDevs/FluxPlugs-Plugins plugins-community
pnpm --dir docs build

Or point FLUXPLUGS_COMMUNITY_ROOT at any folder with the same layout. CI builds the docs with tests/fixtures/community-store: a Reviewed plugin with an icon and a README full of things the sanitizer must handle, a Listed plugin without VirusTotal results, and an unpublished one.

pnpm test:docs also checks that docs/src/data/capabilities.json, the plain-words list the store shows under “What it can do”, names exactly the capabilities in packages/schemas/src/schemas.ts. When a capability’s wording changes in CAPABILITY_DESCRIPTIONS (packages/runtime/src/management-ui.ts), change it there too: the page tells users that Fluxer shows the same list.

In FluxPlugs-Plugins:

  • VIRUSTOTAL_API_KEY: a VirusTotal API key. Optional. Without it, releases are published with virustotal: null and the store says the file wasn’t scanned.
  • FLUXPLUGS_DISPATCH_TOKEN: a fine-grained personal access token with Contents: read and write only on the FluxPlugs repository that toolchain.json names (the maintainer’s private repository during the closed beta, FluxerDevs/FluxPlugs once the code moves there), used for the repository_dispatch call and nothing else.

The publish workflow needs contents: write (the release and the release.json commit), id-token: write and attestations: write (the attestation). Branch protection on main should require the validate check and a review from code owners.

To mark a version Reviewed:

  1. Read the plugin’s source at the merged commit, not a later one. Check that the capabilities and network.hosts match what the README tells users, that nothing is obfuscated, and that no code is fetched from elsewhere at run time.
  2. Confirm that release.json’s entry.sha256 equals the manifest’s integrity.sha256. The publish workflow enforces it, but you are signing off on exactly that hash.
  3. Add an entry to verified.json in its own pull request: id, version, that sha256, the date, your login, and a sentence on what you looked at. The verify-whitelist workflow checks that the hash is the plugin’s current one.

A new version is Listed until it is reviewed again. To revoke, remove the entry. If a release has to be deleted from GitHub, delete release.json in the same change, or the store keeps pointing at a missing file.

When the SDK or apiVersion changes, bump toolchain.json in FluxPlugs-Plugins to a commit of this repository that has the change. Authors then rebuild with the new pin and open a pull request with the new hash. Each release.json records the toolchain it was built with, so older releases stay reproducible.

FluxPlugs is an independent project, not affiliated with or endorsed by Fluxer.