An elite, full-stack MERN utility designed for developers. It leverages the high-performance Groq qwen/qwen3.6-27b engine (groq-sdk) to translate, optimize, analyze, and explain code within a premium, high-performance monochrome workspace.
Developed with React 19, Node.js, Express, and MongoDB, this application integrates full token-based JWT security, Google OAuth Single Sign-On (SSO) with direct avatar rendering, pixel-perfect Monaco Editors, and robust historical log tracking.
- 🚀 AI Workspace Dashboard: A split-screen, distraction-free environment utilizing high-fidelity Monaco coding panes.
- 📐 Draggable Split Panes: High-performance, custom-built mouse draggable columns, enabling developers to fluidly resize left/right workspaces based on current focus.
- 🌓 Sleek Monochrome Theme Switcher: Instant transition between Vercel-style Pitch Black/Zinc dark mode and high-contrast Light mode, fully integrated with Monaco Theme states (
vs-dark/vs)! - ⚔️ Monaco Visual Diff Viewer: Built-in side-by-side code diff comparison panel. A quick header toggle switches the output pane to compare original and compiled/optimized code natively!
- 📥 Local File picker & Drag-Drop Script Uploader: Select files locally or drop them directly onto the editor. It auto-parses scripts and auto-detects programming languages based on file extensions.
- 💾 Local Script Downloader: Instantly download translated or optimized output files as native scripts matching their target programming extension!
- ✨ Core AI Assistant Actions:
- Translate: Flawless logic, formatting, and signature translations across multiple languages (Python, JavaScript, TypeScript, Java, C, C++, C#).
- Complexity Analysis: Deep algorithmic analysis computing Big O Time and Space complexities alongside bulletproof structural rationale.
- Performance Optimization: Elite performance-tuning refactoring to reduce memory footprint and execution times.
- Step-by-Step Explanation: Clear, patient technical breakdown of lines and paradigms for developers.
- 🔒 Session & Identity Control: Standard email/password registrations secured with standard bcrypt hashes, side-by-side with verified Google OAuth SSO endpoints and avatar rendering.
- 🛡️ Endpoint Rate Limiting: Built-in security shielding via
express-rate-limitguarding sensitive auth routes and AI compilation endpoints from brute-forcing or automated bot spams. - 📜 Incremental Log Pagination: database-level pagination on
/api/historyusing Mongoose offsets, backed by an incremental "Load More Logs" list scrolling system on the client. - ⚡ Automated Server Keep-Alive: Includes a
/healthendpoint and pre-configured GitHub Actionscronworkflow to prevent free-tier cloud platforms (like Render) from sleeping during inactivity.
- Framework: React 19 + Vite (Fast Builds)
- Editor: Monaco Editor (
@monaco-editor/react) + VisualDiffEditor - Routing: React Router DOM v6
- HTTP Client: Axios (automatic JWT token interceptors)
- Aesthetics & Alerts: Premium custom-styled selects, Vanilla CSS variables, and React Hot Toast notifications
- Runtime: Node.js (ES Modules syntax)
- Framework: Express.js v5
- Database: MongoDB via Mongoose ODM
- GenAI Client: Official Groq SDK (
groq-sdkmodelqwen/qwen3.6-27b) - Security:
express-rate-limit(quota protection),jsonwebtoken(JWT signatures),bcryptjs,google-auth-library(Google SSO validations)
├── client/ # Frontend React Workspace
│ ├── src/
│ │ ├── components/ # ProtectedRoute, Navbar, CodeEditor, OutputPanel, CustomSelect
│ │ ├── context/ # AuthContext, ThemeContext (Global states)
│ │ ├── pages/ # LoginPage, HomePage, HistoryPage
│ │ ├── services/ # api.js, codeService.js, historyService.js
│ │ ├── styles/ # home.css, output.css, history.css, navbar.css, login.css, customSelect.css
│ │ └── constants/ # language.js (Select templates and bindings)
│ └── index.html
└── server/ # Backend API Service Workspace
├── src/
│ ├── config/ # db.config.js, google.config.js, groq.config.js
│ ├── models/ # User.model.js, History.model.js
│ ├── services/ # gemini.service.js (Groq-mapped), history.service.js
│ ├── controllers/ # auth.controller.js, code.controller.js, history.controller.js
│ ├── routes/ # auth.routes.js, code.routes.js, history.routes.js
│ └── middleware/ # auth.middleware.js, error.middleware.js, rateLimit.middleware.js
└── server.js # Server Initialization Entry point
└── .github/
└── workflows/
└── keep-alive.yml # GitHub Actions cron job for pinging the /health endpoint
Create a .env file in the server/ directory:
PORT=5000
MONGO_URI=your_mongodb_atlas_connection_string
JWT_SECRET=your_jwt_signature_key_phrase
GOOGLE_CLIENT_ID=your_google_oauth_client_id.apps.googleusercontent.com
GROQ_API_KEY=your_groq_api_key_hereCreate a .env file in the client/ directory:
VITE_API_URL=http://localhost:5000/api
VITE_GOOGLE_CLIENT_ID=your_google_oauth_client_id.apps.googleusercontent.com- Node.js (v18.0.0 or higher recommended)
- MongoDB running locally or a MongoDB Atlas Cloud Cluster
From the root directory:
cd server
npm install
npm run devThe server will boot on http://localhost:5000.
From the root directory:
cd client
npm install
npm run devThe browser interface will spin up on http://localhost:5173.
- Hidden Configurations: Local
.envfiles are fully excluded in.gitignoreon both client and server layers to secure private secrets. - Authorized Origins: Make sure to whitelist
http://localhost:5173inside the Authorized JavaScript Origins panel in the Google Cloud Credentials Console to avoid OAuthno registered originerror codes. - Endpoint Shielding: Built-in rate limiting restricts compilation routes to 20 requests per 15 minutes per IP, and auth routes to 30 requests per 15 minutes to guarantee API stability.
Enjoy your high-fidelity, monochrome AI-powered developer workstation! 🌌🌟