Skip to content

Node Plugin

The Node Plugin provides essential services for web browsing, media processing, and content analysis through Node.js.

Installation

  1. Install the package:
    Terminal window
    npm i github:elizaos-plugins/plugin-node

Usage

import { createNodePlugin } from "@eliza/plugin-node";
const nodePlugin = createNodePlugin();
const agent = new AgentBuilder()
.withPlugin(nodePlugin)
.build();

Available Services

ServiceDescriptionKey Features
BrowserServiceWeb capabilitiesPage loading, content extraction, screenshots
ImageDescriptionServiceImage analysisContent recognition, caption generation
LlamaServiceLLM integrationText generation, analysis
PdfServicePDF handlingReading, parsing, text extraction
SpeechServiceText-to-speechAudio generation, voice synthesis
TranscriptionServiceSpeech-to-textAudio transcription, language detection
VideoServiceVideo processingFormat conversion, frame extraction

Configuration

interface NodePluginConfig {
browserOptions?: {
headless?: boolean;
timeout?: number;
};
speechOptions?: {
defaultVoice?: string;
outputFormat?: string;
};
videoOptions?: {
maxDuration?: number;
outputFormats?: string[];
};
}

Best Practices

  • โœ”๏ธ Handle service errors appropriately
  • โœ”๏ธ Implement timeouts for browser operations
  • โœ”๏ธ Cache processed media when possible
  • โœ”๏ธ Monitor resource usage for media operations