//termonautbylulunac27a

termonaut

0
0
0

๐Ÿš€ Termonaut

Your Terminal Journey Companion - Track, Gamify, and Level Up Your CLI Productivity

    ๐Ÿš€
   /|\
  / | \
 |  T  |
 |     |
 ||   ||
 /\   /\

Termonaut is a lightweight, privacy-focused terminal productivity tracker that gamifies your command-line experience. Transform your daily shell usage into an engaging RPG-like journey with XP, levels, badges, and shareable statsโ€”all without leaving your terminal.

โœจ Features

๐Ÿ†• New User Experience โญ New in Latest Version!

  • undefinedInteractive Setup Wizard: termonaut setup - Guided configuration for new users
  • undefinedQuick Start: termonaut quickstart - One-command setup with sensible defaults
  • undefinedSmart Onboarding: Automatic detection of existing installations
  • undefinedPermission-Safe Installation: Intelligent directory selection, no sudo required

๐ŸŽจ Three-Tier Viewing Modes โญ Enhanced Architecture!

  • undefinedSmart Mode: termonaut tui - Automatically adapts to your terminal size (default)
  • undefinedCompact Mode: termonaut tui --mode compact - Efficient layout for smaller terminals
  • undefinedFull Mode: termonaut tui --mode full - Immersive experience for wide terminals
  • undefinedMinimal Mode: termonaut stats - Lightning-fast shell output
  • undefinedConfigurable Defaults: Set your preferred mode in config file

๐Ÿ–ผ๏ธ Dynamic Avatar System โญ Responsive Design!

  • undefinedAdaptive Sizing: Avatars scale from 8x4 to 70x25 characters based on terminal size
  • undefinedMultiple Styles: Choose from pixel-art, bottts, adventurer, or avataaars themes
  • undefinedReal-time Adaptation: Automatically adjusts when you resize your terminal
  • undefinedEvolution System: Avatar appearance changes and gains new features as you level up
  • undefinedFallback System: Beautiful default avatars when network is unavailable
  • undefinedAlias Management: termonaut alias commands for easy โ€˜tnโ€™ shortcut management

๐Ÿ’ก Empty Command Stats โญ Stable Feature!

  • undefinedInstant Stats: Press Enter on empty command line to see quick stats
  • undefinedDual Modes: Minimal one-liner or rich multi-line display
  • undefinedSmart Integration: Respects your theme and privacy settings
  • undefinedFully Configurable: Enable/disable with simple config setting

๐Ÿ” Core Trackingundefined

  • undefinedCommand Logging: Automatically track every command execution
  • undefinedSession Management: Intelligent session detection and timing
  • undefinedUsage Analytics: Daily, weekly, and monthly productivity insights
  • undefinedSmart Metrics: Active time estimation, command categories, and streak tracking

๐ŸŽฎ Gamification System โญ Enhanced!

  • undefinedXP & Levels: Earn experience points for terminal usage with space-themed progression
  • undefinedAchievement Badges: Unlock ๐Ÿ… badges for milestones (20+ achievements available)
  • undefinedEaster Eggs: 22+ contextual surprises for git, docker, kubernetes, AI tools, and special moments
  • undefinedNew Command Bonuses: Extra XP for exploring new tools and commands
  • undefinedStreak Rewards: Maintain daily/weekly usage streaks for motivation
  • undefinedCategory Mastery: 17 command categories with specialized XP multipliers

๐Ÿ“Š Rich CLI Interfaceundefined

  • undefinedInteractive Stats: Beautiful terminal-native data visualization
  • undefinedMultiple Views: Session summaries, command breakdowns, and trend analysis
  • undefinedInteractive Dashboard: Modern TUI with Bubble Tea framework (termonaut tui)
  • undefinedCustomizable Display: ASCII charts, emoji themes, and configurable output
  • undefinedExport Options: JSON/CSV export for backup and integration
  • undefinedShort Aliases: Use tn instead of termonaut for all commands

