Skip to content
Frontend architecture

A Support Widget Is Part of the Product Interface

An agent skill for auditing or integrating a single, theme-consistent SupportKori trigger on websites and browser extensions.

Get integrate-supportkori-widget on npm
2 min read0 comments
Website

One theme-matched support trigger on a website and in an extension panel

Why it was needed

A support widget can load without errors and still clash with a site's design, mount more than once, violate the Content Security Policy, or fail inside a browser extension. Because the widget is part of the product interface, each of these problems reaches users directly.

Integration must use the repository's established SupportKori contract rather than inventing a generic embed. Websites and extensions have different lifecycle, CSP, permission, and iframe boundaries. Remote configuration and publication remain outside an ordinary local integration request.

How it is built

The skill first audits the host surface and any existing integration, then mounts a lifecycle-safe trigger and panel. A final pass verifies CSP, extension behavior, visual fit, and runtime behavior.

Integrate at the lifecycle boundary. Initialization and cleanup sit where the host framework can guarantee a single active widget instance, which is what prevents duplicate mounts.

Match the host interface. Reusing local tokens and interaction patterns makes support feel like part of the product rather than an add-on with its own styling.

Treat extensions as a separate environment. Manifest permissions, CSP, and extension-page behavior are validated directly, because website rules cannot be assumed to apply there.

The key decision: Integrate at the lifecycle boundary.

What changed

Codified SupportKori-specific discovery and integration rules. Defined safeguards for lifecycle handling and duplicate mounts. Documented CSP and browser-extension constraints. Added portable packaging and contract tests.

Agents can audit or integrate SupportKori without replacing an existing valid setup. The widget follows the host's visual and interaction conventions. Extension-specific security boundaries stay explicit. Verification covers both rendered behavior and integration safety.

My role: Agent workflow design and automation engineering. Scope: Frontend quality, deterministic validation, and portable distribution.

Working through a similar challenge?

Share your context, constraints, and timeline to start a focused conversation.