axidps Download

Plugins

Writing axidps plugins

This guide is for people who want to add their own windows to the axidps overlay. It covers how to build and test a plugin, the manifest and the limits. The API reference and Permissions and trust have the rest. The example plugin in example/ is walked through below. The bundled Performance window in apps/axidps-overlay/plugins/ is a plugin too, built on the same public API.

What a plugin is

A plugin is a folder of plain HTML, CSS and JavaScript with a manifest, axidps-plugin.json. There is no build step. Each plugin adds one to four windows to the in-game overlay. Each window is a sandboxed frame that loads one of your HTML files. Your page talks to axidps only through the plugin SDK, axidps.js. Through it you get the live fight data (if you ask for it), the player's theme, and a small settings store, and you can set the window's title and status.

The player installs a plugin by putting its folder in their plugins folder, then turns it on in the hub's Plugins tab. The card there shows what the plugin asks for, and nothing loads until the player clicks Enable.

Developing

With Claude Code

The repo has a Claude Code skill that scaffolds a plugin for you: .claude/skills/axidps-plugin. It picks the fewest permissions that do the job, writes the manifest and windows from templates, and runs axidps plugin check. In a checkout of this repo it is there already; to use it in your own plugin's folder, copy the axidps-plugin folder into ~/.claude/skills/. Then ask for the plugin you want, for example "make an axidps plugin that shows my quickness uptime".

Check the manifest

axidps plugin check <folder>

This prints ok: <id> <version> and exits 0, or prints one problem: <field>: <what is wrong> line for every problem and exits 1.

Preview in a browser

axidps plugin preview <folder>

This serves the overlay page, the SDK, the bundled plugins and your plugin on http://127.0.0.1:8711/index.html?demo and opens it in your browser. The page plays a sample fight that keeps going, and your plugin's windows start open and enabled. When you save a file in your plugin folder, its windows reload. Your plugin gets the same Content-Security-Policy as in the overlay, so anything it blocks there is blocked here too.

Options: --port <n> (default 8711), --no-open (don't open the browser). The page takes the demo's own options after ?demo: &theme=frost (any theme id, see Theming) and &edit (arrange mode).

Work in the game

Put your plugin in the player plugins folder (see Installing). While you work on it, it is easiest to link the folder to your checkout instead of copying it:

# Linux
ln -s ~/src/my-plugin ~/.config/axidps/plugins/my-plugin
# Windows (cmd)
mklink /D "%APPDATA%\axidps\plugins\my-plugin" C:\src\my-plugin

The plugin folder itself may be a link. Links inside the folder that point outside it are not served.

Developer mode

Turn on Developer mode in the hub, under Options > Updates. As the hub says, "The overlay restarts to switch developer mode." Developer mode changes how fast you see your work, never what a plugin may do: the sandbox, the Content-Security-Policy and the permissions stay the same. With it on:

  • Reload on save. The overlay checks the player plugins folder every 250 ms. Once a plugin's files have been still for 200 ms, its windows reload (within about a second of the save) and keep their position, open state and settings. If you changed the manifest, the list is read again first. If the manifest now asks for more than the player allowed, the plugin is switched off until they click Enable again. A plugin folder with more than 2000 files is not watched.
  • Error counts. A plugin window's title bar shows a red count of the errors its frame logged since it last loaded. Hover it to see the last 5.
  • Reload. Each enabled player plugin's hub card gets a Reload button, for changes the watcher can't see (on a network share, for example).
  • Developer tools. The overlay runs Servo's developer-tools server on 127.0.0.1:6080 (this machine only). In Firefox, open about:debugging, add 127.0.0.1:6080 as a network location and connect. You can then inspect your frames, use the console and set breakpoints.

Developer passes

To try deeper permissions on your own unverified plugin, ask for a developer pass: see Developer passes.

The log

console.warn, console.error, uncaught errors and unhandled promise rejections in your frame go to the axidps log as plugin <id>: <message>. console.log does not. Each line is cut to 500 characters on one line. About 20 lines a second are kept per plugin; past that, lines are dropped and one … N lines dropped line says how many.

Where the log is:

  • Windows: %APPDATA%\axidps\axidps.log (the previous one is axidps.log.1).
  • Linux: ~/.config/axidps/axidps.log, or the terminal if you started axidps from one. If you run the overlay as the axidps-overlay systemd user unit (a source install), use journalctl --user -u axidps-overlay.

The example: "Your DPS"

example/ is a small window that shows your own DPS in large type:

  • axidps-plugin.json names one window, card, with the fight permission so it gets the live feed.
  • card.html loads the SDK with <script src="/_sdk/axidps.js"></script>, then card.js. Its styles use the theme's CSS variables (--title, --dim), so it matches every theme.
  • card.js listens to fight: it finds your row (me: true), shows its dps with axidps.fmt, and sets the title bar status from axidps.fightStatus(feed).
  • It listens to look to draw the number at the player's text size (textScale).
  • Clicking the number switches between big and small. The choice is saved with axidps.settings.set({big}) and comes back through the settings event the next time the window loads.
  • The window sizes itself to its content; the code never sets a size.

Try it with axidps plugin preview docs/plugins/example.

The folder and manifest

my-plugin/
  axidps-plugin.json
  card.html
  card.js
  ...any other files: CSS, images, fonts

The folder's name doesn't matter; the manifest's id does. The folder may not have a top-level _sdk folder (that path is the SDK's). Paths are case-sensitive on Linux.

