#use trigger.dev in plain node.js

1 messages · Page 1 of 1 (latest)

smoky glen
#

Hello, I am new to trigger.dev and I was wondering if it is possible to run trigger.dev in a node.js script. Although I believe it may not be possible, I would like to confirm this.

Here is my idea: I have a node.js script that can translate the audio of a YouTube video to English. I have written the code in a plain JavaScript file that I want to execute on a lambda function.

I am interested in using trigger.dev to perform "long running jobs" like downloading YouTube videos, transcribing using the Whisper API, using Eleven Lab for generating audio, and using ffmpeg to combine the new audio with the video in a serverless manner.

My question is whether I can define and trigger a trigger.dev job in a node.js script or if I will need to use something like nest.js or next.js ?

open venture
#

Hey @smoky glen!

This use case isn't a great fit for the current version of Trigger.dev (v2). It's built for serverless and not things like ffmpeg.

What's your schedule for this? We'll be releasing v3 in a couple of weeks and this is a really good fit for that. More info on v3 here: https://trigger.dev/blog/v3-announcement

Write regular code and get durability with no timeouts. This means writing long-running tasks is far easier than before.

smoky glen
#

I am currently working on a side project, which means I don't have a strict deadline to adhere to. However, I am aware of the limitations posed by serverless and Linux packages, such as ffmpeg. To work around this, I plan to run my code on an AWS Lambda function that already has ffmpeg package installed.