๐Ÿ”„ GitHub Integration โญ Stable in v0.9.4+

  • undefinedDynamic Badges: Auto-updating Shields.io badges for your README (6 badge types)
  • undefinedProfile Generation: Complete productivity profiles in Markdown with avatar integration
  • undefinedRepository Sync: Automatic synchronization with your GitHub repos
  • undefinedGitHub Actions: Workflow templates for automated stats updates
  • undefinedHeatmap Generation: GitHub-style activity heatmaps in HTML/SVG/Markdown formats
  • undefinedStats Export: JSON and Markdown export for social sharing

๐ŸŽญ Easter Eggs & Fun โญ Enhanced in v0.9.4+

  • undefined22+ Trigger Conditions: Speed runs, coffee breaks, git operations, docker/k8s, AI tools
  • undefinedContext-Aware: Smart detection of programming languages, databases, testing frameworks
  • undefinedMotivational Messages: 30+ unique messages across all categories
  • undefinedModern Terminal Support: Optimized for Warp, iTerm2, VS Code terminals
  • undefinedConfigurable Frequency: Reduced interruption with balanced probability settings

๐Ÿš€ High Performance & Optimization โญ Optimized in v0.9.4+

  • undefinedMemory Optimized: 25% memory usage reduction with intelligent LRU cache system
  • undefinedLightning Fast: 80%+ cache hit rate for instant stats retrieval and analysis
  • undefinedSmart Monitoring: Real-time memory leak detection with automated alerts
  • undefinedObject Pooling: Reduced GC pressure through intelligent object reuse patterns
  • undefinedAsync Processing: < 1ms command logging overhead with non-blocking operations
  • undefinedDatabase Optimization: Batch operations and connection pooling for maximum throughput

๐Ÿงช Enterprise-Grade Testing โญ Quality Assured in v0.9.4+

  • undefinedComprehensive Coverage: 26 test functions across unit, integration, and benchmark tests
  • undefinedQuality Gates: 97% acceptance test pass rate with automated validation pipeline
  • undefinedPerformance Baselines: Built-in performance regression detection and monitoring
  • undefinedMemory Testing: Advanced memory leak detection and resource usage validation
  • undefinedContinuous Validation: Automated quality assurance with real-time feedback
  • undefinedBenchmark Suite: Performance testing for all critical code paths

๐Ÿ—๏ธ Modular Architecture โญ Developer-Friendly in v0.9.4+

  • undefinedComponent-Based: Clean, maintainable modular codebase with single responsibility
  • undefinedTheme System: 3 built-in themes (Space, Cyberpunk, Minimal) with extensible architecture
  • undefinedUtility Library: 38+ reusable utility functions for string, time, number, and progress operations
  • undefinedPlugin-Ready: Extensible architecture designed for seamless future enhancements
  • undefinedCode Quality: Refactored codebase with reduced complexity and improved maintainability
  • undefinedDeveloper Tools: Comprehensive development guides and contribution frameworks

๐Ÿ”’ Privacy & Performanceundefined

  • undefined100% Local: All data stays on your machine by default
  • undefinedCommand Sanitization: Smart detection and redaction of passwords, tokens, URLs
  • undefinedLightweight: Minimal performance impact with async logging
  • undefinedSQLite Storage: Fast, reliable, and portable data storage
  • undefinedNo Dependencies: Single binary with zero external requirements
  • undefinedCI Environment Detection: Automatic quiet mode for 15+ CI platforms

๐ŸŒ Homepage

Visit our geek-style homepage at: https://oiahoon.github.io/termonautundefined

The homepage features:

  • ๐ŸŽฌ Interactive terminal demos showing real Termonaut usage
  • ๐Ÿ“Š Live GitHub stats and project metrics
  • ๐ŸŽจ Terminal-inspired design with dark theme and animations
  • ๐Ÿ“ฑ Responsive layout that works on all devices
  • โšก Performance optimized with minimal dependencies

Local Development

# Start local development server
./scripts/dev-homepage.sh

# Deploy homepage (maintainers only)
./scripts/deploy-homepage.sh

๐Ÿš€ Quick Start

Installation

