01 The registration contract

  CrossPoint.registerPlugin(async (container, api) => {
    // build your UI inside `container`
  });

Rules, all enforced by /js/plugin-host.js:

1. Call registerPlugin synchronously, at the top level of the script. Calling it after an await, in a setTimeout, or in a callback is ignored. The host stores your function on the <script> element that is running at that moment (document.currentScript), and that is null later.
2. Your function gets (container, api). It may be async. The host does not wait for it: the next plugin starts loading immediately.
3. If your function throws or its promise rejects, the card is replaced with "Failed to load plugin." Catch errors yourself if you want to show a friendlier message.
4. If the script hasn't loaded after 30 seconds, the card shows "Failed to load plugin." and the host moves on. If the script arrives later, it still renders.
5. If the script loads but never calls registerPlugin, the /plugins page shows "No browser settings for &lt;title&gt;."
6. Plugins load one after another, in this order: Plugin Hub first, then by title (on /plugins).
Reader file (.txt)