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 ๐Ÿ™

ยฉ 2026 โ€“ย Pkg Stats / Ryan Hefner

mindctl

v1.0.0

Published

๐Ÿง  Your Terminal Wellness OS โ€” AI-powered mental health toolkit for developers

Readme

๐Ÿง  mindctl โ€” Your Terminal Wellness OS

AI-powered mental health toolkit that lives where developers already spend their time โ€” the terminal.

Built for MINDCODE 2026 โ€” 72 hours to build tools that matter.

License Node Platform


โšก Quick Start

# Clone & install
git clone https://github.com/your-team/mindctl.git
cd mindctl/packages/cli
npm install

# Run
node bin/mindctl.js

# Or link globally
npm link
mindctl

๐ŸŽฏ What Is This?

mindctl is a comprehensive mental health CLI that combines:

  • ๐Ÿค– AI Therapy โ€” Evidence-based conversations using CBT, DBT, and mindfulness techniques
  • ๐ŸŽญ Smart Mood Tracking โ€” Daily check-ins with AI-powered pattern analysis
  • ๐Ÿซ Breathing Exercises โ€” 6 animated techniques (box, 4-7-8, calm, panic, sleep, energize)
  • ๐Ÿง˜ Meditation โ€” Timer with ASCII mandala, AI-guided sessions, 5-4-3-2-1 grounding
  • ๐Ÿ“ Therapeutic Journaling โ€” Freeform, gratitude, dream, prompted โ€” with AI analysis
  • ๐Ÿง  CBT Thought Records โ€” Identify cognitive distortions, reframe negative thoughts
  • ๐Ÿ”ฅ Burnout Detection โ€” Analyze git commit patterns for burnout risk indicators
  • ๐Ÿ“Š Wellness Dashboard โ€” Sparkline charts, heatmaps, trend analysis
  • ๐ŸŒค๏ธ Predictive Forecast โ€” AI-powered mood prediction using weighted behavioral data
  • ๐Ÿ”— Correlation Engine โ€” Pearson correlation analysis between sleep, mood, habits, and activity
  • ๐Ÿ“‹ Weekly AI Reports โ€” Narrative wellness summaries with weather metaphors
  • ๐Ÿ† Gamification โ€” XP, levels, achievements, streak tracking
  • ๐Ÿฑ Pixel Companion โ€” ASCII pet that evolves with your wellness journey (Eggโ†’Dragon)
  • ๐Ÿ›ก๏ธ Guardian Daemon โ€” Background monitoring with smart break reminders
  • ๐Ÿ’ค Sleep Tracking โ€” Log, analyze, get AI-powered sleep hygiene tips
  • ๐Ÿ‹๏ธ Habit Tracker โ€” Build healthy habits with streaks and AI suggestions
  • ๐Ÿ’ง Physical Wellness โ€” Water, posture, eye breaks, desk stretches, walk timer
  • ๐Ÿšจ Crisis Support โ€” Instant helplines, safety plan builder, grounding exercises
  • ๐Ÿ”’ Privacy-First โ€” All data stored locally with AES-256 encryption

๐Ÿ“‹ Commands

Core Wellness

| Command | Description | |---------|-------------| | mindctl check-in | ๐ŸŽญ AI-guided mood check-in | | mindctl breathe | ๐Ÿซ Animated breathing exercises | | mindctl meditate | ๐Ÿง˜ Meditation timer & guided sessions | | mindctl meditate ground | ๐ŸŒ 5-4-3-2-1 grounding exercise |

AI-Powered

| Command | Description | |---------|-------------| | mindctl talk | ๐Ÿ’ฌ Open AI therapy conversation | | mindctl talk vent | ๐Ÿ’จ Safe venting space | | mindctl talk socratic | ๐Ÿ” Socratic questioning | | mindctl talk wisdom | โœฆ AI wisdom quote | | mindctl talk challenge | ๐ŸŽฏ Daily wellness challenge |

Cognitive Tools

