0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

This node integrates with the 0CodeKit platform, providing a versatile toolbox of no-code utilities across multiple resource categories. Specifically, for the Code resource with the operation Run JS Scripts Hosted on 0CodeKit, it allows users to execute JavaScript functions that are hosted remotely in their 0CodeKit account.

Typical use cases include:

  • Running pre-defined JavaScript functions stored in 0CodeKit without embedding code directly in n8n.
  • Dynamically passing variables to these remote scripts to customize execution.
  • Leveraging 0CodeKit’s hosted environment to maintain and update scripts centrally while triggering them from workflows.

For example, a user might have a JavaScript function hosted on 0CodeKit that processes input data or performs calculations. This node can call that function by its name or ID, pass necessary variables, and retrieve the result for further workflow processing.

Properties

Name Meaning
Code Name or ID Selects the JavaScript function to run from your 0CodeKit account. You can choose from a dropdown list of available functions or specify an ID using an expression.
Code Variables Allows adding one or more variables to pass into the selected JavaScript function. Each variable requires:
- Variable Name or ID: The name of the variable as defined in the 0CodeKit function.
- Value: The value to assign.

Output

The node outputs the JSON response returned by the executed JavaScript function hosted on 0CodeKit. The output is an array of JSON objects representing the results of the script execution.

If the script returns multiple results, they will be included as separate items in the output array.

There is no explicit handling of binary data in this operation; the output focuses on JSON-formatted data returned by the remote script.

Dependencies

  • Requires an active connection to the 0CodeKit API via an API key credential configured in n8n.
  • The node depends on the availability of the specified JavaScript function hosted in the user's 0CodeKit account.
  • Network connectivity to 0CodeKit's service endpoint is necessary for executing the remote scripts.

Troubleshooting

  • Common Issues:

    • Selecting a non-existent or deleted function name/ID will cause errors.
    • Passing variables with names not matching those defined in the 0CodeKit function may lead to unexpected behavior or failures.
    • Network or authentication issues with the 0CodeKit API can prevent script execution.
  • Error Messages:

    • Errors related to "function not found" indicate the selected Code Name or ID does not exist or is inaccessible.
    • Authentication errors suggest missing or invalid API credentials.
    • JSON parsing errors may occur if the function returns malformed data.
  • Resolutions:

    • Verify the function exists and is accessible in your 0CodeKit account.
    • Ensure the API key credential is correctly set up and has required permissions.
    • Confirm variable names match exactly those expected by the remote script.
    • Check network connectivity and retry if transient issues occur.

Links and References

Discussion