Nodes/FlowCV/渲染网页
ComfyUI Node

渲染网页

FCV_ShowWebpage

By Bit-Walker·Created about a year ago·Updated 7 months ago· 3
渲染网页
      网址https://www.example.com

      Yes, there's a node that just embeds a webpage in your ComfyUI canvas. 渲染网页 (class FCV_ShowWebpage) takes a URL and displays the page live in an iframe right on the node - dashboards, documentation, reference images, a browser you never have to alt-tab to. It's an output-only display node: one STRING in, nothing out, and it re-renders on each execution.

      FlowCV is ostensibly an OpenCV pack, but this is the clearest sign the author just built whatever was handy - and honestly it's a fun one. If you keep a dashboard or a doc page open while iterating on a workflow, this saves you the tab juggling.

      How it works

      The Python side strips whitespace from the URL, and if you forget the protocol it helpfully prepends http:// (so example.com becomes http://example.com). The JavaScript side creates an iframe inside the node and, on each execution, points it at the URL. The iframe is sandboxed (allow-scripts allow-same-origin allow-forms allow-popups), which keeps it from trashing your ComfyUI page while still letting most pages work.

      Using it

      One input, 网址 (URL), default https://www.example.com. Change it, run, and the embedded page updates. Note it's is_output_node, so it sits at the end of a wire and has no output ports. You can wire the URL in from any node that produces a string - a FCV_MarkdownEditor, a config, a generator - rather than typing it by hand.

      Installing

      Bundled in FlowCV. ComfyUI Manager, search "FlowCV"; or:

      cd ComfyUI/custom_nodes
      git clone https://github.com/Koren-cy/FlowCV
      

      Restart ComfyUI. Dependencies are the pack's light set (opencv-python, numpy, pyserial); the embed is pure frontend JS. README note: the project migrated to ComfyUI_For_Academic, so this repo is archived but working.

      Gotchas

      The big one: a lot of sites refuse to be framed. Sites that send X-Frame-Options: DENY or a frame-ancestors CSP (Google, most news sites, most login pages) will show up as a blank or error page, and no node setting will fix that - it's the site's decision. Prefer sites that allow embedding or set your own. The sandbox also means the embedded page runs with restricted privileges, which is security-in-your-favor but can break heavy web apps. And as with all the display nodes, it only updates when the workflow executes.

      CategoryopenCV/可视化

      Inputs (1)

      NameTypeDefaultDescription
      网址STRINGhttps://www.example.com要渲染的网页URL地址

      Outputs (0)

      No outputs