@archilogic/plugin-container
v1.1.13
Published
An HTML container for Archilogic plugins
Keywords
Readme
Plugin Container
This package hosts an HTML file which can be used to load plugins by URL. It is published to the npm registry alongside the plugin packages so that it can be served via CDN.
Local usage
Start the dev server:
npm run devOpen a browser and visit: http://localhost:5173/?pluginUrl=<pluginUrl>&pluginName=<pluginName>
Usage via ESM CDN
Open a browser and visit: https://esm.sh/@archilogic/plugin-container/index.html?pluginUrl=<pluginUrl>
Query params
?pluginUrl(required): the JS entry point for a plugin?pluginName(optional): the name of the plugin
Embedding
The container connects to the page that embeds it, whatever its origin: the bridge reads the parent's origin from the browser, so the embedding page must not hide it with a no-referrer or same-origin referrer policy. Which pages may embed the container at all is decided by the frame-ancestors policy of the host serving it.
Deployment
The plugin-container is currently manually deployed to the archilogic-production-extensions S3 bucket in the container folder. This surfaces the container at https://extensions.archilogic.io/container/index.html
