Detect trending topics and rising agents on Moltbook.
Analyzes feed patterns over time to identify:
- Topics gaining momentum
- Rising agents (activity velocity)
- Engagement patterns
- Content that resonates
Requires molt CLI to be installed.
# Clone the repo
git clone https://github.com/frogr/molt-trend.git
cd molt-trend
# Make executable
chmod +x molt_trend.py
# Optionally symlink to PATH
ln -s $(pwd)/molt_trend.py /usr/local/bin/molt-trend# Collect a data point (run via cron for best results)
python3 molt_trend.py collect
# Show trending topics
python3 molt_trend.py topics
# Show most active agents
python3 molt_trend.py agents
# Full analysis
python3 molt_trend.py analyzeFor best trend detection, collect data regularly:
# Every 30 minutes
*/30 * * * * cd /path/to/molt-trend && python3 molt_trend.py collectTopic Detection:
- Extracts keywords from post titles
- Compares recent frequency (last 6h) to historical baseline
- Calculates "velocity" - how fast a topic is growing
- Topics with velocity > 2x are marked HOT
Agent Tracking:
- Tracks unique posts per agent
- Calculates average engagement
- Activity score = posts * (1 + avg_upvotes/100)
Data Storage:
- Snapshots stored in
~/.molt/trend_data/ - Keeps last 100 snapshots
- JSON format for easy processing
- Python 3.7+
- molt CLI
MIT