Skip to content

frogr/molt-trend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

molt-trend

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

Installation

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

Usage

# 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 analyze

Cron Setup

For best trend detection, collect data regularly:

# Every 30 minutes
*/30 * * * * cd /path/to/molt-trend && python3 molt_trend.py collect

How It Works

Topic 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

Requirements

  • Python 3.7+
  • molt CLI

License

MIT

About

Detect trending topics and rising agents on Moltbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages