# @weknora/plugin-ui The page side of the bridge between a WeKnora plugin's pages and the app. It has no dependencies and needs no build step. WeKnora shows a plugin page in a sandboxed iframe: - The page has an opaque origin, so it cannot read the app's storage. - A CSP (`connect-src 'none'`) stops it reaching the network. Everything else goes through this bridge. ```js import { connect } from './weknora-plugin-ui.js' const wk = await connect() wk.context.mount // "pages/links" wk.context.context // what the mount passes, e.g. { knowledgeBaseId } const { body } = await wk.get('/links') // the plugin's UI handler answers await wk.put('/links', [...body, { url }]) await wk.toast('Saved', 'success') if (await wk.confirm('Remove it?')) { /* … */ } wk.navigate('/platform/knowledge-bases') ``` Ship `index.js` inside the plugin package, for example as `ui/weknora-plugin-ui.js`, and load your page script with `