Enterprise-grade worker with 100% feature parity to Chrome extension
# Node.js 18+ required
node --versionnpm installCreate .env file:
DATAHIVE_JWT=your_jwt_token
DATAHIVE_DEVICE_ID=your_device_id# Development
node datahive.js
# Production (PM2)
pm2 start datahive.js --name datahive-workerSee DEPLOYMENT.md for complete production setup.
- ✅ Tool Registry System - Modular architecture with 6 tools
- ✅ Conditional Validation - 11 comparison operators
- ✅ Web Scraping - Puppeteer with header interception
- ✅ Performance Monitoring - CPU/memory tracking per job
- ✅ Dynamic Configuration - Server-controlled settings
- Multiple deployment options (PM2, Systemd, Docker)
- Comprehensive error handling
- Health monitoring and logging
- 60+ automated tests
- Complete documentation
data_hive/
├── src/ # Modular source code
│ ├── tools/ # Tool registry + 6 tools
│ ├── ApiClient.js
│ ├── JobManager.js
│ ├── ConfigManager.js
│ ├── PerformanceMonitor.js
│ ├── Scraper.js
│ ├── logger.js
│ ├── config.js
│ └── index.js
├── tests/ # 60+ tests
├── examples/ # Demos
├── logs/ # Log files
├── docs/ # API reference
├── datahive.js # Entry point (45 lines)
└── package.json
| Document | Description |
|---|---|
DEPLOYMENT.md | Production deployment guide |
docs/MULTI_DEVICE_SETUP.md | Running multiple workers on same machine |
changelog.md | Version history & changes |
docs/TOOLS.md | Tool API reference |
IMPLEMENTATION_PLAN.md | Future enhancements |
# Run all tests
npm test# Integration tests
npm run test:integration
# Demos
npm run demo # Conditional gates
npm run demo:all # Full tool system
npm run demo:phase2 # Performance & config- ConditionalGateTool - Data validation (11 operators)
- FetchTool - HTTP requests
- OffscreenTool - Web scraping with Puppeteer
- FetchAndExtractTool - HTML parsing
- PerformanceMonitor - Resource tracking
- ConfigManager - Dynamic settings
See docs/TOOLS.md for APIs.
- Production Ready: 98% ✅
- Feature Parity: 100% ✅
- Test Coverage: Comprehensive ✅
- Documentation: Complete ✅
ISC
For issues:
- Check logs:
datahive.logandjobs.log - Review
DEPLOYMENT.md - Run demos to verify setup
- Check system resources
Ready for production deployment! 🚀