Skip to main content

Dependencies

Leverage existing solutions. The software development ecosystem offers a wealth of powerful libraries that can significantly enhance your development process and productivity.

To incorporate these libraries into your YepCode processes, simply specify the package name and version in the dedicated editor accessible through your team settings. This streamlined approach allows you to effortlessly integrate and utilize external dependencies:

info

Custom packages can be configured in any plan, but we have some amount limits.

We allow to use any npmjs packages, that must be provided with the package.json format.

When you perform a dependency change, YepCode proceeds to install them, but process executions will use the previous version until we ensure that the installation has been successfully completed.

Dependencies guessing

YepCode tries to guess the dependencies you use in your process and modules. You'll see an alert if we detect that you're using a dependency that is not installed on your team:

Just clicking the alert will open the dependencies editor where you can add the missing dependencies, and if you use the 'Add' button, we'll use the last available version of the dependency.

info

Dependencies guessing is specially useful when you're using YepCode As A Service through our Rest API. Check for example the Create process endpoint, that allows to send the "autoDetect": true configuration inside the settings node. With that, you may create fully executable processes and all the needed dependencies will be installed automatically.

Use @add-package comment

Sometimes, the dependencies guessing is not enough. You can use the @add-package comment to manually add a dependency to your process. You can even set the version of the dependency with the syntax @add-package <package-name>=<version>.

Some samples about how to use it:

Configure a dependency to use the last version
// @add-package openai
const OpenAI = require('openai');

const client = new OpenAI({
apiKey: yepcode.env.OPENAI_API_KEY,
});

async function main() {
const chatCompletion = await client.chat.completions.create({
messages: [{ role: 'user', content: 'Say this is a test' }],
model: 'gpt-4o',
});
}

main();
Configure a dependency to use a specific version
// @add-package openai=4.79.1
const OpenAI = require('openai');

...
tip

If you have any issue with dependencies installation (like for example using a private package from some private registry), please contact us.