cfortuner / promptable

Build LLM apps in Typescript/Javascript. 🧑‍💻 🧑‍💻 🧑‍💻 🚀 🚀 🚀
https://docs-promptable.vercel.app
MIT License
1.77k stars 120 forks source link

Would it work with Cloudflare Workers? #16

Open abhagsain opened 1 year ago

abhagsain commented 1 year ago

Thank you for building this. Is promptable using any node.js specific APIs (eg. crypto) etc which would make it incompatible with Cloudflare Workers?

cfortuner commented 1 year ago

hey @abhagsain, At the moment it's using some stuff that might not be compatible, but one major goal for this project is to support as much as possible in the browser and edge environments. I'm looking for people to collaborate with on this if you're interested!

abhagsain commented 1 year ago

hey @abhagsain, At the moment it's using some stuff that might not be compatible, but one major goal for this project is to support as much as possible in the browser and edge environments. I'm looking for people to collaborate with on this if you're interested!

Got it. @cfortuner

TBVH, I'm not an expert and these days I have been busy with SlidesAI but I'm happy to contribute in any way I can. Promptable looks promising 🔥

mathisobadia commented 1 year ago

I already mentioned this issue on discord and I'm not an expert either on cloudflare workers, there's now lots of runtimes available since there is also bun, deno and browsers and even lambda functions have some limitations around filesystem apis. A cool thing would be to be able to test promptable in those environments in some automated way. There's already work under way to test it in nextjs which has the edge runtime which as far as I know is basically cloudflare workers or very similar so if everything runs well there I think it's safe to say that it will work in most runtimes and we can add some automated tests along the way if we discover issues with specific runtimes