npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

productivity-ai-cli

v1.1.2

Published

AI-powered productivity automation system that learns from your coding patterns to optimize focus sessions and daily routines

Readme

🚀 Productivity AI CLI

npm version npm downloads License: MIT

The only productivity system that learns from your code to optimize your focus sessions.

An AI-powered productivity automation CLI that analyzes your Git activity, categorizes TODOs by urgency, and adapts focus session durations to maximize your efficiency. Built specifically for developers who want intelligent automation, not just timers.

✨ What Makes This Special

  • 🧠 AI-Powered Optimization: Learns from your Git patterns to suggest optimal focus durations (15-45 minutes)
  • 📊 Smart TODO Analysis: Automatically categorizes tasks by urgency using keyword detection
  • 🔄 Complete Daily Automation: Morning planning → Midday review → Evening insights
  • 📈 Performance Analytics: Track productivity trends and patterns over time
  • 🎯 Developer-Centric: Git integration, code-aware productivity, TODO scanning
  • Zero Configuration: Works out of the box, improves over time

🚀 Quick Start

# Install globally
npm install -g productivity-ai-cli

# Initialize in your project
productivity init

# Start maximum efficiency mode
productivity turbo

# Begin your first focus session
productivity start

📊 How It Works

1. AI Analyzes Your Work Patterns

$ productivity optimize
🧠 Analyzing Git activity: 15 commits (high intensity)
🎯 Recommended: 45-minute deep work session
⚡ Auto-starting optimized session...

2. Smart TODO Priority Detection

  • 🔴 High Priority: TODO: URGENT - Fix critical bug !!!
  • 🟡 Medium Priority: TODO: Important - Add user feedback !!
  • 🟢 Low Priority: TODO: Refactor helper function

3. Adaptive Focus Sessions

  • Sprint (15min): Low activity, momentum building
  • Standard (25min): Normal productivity flow
  • Deep Work (45min): High activity, complex problems
  • Review (20min): Code review and cleanup

🎮 Commands

productivity turbo           # Activate all automation systems
productivity start [type]    # Focus session (sprint|standard|deep|review)
productivity dashboard       # Real-time productivity metrics
productivity optimize        # AI optimization for current time
productivity insights        # Weekly analytics and trends
productivity status          # System diagnostics
productivity reset           # Emergency recovery

📈 Features

AI-Powered Intelligence

  • Git Activity Analysis: Analyzes commit frequency, urgency keywords, file changes
  • Performance Prediction: Forecasts daily productivity using historical patterns
  • Context-Aware Optimization: Time-of-day and workload-based recommendations
  • Continuous Learning: Improves recommendations based on your usage patterns

Complete Automation

  • Daily Routines: Automated morning planning, midday review, evening wrap-up
  • Smart Scheduling: Intelligent cron job setup with micro-break reminders
  • Background Monitoring: File change detection and workspace analysis
  • Emergency Recovery: Comprehensive reset and diagnostic capabilities

Developer Integration

  • Git Repository Analysis: Multi-repo support with activity scoring
  • TODO Comment Scanning: Automatic priority detection across multiple languages
  • Development Environment Detection: Auto-detects Node.js, Python, Rust, Go projects
  • Cross-Platform: Works on Linux, macOS, WSL

📊 Analytics Dashboard

$ productivity insights

📈 Weekly Productivity Insights
===============================
Mon 10/07: 6 sessions, git score: 23  📈 High
Tue 10/08: 4 sessions, git score: 12  📊 Normal  
Wed 10/09: 8 sessions, git score: 31  🔥 Excellent
Thu 10/10: 5 sessions, git score: 18  📈 High
Fri 10/11: 3 sessions, git score: 8   📉 Low

📊 Weekly Summary:
├─ Total sessions: 26
├─ Average per day: 5.2
├─ Completion rate: 87%
└─ Productivity trend: 📈 Improving

🛠️ Configuration

The system creates .productivity/automation_config.json with sensible defaults:

{
  "auto_focus_duration": 25,
  "break_reminder": true,
  "git_repos": ["./"],
  "priority_categories": ["urgent", "important", "routine"],
  "notification_methods": ["terminal", "log"],
  "learning_mode": true
}

🎯 Use Cases

For Individual Developers

  • Remote Work: Structure and accountability for home office
  • Deep Work: AI-optimized focus sessions for complex coding
  • Productivity Tracking: Data-driven insights into work patterns
  • Habit Building: Automated routines reduce decision fatigue

For Development Teams

  • Team Productivity: Shared goals and accountability
  • Code Review Sessions: Structured review time with TODO analysis
  • Sprint Planning: AI insights for realistic sprint sizing
  • Performance Analytics: Team productivity trends and optimization

🚀 Advanced Features

Machine Learning Integration

# AI learns your patterns over time
Week 1: Basic recommendations
Week 2: Pattern recognition begins
Week 3+: Highly accurate personalized optimization

Real-time Monitoring

# Optional: Install for enhanced features
sudo apt install inotify-tools  # File change monitoring
pip install gcalcli            # Google Calendar integration

Team Collaboration

# Multi-user setup for teams
productivity init --team
productivity dashboard --shared

📱 Integration Examples

VS Code Integration

// .vscode/tasks.json
{
  "label": "Focus Session",
  "type": "shell",
  "command": "productivity start deep"
}

Git Hooks

# .git/hooks/pre-commit
#!/bin/bash
productivity start review

Cron Automation

# Automatic daily routines
0 9 * * *   productivity optimize     # Morning optimization
0 12 * * *  productivity insights     # Midday review  
0 17 * * *  productivity dashboard    # Evening summary

🔧 Troubleshooting

Common Issues

# System diagnostics
productivity status

# Reset if needed
productivity reset

# Reinstall scripts
rm -rf .productivity && productivity init

Platform-Specific Notes

  • Linux/macOS: Full feature support
  • Windows WSL: Recommended for best experience
  • Windows Native: Basic functionality (file monitoring limited)

📊 Performance Metrics

  • Startup Time: < 2 seconds
  • Memory Usage: < 50MB
  • Storage: ~1KB per day of metrics
  • CPU Impact: < 1% during operation

🤝 Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Commit your changes: git commit -m 'Add amazing feature'
  5. Push to the branch: git push origin feature/amazing-feature
  6. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Built for the developer community
  • Inspired by the Pomodoro Technique with AI enhancement
  • Designed for the remote work era

📞 Support

  • 📖 Documentation: See detailed guides in the repository
  • 🐛 Issues: Report bugs or request features on GitHub
  • 💬 Community: Join discussions and share productivity tips
  • 📧 Contact: Reach out for support or collaboration

Transform your productivity with AI that learns from your code.

npm install -g productivity-ai-cli