Use webcontainers for code artifacts #82

Open
opened 2026-02-15 19:15:44 -05:00 by yindo · 0 comments
Owner

Originally created by @marcusschiesser on GitHub (Oct 14, 2024).

Originally assigned to: @marcusschiesser on GitHub.

  • Add a /sandbox route that uses https://webcontainers.io/ instead of e2b to execute the code (for Python and TS) - the result is that we have two sandbox routes, one for E2B and one for webcontainers
  • In the generated code, we only want one route, hence we copy the route as a component. Which route to select depends on the selected tool; for web containers, we add artifact[webcontainers]

Note: Webcontainers only work with generated TS code, but our code generator tool works for Python and TS (so we need to test both).

Originally created by @marcusschiesser on GitHub (Oct 14, 2024). Originally assigned to: @marcusschiesser on GitHub. - [ ] Add a `/sandbox` route that uses https://webcontainers.io/ instead of e2b to execute the code (for Python and TS) - the result is that we have two sandbox routes, one for E2B and one for webcontainers - [ ] In the generated code, we only want one route, hence we copy the route as a component. Which route to select depends on the selected tool; for web containers, we add `artifact[webcontainers]` Note: Webcontainers only work with generated TS code, but our code generator tool works for Python and TS (so we need to test both).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#82