AIGC: Label: "1" ContentProducer: 001191440300708461136T1XGW3 ProduceID: f4a677bd9d680e9793dee310c93c3656_264855c463e411f18383525400d9a7a1 ReservedCode1: IFtULBUVKQgz3Y6sEYBTwjkbCMZZE6itZk4LPUNz3ZkqTJRV2tvHq65UkRptezueH5t6UhjKBqj/UKkccV8PDS0X0f6iSlN5l55FkcRq0YOGtYIGEGC8i80KXJW+2J54rmOyD1S4JepwsMmCAN2jPgkUbmIe3KsQxpvQ19X6p2JW1O+DeWN1fIxRgiw= ContentPropagator: 001191440300708461136T1XGW3 PropagateID: f4a677bd9d680e9793dee310c93c3656_264855c463e411f18383525400d9a7a1 ReservedCode2: IFtULBUVKQgz3Y6sEYBTwjkbCMZZE6itZk4LPUNz3ZkqTJRV2tvHq65UkRptezueH5t6UhjKBqj/UKkccV8PDS0X0f6iSlN5l55FkcRq0YOGtYIGEGC8i80KXJW+2J54rmOyD1S4JepwsMmCAN2jPgkUbmIe3KsQxpvQ19X6p2JW1O+DeWN1fIxRgiw=
E-commerce Live Monitor Plugin
Real-time e-commerce live streaming data collector and analyzer for 6 major platforms.
Supported Platforms
- 抖音 (Douyin)
- 淘宝直播 (Taobao Live)
- 快手 (Kuaishou)
- 拼多多直播 (Pinduoduo)
- 京东直播 (JD)
- 小红书直播 (Xiaohongshu)
Features
1. Real-time Monitoring
const { EcommerceLiveMonitor } = require('ecommerce-live-monitor');
const monitor = new EcommerceLiveMonitor({
platforms: ['douyin', 'taobao'],
apiKey: 'your-api-key',
monitoringInterval: 5000 // 5 seconds
});
monitor.initialize();
const streamId = await monitor.startMonitoring('room_12345', {
platform: 'douyin'
});
2. Event System
// Listen for alerts
monitor.on('alert', (alert) => {
console.log(`[ALERT] ${alert.type}: ${alert.message}`);
});
// Listen for metric updates
monitor.on('metrics_updated', (data) => {
console.log(`[METRICS] GMV: ¥${data.metrics.totalGMV.toFixed(2)}`);
});
// Listen for stream events
monitor.on('stream_started', (data) => console.log('Stream started'));
monitor.on('stream_stopped', (data) => console.log('Stream stopped'));
3. Anomaly Detection
- GMV Drop Detection: >20% drop triggers alert
- Viewer Drop Detection: >30% drop triggers alert
- Sell-through Rate Drop: >15% drop triggers alert
- Negative Comment Flood: >5 negative comments/minute triggers alert
4. Comprehensive Reporting
const report = monitor.getReport(streamId);
console.log(report.summary);
// {
// totalGMV: "¥12,345.67",
// peakViewers: 8921,
// averageViewers: 4523,
// totalSales: 1234,
// sellThroughRate: "4.5%",
// conversionRate: "2.3%",
// gmvPerMinute: "¥205.76"
// }
5. Export Formats
// Export as JSON
const jsonReport = await monitor.exportReport(streamId, 'json');
// Export as CSV
const csvReport = await monitor.exportReport(streamId, 'csv');
// Export as Markdown
const mdReport = await monitor.exportReport(streamId, 'markdown');
6. Smart Recommendations
The plugin automatically generates actionable recommendations:
- Low sell-through rate → suggest discounts
- Low conversion rate → optimize descriptions
- Audience demographics → product mix suggestions
Anomaly Detection Parameters
const monitor = new EcommerceLiveMonitor({
alertThresholds: {
gmvDrop: 20, // 20% drop
viewerDrop: 30, // 30% drop
sellThroughDrop: 15, // 15% drop
negativeComments: 5 // 5 negative comments/min
}
});
Data Collected Per Platform
Douyin (抖音)
- Viewers, GMV, Sales, Likes
- Product links, Demographics
- Comment sentiment analysis
Taobao (淘宝)
- Viewers, UV, GMV, CVR
- Sales conversion metrics
- Product performance
Kuaishou (快手)
- Viewers, GMV, Sales
- Gift revenue tracking
- Social engagement metrics
Others
- Platform-specific metrics
- Cross-platform comparison
- Unified reporting interface
Installation
npm install ecommerce-live-monitor
API Reference
EcommerceLiveMonitor(config)
config.platforms: Array of platform namesconfig.apiKey: API authentication keyconfig.monitoringInterval: Data collection interval (ms)config.alertThresholds: Custom alert thresholds
Methods
.initialize(): Initialize the monitor.startMonitoring(roomId, options): Start monitoring a live room.stopMonitoring(streamId): Stop monitoring.getReport(streamId): Get comprehensive report.exportReport(streamId, format): Export report in various formats
Events
stream_started: { streamId, liveRoomId, platform }stream_stopped: { streamId }metrics_updated: { streamId, metrics, timestamp }alert: { streamId, type, severity, message, timestamp }error: { streamId, error }
License
MIT (内容由AI生成,仅供参考)