mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #3988] feat: Add artifacts like experience to live preview HTML/JS code #28985
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zabirauf on GitHub (Jul 18, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3988
Originally assigned to: @tjbck on GitHub.
Is your feature request related to a problem? Please describe.
Quickly prototyping any HTML/JS code requires a bunch of steps which makes iterations cumbersome.
In part related to broader #1321
Describe the solution you'd like
The recent Anthropic Artifacts experience has been great for in app quick prototyping with HTML/JS. It reduces the amount of time to see the result of the code in a an interactive manner. This also allows rapid iteration by seeing the code results and then asking LLM to update in certain ways, allow users to build quick websites and tools.
Describe alternatives you've considered
The changes would include
langfield may not always be accurate and in some models I've seen it to bephpeven when code was HTML. This could also benefit the current rudimentary Python code detection. One candidate for this is the vscode-languagedetection library.Additional context
Here is the demo of the prototype I worked on using sandpack-client. Code is here https://github.com/zabirauf/open-webui/pull/3/files
@Yanyutin753 commented on GitHub (Jul 20, 2024):
amazing🤩
@Yanyutin753 commented on GitHub (Jul 21, 2024):
https://github.com/user-attachments/assets/8eea591c-1693-4e80-a5e5-fbb8800f1209
@mihow commented on GitHub (Aug 1, 2024):
This is fantastic, thank you for jumping on this feature. What do we need to do to test & get it merged?
@JamesClarke7283 commented on GitHub (Sep 22, 2024):
Could we make it more like Anthropic's artifacts? where Code blocks are concise
filenames blocks. and when you click on theartifactit shows the code on the right hand side?that way you dont have to scroll down just to copy each of the code snippets, i think it would save a lot of time.
as it generates each file, it displays the content on the right hand side (optional addition)
Here is an example:

@tjbck commented on GitHub (Oct 6, 2024):
Available now on the latest dev! Will be merged with 0.3.31!