-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deno/bun support #951
Comments
Sure! Thank you for bringing this up. I would like to add that Deno and Bun are both gaining popularity as alternative JavaScript/TypeScript runtimes due to their speed and new features. While there is an increasing interest in making our application compatible with these platforms, we need to carefully evaluate the potential benefits and challenges associated with each:
Next StepsIt would be helpful if someone from the team can:
Once we have a clear understanding of the trade-offs, we can make an informed decision whether to prioritize Deno or Bun support or explore other options. What are your thoughts?
|
No real issues, hasn't been a focus. |
@pelikhan , I see, thank you. I'm more interested in sandbox abilities, as I would like to expose GenAIScript functionality to a wide audience and hence need to be sure it will be properly isolated. Ben/deno seems to be pretty much built-in with those features. So, if ben/deno are not really in focus, do you have anything related to execute untrusted code on the roadmap? If so, is there any estimate? If not, is there something you could probably advise in those regards? Thanks in advance! |
Actually, there's a big one that will require some though. GenAIScript currently loads .mjs/.mts files through https://tsx.is/ which only supports node.js. I need to read more into bun to see if it can be replaced natively.
One way to sandbox genaiscript would be to run it in a docker without internet access. Otherwise, it's unclear how you can sandbox a JavaScript VM when importing user code. |
I also tried deno and it seems that it will be a lift to support that one too. Our process library |
I was thinking about Deno's Sandbox primarily. btw, is |
still in the radar but porting to other ecosystems is going to be a large body of work |
Hi @alexander-potemkin @pelikhan & Other Maintainers We're very excited about GenAIScript and its potential as a next-generation library for working with generative AI. We believe it has a bright future! We're particularly interested in contributing to Deno compatibility. We have bandwidth available and a strong team of in-house experts proficient in Deno, Node.js, and the Deno ecosystem. If anyone can provide some guidance on the specific challenges involved in achieving Deno compatibility, we're confident we can help resolve them. To facilitate better communication and collaboration, would it be possible to create a Discord server for the project? This could be a great place to discuss development, troubleshoot issues, and share ideas. We also wanted to mention that Node.js now has native TypeScript support, as detailed in these resources:
Deno, of course, has had first-class TypeScript and ESM support from day one. Finally, we'd also like to suggest publishing the package on JSR (JavaScript Registry). This would greatly enhance its compatibility across all JavaScript runtimes. We're eager to collaborate and contribute to the growth of GenAIScript. Please let us know how we can help, especially regarding Deno support. Thank You. |
Right tsx won't cut it in demo; along with a number of other depencies. To tackle this project, I am thinking about carving a subset of genaiscript built for deno. In this case, the following changes would be made:
Just brainstorming, but my initial investigating wasn't showing good signs of being able to convert the current codebase to deno. May need a second look. |
Thank you! Is there any plans / concerns on making it run under deno / bun? It will highly improve speed and, if I understand that right - offer additional sandbox abilities
The text was updated successfully, but these errors were encountered: