Skip to content
Kitbay

experience-lwc-runtime-observe

Apache-2.0Updated on Nov 6, 20261,156GitHub starsIncludes scripts

A Salesforce skill for previewing an app or a single Lightning Web Component with Salesforce's local development preview and capturing the DOM it renders.

What the skill teaches

A Salesforce skill for previewing an app or a single Lightning Web Component with Salesforce's local development preview and capturing the DOM it renders. The agent checks the toolchain, starts the preview with sf lightning dev, gets an authenticated front-door URL through a bundled script so the session token is not exposed to the agent, then navigates to the page and extracts the rendered subtree, taking care with LWC shadow DOM. It is meant for troubleshooting what actually renders compared with the template. It needs the sf CLI with an authorised org; it is not for writing or statically reviewing component code.

Capabilities

  • Start a local Lightning preview for an app or component
  • Open an authenticated preview without exposing the token
  • Extract the rendered DOM including shadow roots
  • Compare runtime output with the component template