{"id":23556114,"url":"https://github.com/ernivani/my-code-activity-ext","last_synced_at":"2025-11-01T16:30:27.525Z","repository":{"id":269632113,"uuid":"908045402","full_name":"ernivani/my-code-activity-ext","owner":"ernivani","description":"VS Code extension that automatically tracks coding activity and commits to GitHub, helping developers maintain an accurate record of their coding sessions.","archived":false,"fork":false,"pushed_at":"2025-01-03T19:27:44.000Z","size":105,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T19:40:28.160Z","etag":null,"topics":["automation","coding-activity","developer-tools","github-api","productivity","time-tracking","typescript","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ernivani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-25T01:10:18.000Z","updated_at":"2025-01-03T19:27:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"3918eaae-97db-4027-b6b7-70e016edd3e7","html_url":"https://github.com/ernivani/my-code-activity-ext","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"acc47d8767c864f157aafa011466667a1d7b6f70"},"previous_names":["ernivani/my-code-activity-ext"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernivani%2Fmy-code-activity-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernivani%2Fmy-code-activity-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernivani%2Fmy-code-activity-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernivani%2Fmy-code-activity-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ernivani","download_url":"https://codeload.github.com/ernivani/my-code-activity-ext/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239301994,"owners_count":19616451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","coding-activity","developer-tools","github-api","productivity","time-tracking","typescript","vscode-extension"],"created_at":"2024-12-26T13:26:17.942Z","updated_at":"2025-11-01T16:30:27.471Z","avatar_url":"https://github.com/ernivani.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Code Activity Extension\n\n[![Version](https://img.shields.io/visual-studio-marketplace/v/ernicani.my-code-activity-ext)](https://marketplace.visualstudio.com/items?itemName=ernicani.my-code-activity-ext)\n[![Downloads](https://img.shields.io/visual-studio-marketplace/d/ernicani.my-code-activity-ext)](https://marketplace.visualstudio.com/items?itemName=ernicani.my-code-activity-ext)\n[![Rating](https://img.shields.io/visual-studio-marketplace/r/ernicani.my-code-activity-ext)](https://marketplace.visualstudio.com/items?itemName=ernicani.my-code-activity-ext)\n\nTrack your coding activity automatically and build a comprehensive history of your development journey. This VS Code extension seamlessly records your coding sessions and commits them to a GitHub repository, helping you maintain a detailed log of your programming activities.\n\n## ✨ Key Features\n\n- **🔄 Enhanced Activity Tracking**\n  - Smart change detection and consolidation\n  - Function-level modification tracking\n  - Intelligent duplicate filtering\n  - Language-aware code analysis\n  - Automatic commit generation\n\n- **📊 Interactive Dashboard**\n  - Real-time activity visualization\n  - Daily/Weekly/Monthly views\n  - Project distribution charts\n  - Language usage breakdown\n  - Activity heatmaps\n  - Dark/Light theme support\n\n- **🤖 AI-Powered Insights**\n  - Generate meaningful commit messages using AI\n  - Local LLM support via Ollama for privacy\n  - Context-aware messages based on code changes\n  - Function-level change detection\n  - Smart change consolidation\n\n- **🔐 Secure \u0026 Private**\n  - Secure GitHub authentication\n  - Support for custom Git repositories\n  - Support for GitHub Enterprise\n  - Full control over your data\n  - Local data processing\n\n- **⚡ Developer Experience**\n  - One-click GitHub sign-in\n  - Automatic change tracking\n  - Real-time statistics\n  - Customizable settings\n  - Minimal setup needed\n\n## 🚀 Visual Analytics Dashboard\n\nThe extension now includes a powerful web-based dashboard for visualizing your coding activity. Access it by:\n1. Clicking the \"Code Tracking\" status bar item in VS Code\n2. Using the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and searching for \"Code Activity: Open Dashboard\"\n3. The dashboard will open in your default browser at `http://localhost:3000`\n\n### 📊 Interactive Analytics\n- Real-time activity tracking with daily/weekly/monthly views\n- Project distribution visualization with doughnut charts\n- Language usage breakdown with time percentages\n- Hourly activity heatmap showing peak coding times\n\n### 🌈 Dashboard Features\n- Modern, GitHub-inspired interface\n- Dark/Light theme support matching VS Code preferences\n- Responsive design for all screen sizes\n- Real-time data updates\n- Export capabilities (coming soon)\n\n### 📈 Available Charts\n- Activity timeline with trend analysis\n- Project distribution pie charts\n- Language usage breakdown\n- Hourly activity heatmap\n- Detailed statistics cards\n\n## 🔐 Authentication Options\n\nThe extension now supports two authentication methods:\n\n### 1. GitHub Authentication\n1. Open the Command Palette\n2. Run \"Code Activity: Sign in with GitHub\"\n3. Follow the browser authentication flow\n4. Your activity will be tracked to a private GitHub repository\n\n### 2. Custom Token \u0026 Repository\n1. Set up your custom Git repository\n2. Open VS Code settings\n3. Configure `codeTracker.customRemoteUrl` with your repository URL\n4. Run \"Code Activity: Set Custom Token\" from the Command Palette\n5. Enter your Git access token\n6. The extension will use your custom repository for tracking\n\n## 🚀 Example Usage\n\nHere's an example of the enhanced activity summary that gets generated:\n\n# Activity Summary\n\n## Overall Statistics\n\n| Stat                   | Value                                |\n| ---------------------- | ------------------------------------ |\n| **Lines Added** (➕)   | 3,847                               |\n| **Lines Removed** (➖) | 1,256                               |\n| **Net Change** (↕)    | +2,591                              |\n| **Active Time** (⌚)   | 6 hours 45 minutes                  |\n| **Functions Modified** | 24                                   |\n| **Languages Used**     | TypeScript, SCSS, SVG               |\n\n## Code Changes\n\n### Modified Files\n- **src/features/dashboard/components/AnalyticsChart.tsx** (+856, -234)\n  - Functions: updateChartData, calculateMetrics\n- **src/api/activityTracker.ts** (+745, -122)\n  - Functions: trackChanges, aggregateStats\n- **src/hooks/useActivityMetrics.ts** (+523, -89)\n  - Functions: useMetrics, processData\n\n## Visualizations\n\n### By File Type (Lines Changed)\n\n```mermaid\npie showData\ntitle Lines changed by file type\n\".tsx\" : 1090\n\".ts\" : 2147\n\".scss\" : 523\n\".svg\" : 254\n\".md\" : 323\n\".json\" : 343\n```\n\n### By Hour (Activity Heatmap)\n\n```mermaid\npie showData\ntitle Coding activity by hour (count of changes)\n\"09h\" : 450\n\"10h\" : 785\n\"11h\" : 923\n\"13h\" : 654\n\"14h\" : 589\n\"15h\" : 446\n```\n\n## 🚀 Getting Started\n\n1. Install the extension from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=ernicani.my-code-activity-ext)\n2. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)\n3. Run `Sign in with GitHub` to authenticate\n4. Start coding! The extension will automatically track your activity\n\n## ⚙️ Configuration\n\nAccess settings through VS Code's settings (Ctrl+,):\n\n\\`\\`\\`json\n{\n    // Minutes between activity commits\n    \"codeTracker.commitInterval\": 5,\n    \n    // Custom Git repository URL (for non-GitHub tracking)\n    \"codeTracker.customRemoteUrl\": \"https://your-git-server.com/user/repo.git\",\n    \n    // Git branch name for tracking data\n    \"codeTracker.branchName\": \"main\",\n    \n    // Enable AI-generated commit messages\n    \"codeTracker.enableAiCommits\": false,\n    \n    // Ollama server URL\n    \"codeTracker.ollamaUrl\": \"localhost:11434\",\n    \n    // Ollama model for commit messages\n    \"codeTracker.ollamaModel\": \"codellama\"\n}\n\\`\\`\\`\n\n### AI Commit Messages\n\nThe extension can generate meaningful commit messages using AI:\n\n1. Install [Ollama](https://ollama.ai/) on your system\n2. Pull the codellama model: `ollama pull codellama`\n3. Enable AI commits in VS Code settings\n4. The extension will now generate context-aware commit messages\n\nExample AI-generated commit message:\n\\`\\`\\`\nfeat(tracking): update dashboard components and analytics\n\n- Modified functions: updateChartData, calculateMetrics\n- Files: AnalyticsChart.tsx, activityTracker.ts\n- Activity duration: 15 minutes\n- Function changes: 2 added, 1 modified\n\\`\\`\\`\n\n## 📊 Enhanced Tracking Details\n\nThe extension now tracks:\n\n- **Code Changes**\n  - Lines added/removed\n  - Function-level modifications\n  - Language-specific changes\n  - Project context\n\n- **Time Analytics**\n  - Active coding time\n  - Time per project\n  - Peak activity hours\n  - Language usage time\n\n- **Project Metrics**\n  - Project-specific statistics\n  - Language distribution\n  - Most modified files\n  - Function change frequency\n\n## 🔧 System Requirements\n\n- VS Code 1.75.0 or higher\n- Git installed on your system\n- GitHub account (or custom Git repository)\n- Internet connection for syncing\n- Ollama (optional, for AI commit messages)\n\n## 🤝 Contributing\n\nWe welcome contributions! Please see our [CONTRIBUTING.md](CONTRIBUTING.md) guide for details on:\n\n- Development setup and workflow\n- Code style guidelines\n- Pull request process\n- Testing requirements\n- Available scripts and commands\n- Extension configuration\n- Community guidelines\n\nBefore contributing:\n1. Fork and clone the repository\n2. Install dependencies: `npm install`\n3. Create a feature branch\n4. Make your changes following our guidelines\n5. Submit a pull request\n\nFor detailed instructions, see [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🔗 Links\n\n- [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=ernicani.my-code-activity-ext)\n- [GitHub Repository](https://github.com/ernivani/my-code-activity-ext)\n- [Issue Tracker](https://github.com/ernivani/my-code-activity-ext/issues)\n\n---\n\n**Note**: Your activity data is stored in a Git repository that you control. The extension never shares your coding activity without your explicit permission.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernivani%2Fmy-code-activity-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fernivani%2Fmy-code-activity-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernivani%2Fmy-code-activity-ext/lists"}