API Overview
This is the API overview for the @valerypopoff/rivet2-node Node.js library. Each of the exports in the api.ts file is documented in its own page, as linked below:
Requirements
The repository toolchain targets Node.js 20.4.0. For application integrations, use a modern Node 20 runtime unless a specific package release states otherwise.
Core
Every type and method exported from @valerypopoff/rivet2-core is re-exported from @valerypopoff/rivet2-node for convenience. See the core API overview for more information.
Functions
- loadProjectFromFile: This function loads a project from a given file path.
- loadProjectFromString: This function loads a project from a string content.
- runGraphInFile: This function runs a graph in a file with the provided options.
- createProcessor: This function creates a processor for a given project with specific options.
- runGraph: This function runs a graph for a given project with specific options.
- startDebuggerServer: This function starts a debugger server with the provided options.
Types
- LooseDataValue: This type represents a loose data value that can be a
DataValue,string,number, orboolean. - RunGraphOptions: This type represents the options that can be provided when running a graph.
- RivetDebuggerServer: This type represents a debugger server instance with a WebSocketServer and several methods for handling events and processor interaction.
- DebuggerEvents: This type represents the events that can be emitted by the debugger server.
Please visit each page for detailed information on each export, including usage examples and type definitions.