Capabilities and restrictions
Declare only the capabilities your plugin uses. The sandbox client and host both enforce grants, which are confirmed together with the code hash.
| Capability | Available services |
|---|---|
| storage | Plugin-private JSON get/set/delete, and secrets encrypted with the system keystore where there is one (the plugin and the user are told when there isn’t) |
| settings | Manifest-defined preference get/set |
| ui | Dialogs, panels, overlays, composer and right-click menu items, sandbox views, a settings page, theme snapshots, notices |
| patcher | Checked transforms at the named hooks, including the badges drawn next to names |
| messages | Validated embeds in the current channel, replies and reactions to messages on screen, or text typed into the message box, right after a user action in the plugin |
| styling | Validated, disposable selector rules |
| inspection | Sanitized element events, optionally intercepting inspected clicks; their text only with message_content |
| shortcuts | Host keyboard shortcut registrations |
| images | PNGs from any public HTTPS address, loaded without asking the user |
| clipboard | Text writes right after a user action in the plugin |
| attachments | Right-click actions on posted files, images and GIFs, and bounded metadata lookup for posted files |
| external_links | Public HTTPS links, after an attachment action or a user action in the plugin |
| badges | Badges next to names, from community role lists; the host looks up members’ roles |
| navigation | The open community and channel, and changes to them |
| guild_data | Name, icon, roles (with permissions) and channels of communities opened this session |
| decorations | Content below messages and next to names; sees on-screen message, author and member ids |
| message_content | The text of messages on screen, in decorations, right-click targets and inspected elements, and of up to 100 recent messages in the open conversation after a user action |
| network | HTTP requests to the hosts listed in the manifest, and to servers the user approves with userServers, without asking the user each time |
| activity | Whether Fluxer is focused, shown and idle; never input or timestamps |
| voice | Whether the user is in a voice call, and the ids of its channel and community |
| automation | Replies and reactions to other people’s new messages without a user action, within core’s rate limits |
| commands | Slash commands typed in the message box; the plugin gets what follows the command’s name when the user runs it |
| author_names | Authors’ names in recent messages; decorations and right-click targets stay id-only |
| stickers | Opening FluxPlugs’ Add sticker dialog for a right-clicked image or GIF; the user picks the community and confirms there |
navigation, guild_data, decorations, message_content, network, activity, voice, automation, commands and author_names need FluxPlugs 0.5.0-beta.1 or later; older runtimes refuse manifests that list them, as they do any capability they don’t know. commands, author_names, stickers and network.userServers were added later in the same beta, so earlier builds of it refuse them too, and older runtimes ignore an attachment action’s kinds and offer it on file cards only.
Check a grant
Section titled “Check a grant”if (api.capabilities.has("storage")) { const previous = await api.storage.get<string>("last-view"); api.logger.debug("Stored view available", { available: previous !== undefined, });}A capability check does not replace error handling: the current context, input, resource limits, and instance lifetime can still make an operation fail.
Unavailable privileges
Section titled “Unavailable privileges”The network capability reaches only the hosts listed in the manifest’s network.hosts, and, with network.userServers, the servers the user approves one by one in a FluxPlugs dialog. The hosts and userServers are confirmed together with the code hash, so changing them needs a new confirmation. The main process makes each request: HTTPS to public IPv4 addresses for listed hosts, plain HTTP only to approved servers on this computer or a private network, no cookies, bounded bodies and a deadline of 10 seconds unless the request asks for up to 120. See network requests.
The images capability is the exception to watch: the main process fetches any public HTTPS URL the plugin names, without a user action, so the URL itself can carry data to a server. Treat images as a network capability when you review a plugin.
The badges and guild_data capabilities give a plugin the role lists of communities the user opens, including each role’s permissions, which Fluxer’s own UI doesn’t show to everyone. FluxPlugs fetches them, and the roles of people on screen, with the user’s account. Plugins never receive credentials, members’ roles, presence or profiles.
The decorations capability shows a plugin the ids of messages, authors and members on screen without any user action, and message_content adds the text of those messages. With a user action, message_content also reads up to 100 recent messages of the open conversation from Fluxer’s API, including ones not on screen, and author_names adds their authors’ names. A plugin that combines them with images could send that data out through an image URL, so treat the combination like a network capability. With network, such a plugin can send the text and ids of messages it reads, and with author_names their authors’ names, to its listed hosts and approved servers; the enable prompt warns about this.
The activity and voice capabilities tell a plugin when the user is at Fluxer and which voice channel they are in, without any user action. Plugins get flags and ids only, never input, timestamps, names or audio. With network, the enable prompt warns that the plugin can send this to its listed hosts. See activity and voice.
A user action means a trusted click, key press or submit in the plugin’s own UI: a dialog submit, an overlay action button, a registered shortcut, an attachment action, a right-click menu item, a decoration button, a button under a view, running one of the plugin’s commands, or a click while the plugin inspects the page. It opens a 1.5-second window that the first gated call uses up. Synthetic events, and clicks inside the plugin’s own frame, don’t count.
Plugins have no Node/Electron APIs, filesystem, parent DOM, top navigation, popups, or remote scripts. Direct fetch/connect from the frame is blocked. The network, image, attachment lookup and browser navigation services each have narrower rules.
Core owns credentials and transport. Handles belong to a plugin instance and cannot be transferred. New privileged operations require a bounded core extension; see extending the SDK.
FluxPlugs is an independent project, not affiliated with or endorsed by Fluxer.