OpenGenerativeUI icon indicating copy to clipboard operation
OpenGenerativeUI copied to clipboard

Add copy-as-code and download options for generated artifacts

Open jerelvelarde opened this issue 8 months ago • 0 comments

Feature request

Allow users to export generated artifacts (diagrams, visualizations, widgets) as raw code or downloadable files.

Proposed behavior

  • Copy as code: Button to copy the generated HTML/CSS/JS source to clipboard, ready to paste into another project
  • Download artifact: Export the rendered widget as a standalone HTML file or image (PNG/SVG)

Use cases

  • Developer wants to reuse a generated diagram in their own documentation
  • Student wants to save a visualization for a presentation
  • User wants to share an artifact outside the chat context

Notes

The "Save as Template" overlay already exists — this would complement it by offering raw export rather than saving to the template library.

jerelvelarde avatar Mar 24 '26 15:03 jerelvelarde