axidps-plugin.json (at most 64 KB):

{
  "id": "example.your-dps",
  "name": "Your DPS",
  "version": "1.0.0",
  "author": "axidps",
  "api": 1,
  "permissions": ["fight"],
  "network": [],
  "windows": [
    {"id": "card", "title": "Your DPS", "entry": "card.html", "description": "your DPS, big",
     "icon": "chart", "open": true, "place": "beside-meter"}
  ]
}
Field Required Rules
id yes 3–48 characters of a-z 0-9 . -. Unique: if your id is the same as a bundled plugin's, yours is ignored (the log says so).
name yes Shown on the hub card.
version yes A semantic version, like 1.0.0.
author no Shown on the hub card.
api yes The plugin API version it's written for: 1. A number newer than this axidps loads lists the plugin as "needs a newer axidps"; one it no longer loads, as "made for an older axidps". Neither loads. See API versions.
permissions no A list from fight, squad (basic) and enemies, textures, combat, logs, position, world, build (deeper), and outline, cursors (built in only). Any other name makes the plugin invalid. See Permissions.
network no Host names your plugin may reach over HTTPS on port 443, like api.example.com, or *.example.com for any subdomain (not the bare domain). No scheme, port or path. Public names only: no IP addresses, no single-label names like localhost, no *.com, and nothing under .localhost, .local, .lan, .internal or .home.arpa.
windows yes 1 to 4 windows.

Each window:

Field Required Rules
id yes a-z 0-9 -, unique within the plugin.
title yes The title bar text and the window's name in the hub.
entry yes The HTML file, a path inside the plugin folder (card.html, ui/main.html).
description no A short line for the hub's Windows tab.
icon no One of chart users shield swords activity x grid layers sliders plug download columns plus. Anything else shows plug.
open no true to show the window until the player closes it. Default false: the player opens it from the hub's Windows tab.
place no Where the window first appears: beside-meter (default; in a row to the right of the Support window) or below-meter. The player can move it; its position is saved.
in no overlay (default) or hub. A hub window is drawn as a page in the hub's Options tab, listed under Plugins, with an on/off switch for the plugin at the top. open and place are ignored for it, it isn't listed in the Windows tab, and it keeps running while the hub is closed. Its frame is as wide as the page; resize sets only its height. axidps versions before 0.2.0-rc.18 ignore this key and show the window as an ordinary window.
popout no true gives a hub page a Pop out button (while the plugin is on): the hub shrinks to just this page in a small window over the game, not dimmed, so the player can watch your changes take effect. Ignored on other windows. Versions before 0.2.0-rc.21 ignore it.
settings no Options the player sets from the hub's cog, at most 16. See Settings in the hub.

Text the page shows (titles, names, statuses) is cut to 80 characters.

API versions

api says which version of the plugin API your plugin is written for. Today that's 1.

  • Within an api, changes only add. New events, feeds, fields, calls, permissions and manifest keys may appear in any release; nothing is renamed, removed or changes meaning. Check for what you use (see Versioning) instead of assuming a version.
  • A breaking change gets a new api number, and axidps keeps loading the old one beside it, so a plugin written for api: 1 keeps working unchanged when api: 2 arrives.
  • An old api is dropped only after it was deprecated: announced in the release notes at least one release before the one that stops loading it. Its plugins then show "made for an older axidps" in the hub and the store.

Permissions

A plugin names what it needs in permissions and network. fight (the live feed) and squad (your squad or party) are basic permissions; enemies, textures, combat, logs, position, world and build are deeper ones and need the plugin to be verified first. The player sees every permission on the plugin's card and allows them all when they click Enable.

The full model (each permission, network hosts, the sandbox, how plugins get verified and developer passes) is in Permissions and trust.

API

The SDK, events, data feeds and theming are in the API reference. In short: load /_sdk/axidps.js, listen with axidps.on(...), save with axidps.settings.set(...), and style with the theme's CSS variables.

Limits

  • A window is 40–1000 px wide and 24–1000 px tall (fractions are fine). It is 240x120 until your page reports its first size. Size changes are applied at most 4 times a second.
  • At most 4 windows per plugin. The game shows at most 16 windows at once; 2 are kept for the hub and Arrange, so every other window, built-in or plugin, shares 14. Past that, windows stay closed and the hub says so.
  • Settings: at most 16 KB of JSON per window.
  • A frame that hasn't answered for 5 s shows "not responding" in its title bar. The SDK answers for you, so this only happens when your code blocks the page (a long loop, for example).

What a frame can and can't reach is in The sandbox.

Installing

Copy the plugin folder into the player plugins folder:

  • Windows: %APPDATA%\axidps\plugins\
  • Linux: ~/.config/axidps/plugins/ ($XDG_CONFIG_HOME/axidps/plugins/ if that is set)

The overlay reads the folder when it starts (in developer mode, also whenever it changes). Then open the hub's Plugins tab and click Enable on the plugin's card. Its windows are listed in the hub's Windows tab.

Edit this page on GitHub