R
RunPod•2mo ago
Itay Elgazar

JS endpoint?

Hey, it isn't possible to run JS as serverless code?
Solution:
I think JS SDK not support serverless yet
Jump to solution
11 Replies
nerdylive
nerdylive•2mo ago
Hmm serverless currently uses python I'm not sure if there's some way to execute js on python I'm recommending to use cloudflare workers as an alternative for js handlers
Itay Elgazar
Itay Elgazar•2mo ago
I need the GPU 🙂 That's really weird that there's no JS support, if we can deploy a docker image, why does it matter which language we deploy 😮
Madiator2011
Madiator2011•2mo ago
@Itay Elgazar sure we have JS SDK so whould work but cant help much as myself I use python mostly 😄
Madiator2011
Madiator2011•2mo ago
GitHub
GitHub - runpod/js-sdk: JS sdk for runpod
JS sdk for runpod. Contribute to runpod/js-sdk development by creating an account on GitHub.
Madiator2011
Madiator2011•2mo ago
otherwise you might just wrap js code into python what kinda worker you trying to do?
Itay Elgazar
Itay Elgazar•2mo ago
@Papa Madiator But i cannot find the function "serverless.start" in JS 😮
Solution
Madiator2011
Madiator2011•2mo ago
I think JS SDK not support serverless yet
Itay Elgazar
Itay Elgazar•2mo ago
Yeah. I’m trying to run ffmpeg, I have a code in JS already, I guess I’ll move it to python 😅
nerdylive
nerdylive•2mo ago
It needs sdk-like to connect to the host I guess.. How is that possible haha
digigoblin
digigoblin•2mo ago
Basically all programming languages can call commands from within them to run other programs You can call the JS app from within the Python serverless handler
nerdylive
nerdylive•2mo ago
Oh ya I get the idea now Yeah that is possible