This is the package that connects Node.js models with the Pipium platform.
yarn add @pipium/node-connect
import { connect } from '@pipium/node-connect';
connect('your-securely-stored-api-key', {
hello_world: {
name: 'Hello world!',
run_sync: ({ text }) => 'Hello ' + text,
types: {
inputs: ['text/plain'],
output: 'text/plain',
},
},
});