undefined๐ŸŽฏ Latest Optimized Version (v0.9.4+)undefined
Features enhanced performance, comprehensive testing, and modular architecture

undefinedGitHub Install (Recommended):undefined

# Install from GitHub releases
curl -sSL https://raw.githubusercontent.com/oiahoon/termonaut/main/install.sh | bash

undefinedHomebrew Installation:undefined

# Install from our custom tap
brew tap oiahoon/termonaut
brew install termonaut

# Or install from homebrew-core (coming soon!)
brew install termonaut

undefinedManual Installation:undefined

# Download latest release for your platform
# Linux (x64)
wget https://github.com/oiahoon/termonaut/releases/latest/download/termonaut-linux-amd64
chmod +x termonaut-linux-amd64
sudo mv termonaut-linux-amd64 /usr/local/bin/termonaut

# macOS (Intel)
wget https://github.com/oiahoon/termonaut/releases/latest/download/termonaut-darwin-amd64
chmod +x termonaut-darwin-amd64
sudo mv termonaut-darwin-amd64 /usr/local/bin/termonaut

# macOS (Apple Silicon)
wget https://github.com/oiahoon/termonaut/releases/latest/download/termonaut-darwin-arm64
chmod +x termonaut-darwin-arm64
sudo mv termonaut-darwin-arm64 /usr/local/bin/termonaut

undefinedBuild from Source:undefined