| Command | Description | |---------|-------------| | mindctl think | ๐Ÿง  Full CBT thought record | | mindctl think reframe | ๐Ÿ’ก Quick negative thought reframing | | mindctl journal write | ๐Ÿ“ Freeform journaling | | mindctl journal gratitude | ๐Ÿ™ Gratitude practice | | mindctl journal dream | ๐Ÿ”ฎ Dream journal with AI analysis | | mindctl journal analyze | ๐Ÿ“Š AI pattern analysis |

Analytics

| Command | Description | |---------|-------------| | mindctl stats today | ๐Ÿ“Š Today's wellness snapshot | | mindctl stats week | ๐Ÿ“ˆ Weekly dashboard | | mindctl stats month | ๐Ÿ“… Monthly overview with heatmap | | mindctl stats report | ๐Ÿค– AI-generated weekly narrative | | mindctl burnout | ๐Ÿ”ฅ Git burnout risk analysis | | mindctl forecast | ๐ŸŒค๏ธ Predictive mood forecast for tomorrow | | mindctl insights | ๐Ÿ”— Behavioral correlation analysis | | mindctl report | ๐Ÿ“‹ AI weekly wellness report |

Healthy Habits

| Command | Description | |---------|-------------| | mindctl habit add | โž• Create a new habit | | mindctl habit check | โœ… Check off daily habits | | mindctl sleep log | ๐Ÿ’ค Log last night's sleep | | mindctl water | ๐Ÿ’ง Log water intake | | mindctl stretch | ๐Ÿ’ช Guided desk stretches | | mindctl eyes | ๐Ÿ‘ 20-20-20 eye break | | mindctl posture | ๐Ÿง Posture check | | mindctl walk | ๐Ÿšถ Walk timer |

System

| Command | Description | |---------|-------------| | mindctl daemon start | ๐Ÿ›ก๏ธ Start background guardian | | mindctl crisis | ๐Ÿšจ Crisis resources & helplines | | mindctl crisis plan | ๐Ÿ“‹ Safety plan builder | | mindctl config setup | โš™๏ธ Configure MegaLLM API |

๐Ÿค– AI Integration (MegaLLM)

mindctl uses MegaLLM for intelligent features. Configure with:

mindctl config setup

AI-powered features:

  • Therapy conversations (CBT, DBT, motivational interviewing)
  • Mood analysis and pattern detection
  • Journal reflection and insight extraction
  • Cognitive distortion identification
  • Burnout risk assessment
  • Sleep coaching
  • Personalized meditation scripts
  • Daily challenges and wisdom
  • Weekly wellness narratives
  • Predictive mood forecasting (weighted algorithm + AI)
  • Behavioral correlation analysis (Pearson r + significance testing)
  • Weekly narrative reports (weather-metaphor storytelling)

Safety guardrails:

  • Crisis detection with automatic helpline display
  • Never diagnoses medical conditions
  • Reminds users it's not a replacement for professional therapy
  • Warm, validating, non-judgmental tone

All features work offline with intelligent fallback responses.

๐Ÿฑ Meet Pixel

Your terminal companion evolves with your wellness journey:

Lv 1-4:   ๐Ÿฅš Egg      โ€” Just starting
Lv 5-14:  ๐Ÿฑ Kitten   โ€” Building habits
Lv 15-29: ๐Ÿ˜ธ Cat      โ€” Consistent practice
Lv 30-49: ๐Ÿฆ Lion     โ€” Wellness warrior
Lv 50+:   ๐Ÿ‰ Dragon   โ€” Legendary

Pixel reacts to your activities, gets sad when you're away, and celebrates your milestones!

๐Ÿ† Achievements

  • ๐Ÿ… First Breath โ€” Complete first breathing exercise
  • ๐Ÿ… Week Warrior โ€” 7-day streak
  • ๐Ÿ… Thought Detective โ€” First CBT thought record
  • ๐Ÿ… Vulnerability โ€” Write 20 journal entries
  • ๐Ÿ… Zen Master โ€” 10 meditation sessions
  • ๐Ÿ… Centurion โ€” 100 total sessions
  • ...and many more!

