Deprecated plugin, moved to:
- https://github.com/elizaos-plugins/plugin-pdf
- https://github.com/elizaos-plugins/plugin-llama
- https://github.com/elizaos-plugins/plugin-image
- https://github.com/elizaos-plugins/plugin-aws-s3
- https://github.com/elizaos-plugins/plugin-browser
- https://github.com/elizaos-plugins/plugin-speech-tts
Core Node.js plugin for Eliza OS that provides essential services and actions for file operations, media processing, and cloud integrations.
The Node plugin serves as a foundational component of Eliza OS, bridging core Node.js capabilities with the Eliza ecosystem. It provides crucial services for file operations, media processing, speech synthesis, and cloud integrations, enabling both local and cloud-based functionality for Eliza agents.
- AWS S3 Integration: File upload and management with AWS S3
- Browser Automation: Web scraping and content extraction with Playwright
- Image Processing: Image description and analysis capabilities
- PDF Processing: PDF text extraction and parsing
- Speech Synthesis: Text-to-speech using ElevenLabs and VITS
- Transcription: Speech-to-text using various providers (OpenAI, Deepgram, Local)
- Video Processing: YouTube video download and transcription
- LLaMA Integration: Local LLM support with LLaMA models
npm install @elizaos/plugin-node
The plugin requires various environment variables depending on which services you plan to use:
OPENAI_API_KEY=your_openai_api_key
ELEVENLABS_XI_API_KEY=your_elevenlabs_api_key
ELEVENLABS_MODEL_ID=eleven_monolingual_v1
ELEVENLABS_VOICE_ID=your_voice_id
ELEVENLABS_VOICE_STABILITY=0.5
ELEVENLABS_VOICE_SIMILARITY_BOOST=0.75
ELEVENLABS_OPTIMIZE_STREAMING_LATENCY=0
ELEVENLABS_OUTPUT_FORMAT=pcm_16000
VITS_VOICE=en_US-hfc_female-medium
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
AWS_REGION=your_aws_region
AWS_S3_BUCKET=your_s3_bucket
AWS_S3_UPLOAD_PATH=your_upload_path
AWS_S3_ENDPOINT=an_alternative_endpoint
AWS_S3_SSL_ENABLED=boolean(true|false)
AWS_S3_FORCE_PATH_STYLE=boolean(true|false)
import { createNodePlugin } from "@elizaos/plugin-node";
// Initialize the plugin
const nodePlugin = createNodePlugin();
// Register with Eliza OS
elizaos.registerPlugin(nodePlugin);
Handles file uploads and management with AWS S3.
Provides web scraping and content extraction capabilities using Playwright.
Processes and analyzes images to generate descriptions. Supports multiple providers:
- Local processing using Florence model
- OpenAI Vision API
- Google Gemini
Configuration:
# For OpenAI Vision
OPENAI_API_KEY=your_openai_api_key
# For Google Gemini
GOOGLE_GENERATIVE_AI_API_KEY=your_google_api_key
Provider selection:
- If
imageVisionModelProvider
is set togoogle/openai
, it will use this one. - Else if
model
is set togoogle/openai
, it will use this one. - Default if nothing is set is OpenAI.
The service automatically handles different image formats, including GIFs (first frame extraction).
Features by provider:
Local (Florence):
- Basic image captioning
- Local processing without API calls
OpenAI Vision:
- Detailed image descriptions
- Text detection
- Object recognition
Google Gemini 1.5:
- High-quality image understanding
- Detailed descriptions with natural language
- Multi-modal context understanding
- Support for complex scenes and content
The provider can be configured through the runtime settings, allowing easy switching between providers based on your needs.
Provides local LLM capabilities using LLaMA models.
Extracts and processes text content from PDF files.
Handles text-to-speech conversion using ElevenLabs and VITS.
Converts speech to text using various providers.
Processes video content, including YouTube video downloads and transcription.
Analyzes and generates descriptions for images.
// Example usage
const result = await runtime.executeAction("DESCRIBE_IMAGE", {
imageUrl: "path/to/image.jpg",
});
The plugin requires several peer dependencies:
onnxruntime-node
: 1.20.1whatwg-url
: 7.1.0
And trusted dependencies:
onnxruntime-node
: 1.20.1sharp
: 0.33.5
- Path Sanitization: All file paths are sanitized to prevent directory traversal attacks
- File Size Limits: Enforced limits on upload sizes
- Type Checking: Strict file type validation
- Temporary File Cleanup: Automatic cleanup of temporary files
- Environment Isolation: Sensitive credentials are isolated in environment variables
- Access Scoping: Services are initialized with minimum required permissions
- Key Rotation: Support for credential rotation without service interruption
- Resource Limits: Memory and CPU usage limits for media processing
- Timeout Controls: Automatic termination of long-running processes
- Format Validation: Strict media format validation before processing
- Service Initialization Failures
Error: Service initialization failed
- Verify environment variables are properly set
- Check service dependencies are installed
- Ensure sufficient system permissions
- Media Processing Errors
Error: Failed to process media file
- Verify file format is supported
- Check available system memory
- Ensure ffmpeg is properly installed
- AWS S3 Connection Issues
Error: AWS credentials not configured
- Verify AWS credentials are set
- Check S3 bucket permissions
- Ensure correct region configuration
Enable debug logging for detailed troubleshooting:
process.env.DEBUG = "eliza:plugin-node:*";
- Node.js 16.x or higher
- FFmpeg for media processing
- Minimum 4GB RAM recommended
- CUDA-compatible GPU (optional, for ML features)
-
Cache Management
- Regular cleanup of
content_cache
directory - Implement cache size limits
- Monitor disk usage
- Regular cleanup of
-
Memory Usage
- Configure max buffer sizes
- Implement streaming for large files
- Monitor memory consumption
-
Concurrent Operations
- Adjust queue size limits
- Configure worker threads
- Monitor process pool
For issues and feature requests, please:
- Check the troubleshooting guide above
- Review existing GitHub issues
- Submit a new issue with:
- System information
- Error logs
- Steps to reproduce
-
File Operations
- Enhanced streaming capabilities
- Advanced compression options
- Batch file processing
- File type detection
- Metadata management
- Version control integration
-
Media Processing
- Additional video formats
- Advanced image processing
- Audio enhancement tools
- Real-time processing
- Quality optimization
- Format conversion
-
Cloud Integration
- Multi-cloud support
- Advanced caching
- CDN optimization
- Auto-scaling features
- Cost optimization
- Backup automation
-
Speech Services
- Additional voice models
- Language expansion
- Emotion detection
- Voice cloning
- Real-time synthesis
- Custom voice training
-
Browser Automation
- Headless optimization
- Parallel processing
- Session management
- Cookie handling
- Proxy support
- Resource optimization
-
Security Features
- Enhanced encryption
- Access control
- Audit logging
- Threat detection
- Rate limiting
- Compliance tools
-
Performance Optimization
- Memory management
- CPU utilization
- Concurrent operations
- Resource pooling
- Cache strategies
- Load balancing
-
Developer Tools
- Enhanced debugging
- Testing framework
- Documentation generator
- CLI improvements
- Monitoring tools
- Integration templates
We welcome community feedback and contributions to help prioritize these enhancements.
Contributions are welcome! Please see the CONTRIBUTING.md file for more information.
This plugin integrates with and builds upon several key technologies:
- Node.js - The core runtime environment
- FFmpeg - Media processing capabilities
- ElevenLabs - Voice synthesis
- OpenAI - Transcription and AI services
- AWS S3 - Cloud storage
- Playwright - Browser automation
- LLaMA - Local language models
- VITS - Voice synthesis
- Deepgram - Speech recognition
- Sharp - Image processing
Special thanks to:
- The Node.js community and all the open-source contributors who make these integrations possible.
- The Eliza community for their contributions and feedback.
For more information about Node.js capabilities:
This plugin is part of the Eliza project. See the main project repository for license information.