A desktop application that uses AI to analyze and solve programming problems through screen captures.
The software is designed to help developers during live coding sessions, as screen content often doesn't appear properly in recordings or live streams. With Code Solver, you can capture the code and get instant AI-generated solutions without interrupting the flow of your presentation.
- πΈ Screen capture with integrated OCR
- π€ Problem analysis using AI (Google Gemini)
- π‘ Automatic solution generation in multiple languages
- π Floating interface for quick viewing
- β¨οΈ Global shortcuts for all functions
- π Content protection on windows
- π― Support for multiple captures
- π TypeScript support for better code quality
Alt + P: Show/hide main windowCtrl + Shift + PorCrtl + Alt + P: Capture screenCtrl + Enter: Process capturesAlt + S: Show/hide solutionCtrl + Shift + Q: Exit application
- Electron ^28.2.3
- Node.js
- TypeScript ^5.3.3
- Tesseract.js ^5.0.4 (OCR)
- Google Gemini API ^0.2.0
- HTML/CSS/JavaScript
- cross-env ^7.0.3 (Environment variables management)
- electron-store ^8.1.0
- node-tesseract-ocr ^2.0.2
- screenshot-desktop ^1.12.7
- Electron ^28.2.3
- TypeScript ^5.3.3
- @google/genai ^0.2.0
- electron-store ^8.1.0
- node-tesseract-ocr ^2.0.2
- screenshot-desktop ^1.12.7
- tesseract.js ^5.0.4
- @types/electron ^1.6.10
- @types/node ^20.11.24
- cross-env ^7.0.3
- electron-builder ^24.9.1
- electron-reload ^2.0.0-alpha.1
- nodemon ^3.1.0
- rimraf ^5.0.5
- Google Gemini API key
- Windows 10/11
- Clone the repository:
git clone https://github.com/BrunoDelfim/code-solver.git
cd code-solver- Install the dependencies::
npm install- Run the application:
npm start- Run the command on terminal:
npm run build
# or
yarn build- The installer will be generated in the
distfolder
code-solve/
βββ src/ # Main source code
β βββ config/ # App configurations
β βββ services/ # App services
β βββ utils/ # Utilities
β βββ windows/ # Window management
β βββ renderers/ # Renderer processes
β βββ main.ts # Entry point
β
βββ public/ # Public files
β βββ index.html # Main HTML
β βββ about.html # About HTML
β βββ api-key.html # API key configuration
β βββ solution.html # Solution display
β βββ capture-status.html # Capture status
β
βββ assets/ # Static resources
β βββ icon.ico # Application icon
β
βββ docs/ # Documentation
βββ dist/ # Builds and distribution
βββ .github/ # GitHub configurations
βββ node_modules/ # Dependencies
βββ package.json # Project configuration
βββ package-lock.json # Dependency lock file
βββ .gitignore # Git ignore rules
βββ tsconfig.json # TypeScript configuration
βββ eng.traineddata # English OCR data
βββ por.traineddata # Portuguese OCR data
βββ README.md # Main documentation
βββ LICENSE # License
- Get an API key from Google Gemini at: https://makersuite.google.com/app/apikey
- On the first run, the application will request the API key
- The key will be saved at: %APPDATA%/Code Solver/gemini_api_key.txt
- API keys are securely stored locally
- Solution windows are protected against screen capture
- Sensitive content is protected from leaks
- Fork the project
- Create a branch for your feature (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - If there is a related issue, please reference it (Closes#)
- Open a Pull Request
This project is under the ISC license. See the LICENSE file for more details.
- Google Gemini for the AI API
- Tesseract.js for the OCR technology
- Electron for the framework
- cross-env (Environment variables management)
- TypeScript team for the amazing type system