Skip to content

Proposal: standalone browser extension support #329

Description

@jinghaihan

Context

I am building a Chrome extension that injects the @devframes/hub-ui embedded dock into an existing page.

In my setup, the inspected page and the Devframe server have independent lifecycles.

The inspected page keeps running when the local Devframe server stops. When the server restarts, I want to reconnect and remount the Devframe panel without reloading the inspected page.

Current gaps

This exposes three issues:

  1. Embedded UI sizes using rem are affected by the host page's root font size.
  2. Runtime Iconify requests may be blocked by the host page's CSP.
  3. When the sidecar restarts, there is no public lifecycle API to dispose and remount the embedded Hub without reloading the inspected page.

Question

If this topology fits Devframe's intended scope, I would be happy to contribute improvements for these gaps, potentially including:

  • a browser extension example;
  • CSP-safe or configurable icon resolution;
  • stronger embedded style isolation;
  • explicit mount/dispose/reconnect lifecycle APIs.

I would appreciate guidance on the preferred API boundaries and how these changes should be split into separate issues or PRs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions