Open bracesproul opened 1 month ago
Hello,
a easy solution would be sandpack by codesandbox, https://github.com/admineral/Reactor
Hello,
a easy solution would be sandpack by codesandbox,
@admineral yes! Would love a contribution if you have time 🙂
Nope sry
I can do this. @bracesproul, do you want the same UI as in the above mentioned Reactor repo, or do you want to keep it simple without separate file tabs?
We can also make use of this - https://github.com/e2b-dev/code-interpreter
We can also make use of this - https://github.com/e2b-dev/code-interpreter
Another dependency … i dont think it runs locally
….
Get your E2B API key
Sign up to E2B here. Get your API key here. Set environment variable with your API key.
@alchemistgo87 I would love a contribution! Let me do some more research into the proper API for this, and I'll update this GitHub issue body with a more detailed product spec. Then, if you're still up for implementing it I can assign this issue to you!
hey @alchemistgo87 lets start with something simple and use the code sandbox API.
I just updated the GitHub body with a more detailed spec, and if that all looks good to you, let me know and I'll assign this issue to you!
hey @alchemistgo87 lets start with something simple and use the code sandbox API.
I just updated the GitHub body with a more detailed spec, and if that all looks good to you, let me know and I'll assign this issue to you!
Great, thanks for the update. I will start working on it today, you can assign me the issue.
Sweet! Looking forward to it @alchemistgo87
hey @alchemistgo87 going to unassign you from this, if you've already started feel free to still put a PR up though!
Feature: React Code Rendering in Chat Interface
Primary Objective: Enable users to view and interact with generated React code both in raw form and as a rendered application.
Key Requirements:
Display Location
ArtifactRenderer
sectionPerformance Optimization
Technical Implementation
User Interaction Flow
isStreaming
true):Error Handling
Integration
The
ArtifactCodeV3
interface should be updated with a new fieldsandboxURL
so each revision can store the sandbox URL. This means when a user navigates between different revisions, it should update the rendered code.Finally, in the final PR, it would be great if you could include a cost analysis so I have a rough idea as to how much it will cost.