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.
Data flow
Section titled “Data flow”- An author opens a pull request in FluxPlugs-Plugins. Its
validateworkflow runsscripts/community/validate.mjsfrom this repository, at the commit and repository pinned in that repository’stoolchain.json(while the code is in a private repository, the workflows read it with aFLUXPLUGS_TOKENsecret, so they can’t run for pull requests from forks). - After the merge, its
publishworkflow runsscripts/community/release-plugin.mjs(rebuild, hash check, pack) andvirustotal-wait.mjs(upload, then wait for the analysis), creates the GitHub release<id>-v<version>with an artifact attestation, writesplugins/<id>/release.jsonwithwrite-release-json.mjs, regeneratesCODEOWNERS, commits, and sends therepository_dispatcheventcommunity-plugins-updatedto this repository. deploy.ymlruns on that event, on pushes tomainthat touchdocs/or the bundled plugins’ manifests and READMEs, and by hand. It checks FluxPlugs-Plugins out intoplugins-community/(gitignored) and builds the site.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.pngand/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.
What the build reads
Section titled “What the build reads”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.
Local development
Section titled “Local development”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/:
git clone https://github.com/FluxerDevs/FluxPlugs-Plugins plugins-communitypnpm --dir docs buildOr 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.
Secrets and permissions
Section titled “Secrets and permissions”In FluxPlugs-Plugins:
VIRUSTOTAL_API_KEY: a VirusTotal API key. Optional. Without it, releases are published withvirustotal: nulland 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 thattoolchain.jsonnames (the maintainer’s private repository during the closed beta,FluxerDevs/FluxPlugsonce the code moves there), used for therepository_dispatchcall 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.
Verification policy
Section titled “Verification policy”To mark a version Reviewed:
- Read the plugin’s source at the merged commit, not a later one. Check that the capabilities and
network.hostsmatch what the README tells users, that nothing is obfuscated, and that no code is fetched from elsewhere at run time. - Confirm that
release.json’sentry.sha256equals the manifest’sintegrity.sha256. The publish workflow enforces it, but you are signing off on exactly that hash. - Add an entry to
verified.jsonin its own pull request:id,version, thatsha256, the date, your login, and a sentence on what you looked at. Theverify-whitelistworkflow 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.
Changing the toolchain pin
Section titled “Changing the toolchain pin”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.