Skip to content

Add community plugins: a plugin strip, sandboxed web plugins and a plugin hub - #31

Merged
CodySimonds65 merged 59 commits into
mainfrom
feature/runelite-plugins
Oct 3, 2026
Merged

CodySimonds65 merged 59 commits into
mainfrom
feature/runelite-plugins

Conversation

@CodySimonds65

@CodySimonds65 CodySimonds65 commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

The whole community plugin system, in three parts that were built and reviewed as separate pull requests and merged into this one:

  1. The plugin strip (this pull request): the Plugins sidebar becomes a RuneLite-style strip, on a framework that community plugins plug into.
  2. Sandboxed web plugins (Run community plugins as sandboxed web pages #33): a community plugin is a folder of web files that FourFold runs as a locked-down page, with a small window.fourfold library, declared sites, data cards and a developer mode for authors.
  3. The plugin hub (Install reviewed community plugins from a plugin hub #34): users search and install reviewed plugins from the wrench → Plugin hub. Plugins update themselves, and one the maintainers pull is switched off everywhere.

What a user sees:

  • Nothing changes until you open the hub. With no community plugin installed and developer mode off, no plugin browser is started and no request goes to the hub.
  • Installing a plugin: every plugin is reviewed before it is listed. FourFold installs a package only when its size and SHA-256 match the hub's catalog, and shows what the plugin can contact before you install it.
  • What a plugin can reach: account labels, XP and stats, the timer, its own settings, and the websites it declared. Never a saved login, a password, a game page, a cookie or a file.
  • Making a plugin: PLUGIN_AUTHORS.md documents everything; the hub repository is FourFoldAccountManager-plugin-hub.

Details, behaviour notes and known limits for parts 2 and 3 are in #33 and #34. Part 1 follows.

Test status

  • dotnet build FourFoldAccountManager.sln -c Debug: 0 warnings, 0 errors.
  • Core tests (309) and Desktop tests (28) pass. Leaderboard tests: 32 pass; the 8 that need Docker were not run.
  • dotnet publish in Release, both the portable and the single-file build, as the release workflow does; the single-file build starts and closes cleanly.
  • The hub is live: the first plugin (Goal tracker) was submitted, checked, secret-scanned, merged and published, and installs in the app.

Part 1: the plugin strip

Summary

The Plugins sidebar becomes a RuneLite-style layout, built on a plugin framework that community plugins can plug into later.

  • Strip: a 56 px strip on the right edge holds an icon and short label for each plugin: XP, Stats, XP calc and Timer.
    • Click an icon to open its panel (250 px) beside the strip; click the lit icon again to close it and give the games the space.
    • Drag icons to reorder them. The order is saved.
  • Plugin list: a wrench at the bottom of the strip opens it, with an on/off switch per plugin.
    • Switching a plugin off removes its icon, its overlay cards (over the game, floating windows and the Overlays panel) and its shortcuts.
    • Each card keeps its own state, so switching the plugin back on restores everything.
    • Background work keeps running: the XP tracker still reads profiles.
  • Timer settings: the Timer's cog holds its split, finish and reset keys, which moved there from Settings → Shortcuts.
    • Keys are captured the same way as before, and checked against every other shortcut.
    • A key Windows refuses is never saved.
  • Toolbar button: the button at the right of the toolbar still hides or shows the whole strip, and the choice is remembered.
  • Tools window: "Pop out tools" moves the strip and panel into the tools window together. There the panel stays open and fills the window.

Framework

  • Core: PluginDescriptor and BuiltInPlugins describe each plugin, with no UI. PluginLayoutPolicy holds the pure order, on/off and open logic.
  • Desktop: IFourFoldPlugin is implemented by the four built-in plugins around their existing panels.
  • Community plugins, later: they will be sandboxed web plugins: HTML/JS in a locked-down WebView2 panel with a small API, and no access to passwords, files or game sessions. Their runtime and the plugin hub get their own specs.

Behavior to know about

  • New saved settings: pluginOrder, disabledPlugins, openPlugin and pluginStripVisible.
    • pluginsSidebarExpanded keeps its key, but now means "the panel is open".
    • Bad or old values load as defaults without failing the rest of the settings.
  • A registered key won't show the clash message while capturing. Pressing a combination FourFold already registers (for example Ctrl+Alt+Shift+T) while capturing a Timer key doesn't show a clash message: Windows takes the registered hotkey first, the same as on Settings → Shortcuts today. Unregistered combinations do show it.
  • Tools window size: it now opens at 360 px (minimum 350), so the strip fits.

Test plan

  • dotnet build FourFoldAccountManager.sln -c Debug: 0 warnings, 0 errors.
  • Core tests (46) and Desktop tests (20) pass. New: plugin layout round-trips through save and load, malformed plugin values load as defaults without losing other settings, and older settings without the new fields keep their hidden-panel choice.
  • Clicking an icon opens and closes its panel; the tops of the panel and strip line up.
  • Dragging icons reorders them, and the order survives a restart.
  • Switching Stats off removes its icon and Stats cards; switching it on restores them.
  • Switching the Timer off frees its keys for the game; switching it on makes them work again.
  • The Timer cog changes keys, refuses a clash with an unregistered combination, and Esc cancels; the timer doesn't react while capturing.
  • Settings → Shortcuts no longer lists the Timer keys, and still refuses binding another shortcut to them.
  • The toolbar button hides and shows the strip.
  • In the pop-out tools window the strip and panel fit, and the panel stays open.
  • Theatre mode, full screen and the Leaderboard view hide the strip.

Install reviewed community plugins from a plugin hub
Run community plugins as sandboxed web pages
@CodySimonds65 CodySimonds65 changed the title Show plugins in a RuneLite-style strip Add community plugins: a plugin strip, sandboxed web plugins and a plugin hub Oct 3, 2026
@CodySimonds65
CodySimonds65 merged commit f1dc50d into main Oct 3, 2026
@CodySimonds65
CodySimonds65 deleted the feature/runelite-plugins branch October 4, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant