@the-link/frame
v0.1.0
Published
Browser Frame adapter for The Link.
Readme
The Link Frame
Browser Window and iframe communication for The Link.
Install
npm install @the-link/frameParent
import { FrameLink } from "@the-link/frame"
const link = new FrameLink(iframe.contentWindow!, "https://client.example")Child
import { FrameLink } from "@the-link/frame"
const link = new FrameLink(window.parent, "https://desktop.example")The adapter sends [event, ...values] through Window.postMessage(). Incoming
messages must come from the configured Window and origin. Values use the
platform's structured-clone algorithm.
An origin is always required. Use "*" only when the target has an opaque
origin; source-Window validation remains active in that case.
Calling disconnect() detaches the Link without navigating or closing either
Window.
Development
bun install --frozen-lockfile
bun run verifyLicense
MIT