๐Ÿ”’ Privacy

  • 100% local โ€” All data stored in ~/.mindctl/mindctl.db
  • No cloud โ€” No telemetry, no tracking, no data sharing
  • Encrypted journals โ€” AES-256-GCM encryption
  • Your data โ€” Export anytime, delete anytime

๐Ÿ› ๏ธ Tech Stack

  • Runtime: Node.js 18+
  • CLI Framework: Commander.js
  • Database: better-sqlite3
  • AI: MegaLLM API (OpenAI-compatible)
  • UI: Chalk, Gradient-string, Boxen, Ora, Inquirer
  • Privacy: AES-256-GCM encryption

๐Ÿ“ Project Structure

packages/cli/
โ”œโ”€โ”€ bin/mindctl.js           # Entry point
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ index.js             # CLI command registration
โ”‚   โ”œโ”€โ”€ ai.js                # MegaLLM AI engine
โ”‚   โ”œโ”€โ”€ db.js                # SQLite database layer
โ”‚   โ”œโ”€โ”€ companion.js         # Pixel companion system
โ”‚   โ”œโ”€โ”€ commands/
โ”‚   โ”‚   โ”œโ”€โ”€ checkin.js       # Mood check-in
โ”‚   โ”‚   โ”œโ”€โ”€ breathe.js       # Breathing exercises
โ”‚   โ”‚   โ”œโ”€โ”€ journal.js       # Journaling system
โ”‚   โ”‚   โ”œโ”€โ”€ think.js         # CBT thought records
โ”‚   โ”‚   โ”œโ”€โ”€ talk.js          # AI therapy chat
โ”‚   โ”‚   โ”œโ”€โ”€ burnout.js       # Git burnout analysis
โ”‚   โ”‚   โ”œโ”€โ”€ stats.js         # Analytics dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ meditate.js      # Meditation & grounding
โ”‚   โ”‚   โ”œโ”€โ”€ crisis.js        # Crisis support
โ”‚   โ”‚   โ”œโ”€โ”€ sleep.js         # Sleep tracking
โ”‚   โ”‚   โ”œโ”€โ”€ habit.js         # Habit tracker
โ”‚   โ”‚   โ”œโ”€โ”€ wellness.js      # Physical wellness
โ”‚   โ”‚   โ”œโ”€โ”€ daemon.js        # Background guardian
โ”‚   โ”‚   โ”œโ”€โ”€ config.js        # Configuration
โ”‚   โ”‚   โ”œโ”€โ”€ forecast.js      # Predictive mood forecast
โ”‚   โ”‚   โ”œโ”€โ”€ insights.js      # Correlation engine
โ”‚   โ”‚   โ””โ”€โ”€ report.js        # Weekly AI report
โ”‚   โ””โ”€โ”€ ui/
โ”‚       โ”œโ”€โ”€ theme.js         # Colors, gradients, charts
โ”‚       โ”œโ”€โ”€ animations.js    # Terminal animations
โ”‚       โ””โ”€โ”€ banner.js        # ASCII art & help
โ””โ”€โ”€ package.json

๐Ÿ… MINDCODE 2026 Tracks Covered

| Track | Coverage | |-------|----------| | Track 1 โ€” Pattern Archaeologists | Git burnout detection, typing patterns | | Track 2 โ€” Conversation Architects | AI therapy, CBT, Socratic questioning | | Track 3 โ€” Interface Alchemists | Mood-reactive terminal, animations, companion | | Track 5 โ€” Quantified Self | Sleep, mood, habits โ€” all correlated by AI | | Track 6 โ€” Wildcard | It's a CLI! With an evolving pet! That does therapy! |

๐Ÿ‘ฅ Team

Built with โค๏ธ for MINDCODE 2026.

๐Ÿ“„ License

MIT โ€” See LICENSE for details.


"The mental health crisis won't wait. Neither will we."