Learn > Browser plugins (plugin.js) > The registration contract 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