{"id":31364480,"url":"https://github.com/avdeshjadon/codemanipulate","last_synced_at":"2025-09-27T07:53:42.898Z","repository":{"id":311258097,"uuid":"1043135323","full_name":"avdeshjadon/CodeManipulate","owner":"avdeshjadon","description":" Convert code between any programming language in seconds! AI-powered detection, cross-language translation, and professional formatting - all in one tool.","archived":false,"fork":false,"pushed_at":"2025-09-15T13:44:32.000Z","size":2302,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-15T15:26:42.313Z","etag":null,"topics":["code-converter","code-detection","code-formatter","code-translation","developer-tools","prettier","programming-tools","syntax-converter"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/avdeshjadon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-23T08:01:23.000Z","updated_at":"2025-09-15T13:44:37.000Z","dependencies_parsed_at":"2025-08-25T08:00:10.087Z","dependency_job_id":null,"html_url":"https://github.com/avdeshjadon/CodeManipulate","commit_stats":null,"previous_names":["avdeshjadon/changelang","avdeshjadon/codemanipulate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avdeshjadon/CodeManipulate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdeshjadon%2FCodeManipulate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdeshjadon%2FCodeManipulate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdeshjadon%2FCodeManipulate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdeshjadon%2FCodeManipulate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avdeshjadon","download_url":"https://codeload.github.com/avdeshjadon/CodeManipulate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdeshjadon%2FCodeManipulate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277200294,"owners_count":25778129,"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-09-27T02:00:08.978Z","response_time":73,"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":["code-converter","code-detection","code-formatter","code-translation","developer-tools","prettier","programming-tools","syntax-converter"],"created_at":"2025-09-27T07:53:41.933Z","updated_at":"2025-09-27T07:53:42.893Z","avatar_url":"https://github.com/avdeshjadon.png","language":"HTML","readme":"# 🔄 CodeManipulate — AI-Powered Code Language Converter \u0026 Formatter\n\n[![GitHub Pages](https://img.shields.io/badge/GitHub%20Pages-Deployed-brightgreen)](https://avdeshjadon.github.io/CodeManipulate)\n[![Node.js](https://img.shields.io/badge/Node.js-v18%2B-green)](https://nodejs.org/)\n[![Express.js](https://img.shields.io/badge/Express.js-v4.18-blue)](https://expressjs.com/)\n[![Google AI](https://img.shields.io/badge/Google%20AI-Gemini-orange)](https://ai.google.dev/)\n[![License](https://img.shields.io/badge/License-MIT-yellow)](LICENSE)\n\n## 🌟 Overview\n\n**CodeManipulate** (formerly CodeLangConvert) is a sophisticated, AI-powered web application designed to revolutionize how developers work with code across multiple programming languages. Built with cutting-edge Google Generative AI technology, this tool provides intelligent code language detection, seamless cross-language conversion, and professional code formatting capabilities.\n\n### 🎯 Key Highlights\n\n- **🧠 Advanced AI Detection**: Utilizes Google's Gemini AI for accurate language detection with 99%+ accuracy\n- **⚡ Lightning Fast**: Process up to 5000 characters of code in under 3 seconds\n- **🌐 Universal Support**: Covers 25+ programming languages and frameworks\n- **🎨 Professional Formatting**: Built-in Prettier integration for consistent code styling\n- **📱 Responsive Design**: Fully optimized for desktop, tablet, and mobile devices\n- **🌗 Dark/Light Themes**: Eye-friendly themes for extended coding sessions\n- **📂 File Upload Support**: Direct file processing for multiple formats\n- **🔒 Privacy First**: No code storage, all processing happens client-side where possible\n\n---\n\n## ✨ Comprehensive Feature Set\n\n### 🔍 Intelligent Code Detection\n- **Auto-Detection Engine**: Powered by Google Gemini AI with machine learning algorithms\n- **Syntax Analysis**: Deep parsing of code structure, keywords, and patterns\n- **Multi-Language Support**: Detects 25+ languages including modern frameworks\n- **Confidence Scoring**: Provides accuracy percentages for detection results\n- **Edge Case Handling**: Manages mixed-language files and code snippets\n\n### 🔁 Advanced Code Conversion\n- **Cross-Language Translation**: Convert between any supported language pairs\n- **Context Preservation**: Maintains logic flow, variable naming, and code structure\n- **Comment Translation**: Preserves and translates code comments\n- **Framework Adaptation**: Adapts to target language conventions and best practices\n- **Error Handling**: Graceful handling of conversion limitations and edge cases\n\n### 🧹 Professional Code Formatting\n- **Multi-Language Formatting**: Supports 17 major languages and formats\n- **Customizable Rules**: Configurable indentation, spacing, and style preferences\n- **Real-Time Processing**: Instant formatting with live preview\n- **Consistency Enforcement**: Ensures uniform code style across projects\n- **Integration Ready**: Compatible with popular IDE formatting standards\n\n### 📂 File Processing Capabilities\n- **Multiple Format Support**: `.js`, `.py`, `.cpp`, `.ts`, `.json`, `.html`, `.css`, and more\n- **Drag \u0026 Drop Interface**: Intuitive file upload with visual feedback\n- **Batch Processing**: Handle multiple files simultaneously\n- **Size Optimization**: Efficient processing of large code files\n- **Preview Mode**: Review files before processing\n\n### 🎨 User Experience Features\n- **Intuitive Interface**: Clean, modern design with minimal learning curve\n- **Real-Time Feedback**: Live character count, progress indicators, and status updates\n- **Copy-to-Clipboard**: One-click copying with success notifications\n- **Download Results**: Export converted code to various file formats\n- **History Tracking**: Session-based history of recent conversions (no persistent storage)\n\n---\n\n## 🛠️ Technical Architecture\n\n### 🏗️ System Architecture\n\n```\n┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐\n│   Frontend      │    │   Backend       │    │   AI Service    │\n│   (Client-Side) │◄───┤   (Node.js)     │◄───┤   (Google AI)   │\n└─────────────────┘    └─────────────────┘    └─────────────────┘\n        │                       │                       │\n        ▼                       ▼                       ▼\n┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐\n│ • HTML5/CSS3    │    │ • Express.js    │    │ • Gemini API    │\n│ • Vanilla JS    │    │ • Body Parser   │    │ • NLP Models    │\n│ • Prettier.js   │    │ • CORS          │    │ • ML Algorithms │\n│ • File APIs     │    │ • dotenv        │    │ • Cloud Scale   │\n└─────────────────┘    └─────────────────┘    └─────────────────┘\n```\n\n### 🧠 AI Processing Pipeline\n\n1. **Input Sanitization**: Clean and validate user input\n2. **Language Detection**: AI-powered syntax and pattern analysis\n3. **Context Analysis**: Understand code structure and dependencies\n4. **Translation Engine**: Convert logic and syntax to target language\n5. **Post-Processing**: Format, optimize, and validate output\n6. **Quality Assurance**: Error checking and consistency validation\n\n### 🌐 Frontend Architecture\n\n**Core Technologies:**\n- **HTML5**: Semantic markup with accessibility features\n- **CSS3**: Modern styling with Flexbox and Grid layouts\n- **Vanilla JavaScript**: ES6+ features for optimal performance\n- **Web APIs**: File API, Clipboard API, Local Storage API\n\n**Key Components:**\n- **Language Selector**: Dynamic dropdown with search functionality\n- **Code Editor**: Syntax-highlighted text areas with line numbers\n- **File Uploader**: Drag-and-drop with progress indicators\n- **Theme Controller**: Dark/light mode with system preference detection\n- **Result Panel**: Formatted output with copy/download options\n\n---\n\n## 📦 Detailed Project Structure\n\n```\nCodeManipulate/\n├── images/                          (📁 Contains static images/icons used in the website)\n│   └── favicon.ico                  (🌟 Favicon for the browser tab icon)\n|   └── Screenshot.png               (📁 Website Screenshot )\n│\n├── node_modules/                    (📁 Installed dependencies via npm; auto-generated folder)\n│\n├── public/                          (📁 Main public-facing files for frontend)\n│\n│   ├── css/                         (📁 All stylesheets used for styling the frontend)\n│   │   ├── formatter.css            (🎨 Styles specifically for the formatter page/component)\n│   │   └── style.css                (🎨 General styles for the main index/home page)\n│\n│   ├── script/                      (📁 JavaScript files for app logic \u0026 functionality)\n│   │   ├── formatter.js             (🧠 Handles code formatting using supported libraries)\n│   │   └── main.js                  (🧠 Controls UI interactions, language conversion, theme toggling)\n│\n│   ├── formatter.html               (📝 Dedicated page for code formatting feature only)\n│   └── index.html                   (🏠 Main homepage with language detection \u0026 code conversion)\n│\n├── .env                             (🔐 Stores API keys like Google Gemini — not shared publicly)\n├── .gitignore                       (🚫 Tells Git to ignore files/folders like node_modules, .env)\n│\n├── package.json                     (📦 Declares project metadata, scripts, and dependencies)\n├── package-lock.json                (📦 Auto-generated file that locks dependency versions for reproducibility)\n│\n├── LICENSE                          (📝 MIT License)  \n|\n├── server.js                        (🖥️ Node.js + Express backend server to handle API requests to Gemini)\n└── README.md                        (📘 Documentation about your project, features, usage, etc.)\n\n```\n\n---\n\n## 🚀 Quick Start Guide\n\n### 🔧 Prerequisites\n\n**System Requirements:**\n- **Node.js**: v18.0.0 or higher\n- **npm**: v8.0.0 or higher\n- **Git**: Latest stable version\n- **Modern Browser**: Chrome 90+, Firefox 88+, Safari 14+, Edge 90+\n\n**API Requirements:**\n- Google AI Platform account\n- Valid Gemini API key\n- Sufficient API quota for your usage\n\n### ⚡ Installation Steps\n\n1. **Clone the Repository**\n   ```bash\n   git clone https://github.com/avdeshjadon/CodeManipulate.git\n   cd CodeManipulate\n   ```\n\n2. **Install Dependencies**\n   ```bash\n   npm install\n   ```\n\n3. **Configure Environment Variables**\n   ```env\n   # Google AI Configuration\n   GOOGLE_API_KEY=your_gemini_api_key_here\n   ```\n\n4. **Start Development Server**\n   ```bash\n   npm run dev\n   # or\n   node server.js\n   ```\n\n5. **Access Application**\n   - Open browser to `http://localhost:3000`\n   - Verify all features are working correctly\n\n### 🌐 Production Deployment\n\n**GitHub Pages Deployment:**\n1. Fork the repository to your GitHub account\n2. Configure repository settings for GitHub Pages\n3. Update API \u0026 .env endpoints in configuration\n4. Deploy using GitHub Actions workflow\n\n**Manual Deployment:**\n```bash\nnpm run build\nnpm start\n```\n\n---\n\n## 🎯 Usage Instructions\n\n### 🔍 Language Detection \u0026 Conversion\n\n**Step 1: Input Your Code**\n1. Navigate to the main application interface\n2. Paste your code into the source code text area\n3. The system automatically detects character count (max 5000)\n4. Real-time syntax validation provides immediate feedback\n\n**Step 2: Language Detection**\n1. Click \"Detect Language\" or wait for auto-detection\n2. AI analyzes syntax patterns, keywords, and structure\n3. Detection results show confidence percentage\n4. Manual override available if needed\n\n**Step 3: Select Target Language**\n1. Choose desired output language from dropdown\n2. Preview conversion complexity and estimated time\n3. Select any additional conversion options\n4. Confirm conversion parameters\n\n**Step 4: Convert \u0026 Download**\n1. Click \"Convert Code\" to start AI processing\n2. Monitor progress with real-time updates\n3. Review converted code with syntax highlighting\n4. Copy to clipboard or download as file\n\n### 🧹 Code Formatting\n\n**Supported Languages for Formatting:**\n- **Web Technologies**: HTML, CSS, SCSS, LESS, JavaScript, TypeScript\n- **Frameworks**: JSX, TSX, Vue.js components\n- **Data Formats**: JSON, JSON5, JSONC, YAML\n- **Documentation**: Markdown, MDX\n- **Query Languages**: GraphQL\n- **Template Engines**: Handlebars\n\n**Formatting Options:**\n- **Indentation**: Spaces (2, 4) or Tabs\n- **Line Width**: 80, 100, 120 characters\n- **Semicolons**: Always, never, or preserve\n- **Quotes**: Single, double, or preserve\n- **Trailing Commas**: All, ES5, none\n\n### 📂 File Upload \u0026 Processing\n\n**Supported File Types:**\n```\nProgramming Languages:\n.js, .jsx, .ts, .tsx, .py, .java, .cpp, .c, .cs, .php, .rb, .go, .rs, .swift, .kt, .scala, .dart\n\nWeb Technologies:\n.html, .htm, .css, .scss, .sass, .less, .vue\n\nData \u0026 Configuration:\n.json, .yaml, .yml, .xml, .toml, .ini, .env\n\nDocumentation:\n.md, .mdx, .txt, .rst\n\nOthers:\n.sql, .sh, .ps1, .dockerfile\n```\n\n---\n\n## 📊 Supported Languages Matrix\n\n### 🔄 Conversion Support Matrix\n\n| Source Language | Target Languages | Conversion Quality | Notes |\n|-----------------|------------------|-------------------|-------|\n| **JavaScript** | Python, Java, C++, TypeScript, Go | ⭐⭐⭐⭐⭐ | Excellent support for all modern JS features |\n| **Python** | JavaScript, Java, C++, Go, Rust | ⭐⭐⭐⭐⭐ | Strong support for Python 3.x syntax |\n| **Java** | C++, C#, Python, JavaScript, Kotlin | ⭐⭐⭐⭐ | Good OOP concept translation |\n| **C++** | C, Java, C#, Rust, Go | ⭐⭐⭐⭐ | Memory management concepts adapted |\n| **TypeScript** | JavaScript, Java, C#, Python | ⭐⭐⭐⭐⭐ | Type information preserved where possible |\n| **C#** | Java, C++, VB.NET, F#, TypeScript | ⭐⭐⭐⭐ | .NET ecosystem compatibility |\n| **Go** | C++, Rust, Java, Python | ⭐⭐⭐⭐ | Concurrency patterns translated |\n| **Rust** | C++, C, Go, Zig | ⭐⭐⭐⭐ | Memory safety concepts explained |\n| **PHP** | JavaScript, Python, Java, C# | ⭐⭐⭐ | Web-specific features adapted |\n| **Ruby** | Python, JavaScript, Java | ⭐⭐⭐ | Dynamic features preserved |\n| **Swift** | Objective-C, Java, Kotlin, C++ | ⭐⭐⭐⭐ | iOS-specific concepts documented |\n| **Kotlin** | Java, Swift, C#, TypeScript | ⭐⭐⭐⭐ | Interoperability features maintained |\n| **Dart** | JavaScript, TypeScript, Java | ⭐⭐⭐ | Flutter-specific patterns adapted |\n| **Scala** | Java, Kotlin, F#, Haskell | ⭐⭐⭐ | Functional programming concepts preserved |\n| **Haskell** | Scala, F#, OCaml, Elm | ⭐⭐⭐ | Pure functional paradigms explained |\n\n### 🧹 Formatting Support\n\n| Language | Prettier | Auto-Fix |\n|----------|----------|--------------|\n| **JavaScript** | ✅ | ✅ | \n| **TypeScript** | ✅ | ✅ |\n| **JSX/TSX** | ✅ | ✅ |\n| **HTML** | ✅ | ✅ |\n| **CSS/SCSS** | ✅ | ✅ | \n| **JSON** | ✅ | ✅ | \n| **Markdown** | ✅ | ✅ |\n| **Vue** | ✅ | ✅ | \n| **YAML** | ✅ | ✅ | \n| **GraphQL** | ✅ | ✅ |\n| **Python** | ❌ | ⚠️ |\n| **Java** | ❌ | ⚠️ |\n| **C++** | ❌ | ⚠️ |\n\n---\n\n## 🤝 Contributing\n\nWe welcome contributions from developers of all skill levels! Here's how you can help make CodeManipulate even better:\n\n### 🛠️ How to Contribute\n\n1. **Fork the Repository**\n   ```bash\n   git fork https://github.com/avdeshjadon/CodeManipulate.git\n   ```\n\n2. **Create a Feature Branch**\n   ```bash\n   git checkout -b feature/your-amazing-feature\n   ```\n\n3. **Make Your Changes**\n   - Follow existing code style and conventions\n   - Add tests for new functionality\n   - Update documentation as needed\n\n4. **Submit a Pull Request**\n   - Provide a clear description of changes\n   - Include screenshots for UI changes\n   - Reference any related issues\n\n### 🐛 Bug Reports \u0026 Feature Requests\n\n- **Found a Bug?** Open an issue with detailed reproduction steps\n- **Have an Idea?** Create a feature request with use cases and examples\n- **Need Help?** Check existing issues or start a discussion\n\n### 💡 Areas We Need Help\n\n- **Language Support**: Add support for new programming languages\n- **AI Improvements**: Enhance detection accuracy and conversion quality  \n- **UI/UX**: Improve user interface and experience\n- **Testing**: Add comprehensive test coverage\n- **Documentation**: Improve guides and API documentation\n- **Performance**: Optimize code processing speed and efficiency\n\n---\n\n## 📄 License\n\nThis project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.\n\n```\nMIT License\n\nCopyright (c) 2024 Avdesh Jadon\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n---\n\n## 🙏 Acknowledgments\n\n- **Google AI Team** for providing the powerful Gemini API\n- **Prettier Team** for the excellent code formatting library\n- **Open Source Community** for inspiration and feedback\n- **Beta Testers** who helped improve the application\n- **All Contributors** who made this project possible\n\n---\n\n## 📞 Contact \u0026 Support\n\n- **Developer**: [Avdesh Jadon](https://github.com/avdeshjadon)\n- **Project Repository**: [CodeManipulate on GitHub](https://github.com/avdeshjadon/CodeManipulate)\n- **Live Demo**: [Try CodeManipulate](https://codemanipulate.onrender.com/)\n- **Issues \u0026 Bug Reports**: [GitHub Issues](https://github.com/avdeshjadon/CodeManipulate/issues)\n\n---\n\n## 🌟 Show Your Support\n\nIf you find CodeManipulate helpful, please consider:\n\n### ⭐ **Star this repository** \nClick the ⭐ button at the top of this page to show your support!\n\n### 🍴 **Fork this project**\nHelp us grow by creating your own copy and contributing improvements!\n\n### 🔗 **Share with others**\nSpread the word about CodeManipulate in your developer community!\n\n### 💝 **Contribute**\nJoin our growing community of contributors and help make coding easier for everyone!\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n### 🚀 **Ready to Transform Your Code?**\n\n**[🌐 Try CodeManipulate Now](https://codemanipulate.onrender.com/)**\n\n\u003c/div\u003e\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003csub\u003eBuilt with ❤️ by \u003ca href=\"https://github.com/avdeshjadon\"\u003eAvdesh Jadon\u003c/a\u003e and the amazing open source community\u003c/sub\u003e\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favdeshjadon%2Fcodemanipulate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favdeshjadon%2Fcodemanipulate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favdeshjadon%2Fcodemanipulate/lists"}