git clone https://github.com/oiahoon/termonaut.git
cd termonaut
go build -o termonaut cmd/termonaut/*.go
sudo mv termonaut /usr/local/bin/

Setup

๐Ÿ†• New User? Start Here:undefined

undefinedInteractive Setup (Recommended):undefined

termonaut setup
# Guided configuration with explanations

undefinedQuick Setup:undefined

termonaut quickstart
# One-command setup with sensible defaults

undefinedManual Setup:undefined

termonaut init
# Install shell integration manually

This automatically adds hooks to your ~/.bashrc or ~/.zshrc. Restart your terminal or run:

source ~/.bashrc  # or ~/.zshrc

undefined๐Ÿ’ก Pro Tip: Use tn as a short alias for termonaut in all commands!

undefined๐Ÿ“– Need detailed setup help? Check our Quick Start Guide for step-by-step instructions!

๐Ÿ“– Usage

Basic Commands

undefinedView Your Stats:undefined

termonaut stats              # Today's overview (minimal mode)
termonaut stats --weekly     # This week's stats
termonaut stats --monthly    # This month's statistics

# Or use the short alias:
tn stats                     # Today's overview
tn stats --weekly            # This week's stats
tn stats --monthly           # This month's statistics

undefinedInteractive Dashboard:undefined

termonaut tui                # Smart mode (adapts to terminal size)
termonaut tui --mode compact # Compact mode for smaller terminals
termonaut tui --mode full    # Full mode for wide terminals
termonaut tui --mode minimal # Text-only stats output

# Short commands:
tn tui                       # Smart mode dashboard
tn tui -m compact           # Compact mode
tn tui -m full              # Full mode

undefinedAvatar System:undefined

# Avatar system is integrated into TUI and stats display
# Avatar management via configuration:
termonaut config set avatar_style pixel-art    # Change avatar style
termonaut config set avatar_size large         # Set avatar size preference

# Short commands:
tn config set avatar_style bottts              # Change to robot style
tn config get avatar                           # View avatar settings

undefinedAlias Management:undefined

termonaut alias info         # Show alias information and status
termonaut alias check        # Check if 'tn' alias exists
termonaut alias create       # Create 'tn' shortcut manually
termonaut alias remove       # Remove 'tn' alias

# Short commands:
tn alias info                # Show alias information
tn alias check               # Check alias status

undefinedConfiguration:undefined

termonaut config set theme emoji       # Enable emoji theme
termonaut config set gamification true # Toggle XP system
termonaut config get                    # View all settings

# Short commands:
tn config set theme emoji              # Enable emoji theme
tn config set gamification true        # Toggle XP system
tn config get                          # View all settings

undefinedData Management:undefined

# Data export/import features are planned for future release
# Current data location: ~/.termonaut/termonaut.db
# Manual backup: cp ~/.termonaut/termonaut.db ~/backup/

# Advanced data operations:
termonaut advanced bulk --help    # Bulk operations on command data
termonaut advanced filter --help  # Advanced filtering and search

Example Output

$ termonaut stats --today

๐Ÿš€ Today's Terminal Stats (2024-01-15)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Commands Executed: 127 ๐ŸŽฏ
Active Time: 3h 42m โฑ๏ธ
Session Count: 4 ๐Ÿ“ฑ
New Commands: 3 โญ
Current Streak: 12 days ๐Ÿ”ฅ

Top Commands:
git (23) โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
ls (18)  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
cd (15)  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
vim (12) โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ

๐ŸŽฎ Level 8 Astronaut (2,150 XP)
Progress to Level 9: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘ 75%

โš™๏ธ Configuration

Termonaut uses a TOML configuration file at ~/.termonaut/config.toml:

# Display and Theme
display_mode = "enter"          # Options: off, enter, ps1, floating
theme = "emoji"                 # Options: minimal, emoji, ascii
show_gamification = true        # Enable XP and leveling system

# Tracking Behavior
idle_timeout_minutes = 10       # Session timeout
track_git_repos = true          # Include git repository context
command_categories = true       # Categorize commands automatically

# GitHub Integration (Optional)
sync_enabled = false            # Enable GitHub sync
sync_repo = "username/termonaut-profile"
badge_update_frequency = "daily"

# Privacy
opt_out_commands = ["password", "secret"]  # Commands to ignore
anonymous_mode = false          # Strip personal paths from logs

๐ŸŽ–๏ธ Achievement System

Unlock 20+ badges as you progress:

Badge Description Criteria
๐Ÿš€ First Launchundefined Welcome aboard! Execute your first command
๐ŸŒŸ Explorerundefined Command discoverer Use 50 unique commands
๐Ÿ† Centuryundefined Daily powerhouse 100 commands in one day
๐Ÿ”ฅ Streak Keeperundefined Consistency master 7-day usage streak
๐Ÿ‘จโ€๐Ÿš€ Space Commanderundefined Terminal veteran Reach level 10
๐Ÿช Cosmic Explorerundefined Universe navigator 30-day usage streak
โšก Lightning Fastundefined Speed demon 500 commands in one day
๐Ÿ›ธ Master Navigatorundefined Elite astronaut Reach level 25
๐Ÿƒโ€โ™‚๏ธ Shell Sprinterundefined Speed demon Execute commands rapidly
๐Ÿง™โ€โ™‚๏ธ Config Whispererundefined Configuration master Edit config files frequently
๐ŸŒ™ Night Coderundefined Night owl Code during late hours
๐Ÿงฌ Git Commanderundefined Version control expert Master git operations
๐Ÿ”ฅ Pro Streakerundefined Consistency champion Maintain long streaks
๐Ÿ›ก๏ธ Sudo Smasherundefined Admin privileges user Use sudo commands
๐Ÿณ Docker Whaleundefined Container expert Work with Docker
๐ŸŽญ Vim Escape Artistundefined Editor ninja Master vim commands
๐Ÿ’ช Error Survivorundefined Resilience master Handle command failures

View all achievements with tn tui and navigate to the Achievements tab!

๐Ÿ”ง Advanced Features

๐Ÿ”„ GitHub Integration & Sync

Automatically sync your terminal stats to GitHub and display dynamic badges:

Quick Setup

# Interactive setup (recommended)
termonaut github sync setup

# Or manual configuration:
termonaut config set sync_enabled true
termonaut config set sync_repo username/termonaut-profile
termonaut config set badge_update_frequency daily

Manual & Automatic Sync

# Manual sync (immediate)
termonaut github sync now

# Check sync status
termonaut github sync status

# View available commands
termonaut github --help

Generate Dynamic Badges

# Generate all badges
termonaut github badges generate

# Generate profile
termonaut github profile generate

# Setup GitHub Actions for automation
termonaut github actions generate termonaut-stats-update

Add Badges to Your README

![Commands](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/username/termonaut-profile/main/badges/commands.json)
![Level](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/username/termonaut-profile/main/badges/level.json)
![Streak](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/username/termonaut-profile/main/badges/streak.json)
![Productivity](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/username/termonaut-profile/main/badges/productivity.json)
![Last Active](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/username/termonaut-profile/main/badges/last-active.json)

Sync Features

  • undefined๐Ÿ”„ Automatic Sync: Background sync based on frequency (hourly/daily/weekly)
  • undefined๐Ÿ“Š Profile Generation: Complete productivity profiles in Markdown
  • undefined๐Ÿท๏ธ Dynamic Badges: 5+ badge types with real-time data
  • undefined๐Ÿ“ˆ Heatmaps: Visual activity heatmaps (HTML/SVG/Markdown)
  • undefinedโšก GitHub Actions: Automated workflows for updates
  • undefined๐Ÿ”’ Privacy: Only syncs aggregated stats, no sensitive data

Shell Prompt Integration

Add your stats to your shell prompt:

# Add to ~/.bashrc or ~/.zshrc
export PS1="$(termonaut prompt) $PS1"

API and Integrations

Advanced data operations:

termonaut advanced analytics --help    # Advanced analytics features
termonaut advanced api --help          # API server for integrations
termonaut github sync --help           # GitHub integration features

๐Ÿ—๏ธ Project Structure

~/.termonaut/
โ”œโ”€โ”€ config.toml           # User configuration
โ”œโ”€โ”€ termonaut.db         # SQLite database
โ”œโ”€โ”€ termonaut.log        # Application logs
โ”œโ”€โ”€ cache/
โ”‚   โ”œโ”€โ”€ export.json      # Latest export data
โ”‚   โ””โ”€โ”€ badges/          # Generated badge files
โ””โ”€โ”€ backups/             # Automatic daily backups

๐Ÿšง Feature Status

โœ… Fully Implemented

  • undefinedCore Tracking: Command logging, session management, analytics
  • undefinedGamification: XP system, achievements, easter eggs
  • undefinedTUI Interface: Interactive dashboard with all tabs functional
  • undefinedGitHub Integration: Badges, profiles, sync, GitHub Actions
  • undefinedNew User Experience: Setup wizard, quickstart, alias management
  • undefinedAdvanced Features: Shell integration, API server, bulk operations

๐Ÿ”„ In Development

  • undefinedAvatar CLI Commands: Direct avatar management via command line
  • undefinedData Export/Import: JSON/CSV export and backup restoration
  • undefinedEnhanced Configuration: More granular config management

๐Ÿ“‹ Planned Features

  • undefinedPlugin System: Extensible architecture for custom features
  • undefinedSocial Features: Leaderboards and community sharing
  • undefinedAdvanced Analytics: Machine learning insights
  • undefinedMobile Companion: Stats viewing on mobile devices

๐Ÿค Contributing

We welcome contributions! Please see our Development Guide for:

  • Development setup and workflow
  • Architecture overview
  • Testing guidelines
  • Code style and standards

Quick Development Setup

git clone https://github.com/oiahoon/termonaut.git
cd termonaut
make dev-setup    # Install dependencies and dev tools
make test         # Run test suite
make build        # Build binary

๐Ÿ“Š Roadmap

  • v0.1
  • v0.2
  • v0.5
  • v0.9
  • v0.9.4
  • v1.0
  • v1.x

See our Project Planning for detailed milestones.

๐Ÿ“„ License

MIT License - see LICENSE for details.

๐Ÿ™ Acknowledgments

  • Inspired by terminal productivity tools and gaming mechanics
  • Built with โค๏ธ for the command-line community
  • Special thanks to contributors and beta testers

undefinedโ€œHack your habits from the shell.โ€ ๐Ÿš€

Transform your terminal from a tool into an adventure. Every command is a step toward mastery.

For detailed documentation, visit our Wiki or run termonaut help.

[beta]v0.14.0