Skip to content

Example Plugin

All plugins

by FluxPlugsv1.0.0

Official

An official plugin, included with FluxPlugs. Open Fluxer Settings → FluxPlugs → Plugins and choose Install next to Example Plugin. It starts switched off until you turn it on.

What it can do

The 4 permissions it asks for
  • SettingsRead and change its own settings.
  • Saved dataKeep its own saved data.
  • Dialogs and menusShow dialogs, panels, overlays, notices and menu items. Sees the ids of the message, person or channel whose menu item you click.
  • FluxPlugs hooksSee and change values at FluxPlugs hooks, including the badges shown next to names.

Fluxer shows this same list when you turn the plugin on.

About this plugin

A small plugin that exists to show what a plugin can do with the public SDK: a setting, private storage, a text panel and a named patch hook. Turn it on from Fluxer Settings → FluxPlugs → Plugins and it greets you from its panel; change the greeting in its settings.

Settings

  • Greeting: the text the panel shows. The default is "Hello from an isolated plugin".

Capabilities and privacy

Example Plugin asks for settings, storage, UI and patcher. It reads nothing from the page and makes no network requests.

Development

The source is the shortest complete plugin in the repository, so start here when writing your own; the developer documentation explains the sandbox, the capability checks and the lifecycle. Built with node packages/plugin-tools/cli.mjs build plugins/example from the repository root, which rewrites the manifest's integrity hash. pnpm --filter @fluxplugs/example-plugin test runs the tests.

From the plugin's README on GitHub, written by its author.

Details

Version
1.0.0
License
MIT

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