{"id":29744680,"url":"https://github.com/developerpuneet/codecharm","last_synced_at":"2025-07-26T05:33:28.174Z","repository":{"id":304450461,"uuid":"1018809503","full_name":"DeveloperPuneet/CodeCharm","owner":"DeveloperPuneet","description":"VS Code extension that adds AI-powered inline comments to selected code using Google Gemini. Simple, fast, and emoji-rich 💬✨","archived":false,"fork":false,"pushed_at":"2025-07-13T16:21:10.000Z","size":2704,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-13T17:42:57.759Z","etag":null,"topics":["ai","ai-powered-tools","ai-tool","extension","extensions","vscode-extension","vscode-tool"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=DeveloperPuneet.CodeCharm","language":"JavaScript","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/DeveloperPuneet.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,"zenodo":null}},"created_at":"2025-07-13T05:01:36.000Z","updated_at":"2025-07-13T16:21:13.000Z","dependencies_parsed_at":"2025-07-13T17:43:05.463Z","dependency_job_id":null,"html_url":"https://github.com/DeveloperPuneet/CodeCharm","commit_stats":null,"previous_names":["developerpuneet/codewhiz","developerpuneet/codecharm"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DeveloperPuneet/CodeCharm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperPuneet%2FCodeCharm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperPuneet%2FCodeCharm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperPuneet%2FCodeCharm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperPuneet%2FCodeCharm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeveloperPuneet","download_url":"https://codeload.github.com/DeveloperPuneet/CodeCharm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperPuneet%2FCodeCharm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267123524,"owners_count":24039457,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","ai-powered-tools","ai-tool","extension","extensions","vscode-extension","vscode-tool"],"created_at":"2025-07-26T05:33:04.662Z","updated_at":"2025-07-26T05:33:28.166Z","avatar_url":"https://github.com/DeveloperPuneet.png","language":"JavaScript","readme":"# 🧠 CodeCharm — AI-Powered Code Comment Generator for VS Code\n\nCodeCharm is your intelligent VS Code extension that generates **inline code comments** using Google Gemini models. It uses your selected code and enhances it with **emoji-rich, concise comments** or **refactors it for readability**.\n\n\u003e 🚀 Now updated with **multi-model fallback support** and **secure API key input**!\n\n---\n\n## 🌟 Features\n\n- ✍️ Generate **inline code comments** with emojis — clean and fun.\n- ♻️ Refactor messy code to improve readability.\n- ⌨️ **Shortcut support**:\n  - `Ctrl + Win + J` → Add Inline Comments\n  - `Ctrl + Win + G` → Refactor Code\n- 🔁 **Model Fallback Support**: Uses the following Gemini models in this order:\n  1. `gemini-2.0-flash-lite`\n  2. `gemini-2.0-flash`\n  3. `gemini-2.5-flash-lite`\n  4. `gemini-2.5-pro`\n- 🔐 **Secure API Key Storage** in VS Code settings.\n- 🧠 Uses your **own API key**, no sharing required.\n\n---\n\n## 🔑 Setup — Add Your API Key\n\nTo use CodeCharm, you'll need your **own Google Gemini API key**:\n\n1. Go to [Google AI Studio](https://aistudio.google.com/app/apikey).\n2. Copy your API key.\n3. Open VS Code.\n4. Press `Ctrl + Win + J` or `Ctrl + Win + G` for the first time.\n5. A secure input box will appear → paste your key there.\n6. It will be saved automatically in:  \n   **`CodeCharm.zetaFlux`** in your VS Code settings.\n\n\u003e 🔐 Your key stays local \u0026 secure — not shared or stored remotely.\n\n---\n\n## 🚀 How to Use\n\n1. Select a block of code.\n2. Press:\n   - `Ctrl + Win + J` → for inline comments\n   - `Ctrl + Win + G` → to refactor code\n3. CodeCharm will generate and replace your selection with an improved version.\n\n---\n\n## 🧪 Example Output\n\n### Before:\n```js\nfunction getUser(id) {\n  return db.query(\"SELECT * FROM users WHERE id = \" + id);\n}\n```\n\n## After (Ctrl + Win + J):\n```js\nfunction getUser(id) {\n  return db.query(\"SELECT * FROM users WHERE id = \" + id); // 🧑‍💻 Query user by ID\n}\n```\n\n## 📦 Extension Info\n\n- 📁 **Extension ID**: `CodeCharm`\n- 👨‍💻 **Publisher**: [`DeveloperPuneet`](https://github.com/DeveloperPuneet)\n- 🔗 **GitHub Repo**: [CodeCharm](https://github.com/DeveloperPuneet/CodeCharm)\n- 🧩 **VS Code Version**: `^1.50.0` and above\n- 🧠 **AI Models Used**:\n  - `gemini-2.0-flash-lite` (primary)\n  - `gemini-2.0-flash`\n  - `gemini-2.5-flash-lite`\n  - `gemini-2.5-pro`\n\n## 🛟 Troubleshooting\n\n- ❌ **Getting No Output or Errors?**\n  - Make sure your Gemini API key is valid.\n  - If it's missing or expired, you'll be prompted to input it when you try using the extension.\n  - To manually update or check your key:  \n    `Settings → Extensions → CodeCharm → zetaFlux`\n\n- ⚠️ **Network Errors?**\n  - Check your internet connection or if Google's Gemini API is reachable.\n  - Avoid hammering it with hundreds of requests/minute — Google don’t play 😬\n\n## 🧤 Contributions\n\n- 💬 Ideas, feature requests, and PRs are all welcome!\n- Fork it, star it ⭐, break it, rebuild it — just don’t write spaghetti 🍝\n- All feedback = good feedback, especially with emojis.\n\n## 📜 License\n\n**MIT** — Use it, hack it, improve it.  \nYou break it, you own it. 💥\n\n\u003e 💬 Built with brain, bugs \u0026 caffeine by [@DeveloperPuneet](https://github.com/DeveloperPuneet)  \n\u003e *“If your code can’t explain itself, at least let it drop some emoji bars 🎯.”*","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperpuneet%2Fcodecharm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperpuneet%2Fcodecharm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperpuneet%2Fcodecharm/lists"}