A precision, line-by-line code comparison studio. 100% local, offline, and portable.
DiffLens is a professional-grade code comparison tool built for developers who need to spot differences quickly and accurately. It runs entirely on your machine — no uploads, no network calls, no dependencies.
- Myers diff engine with patience anchoring for fast large-file comparison
- Word-level highlights showing exactly what changed inside modified lines
- Split & unified views with accurate minimap navigation
- 20+ languages with live syntax colouring (JavaScript, TypeScript, Python, Java, C#, C/C++, Go, Rust, PHP, Ruby, Shell, SQL, Kotlin, Swift, HTML, CSS, JSON, YAML, plain text)
- Inline live editing — compare and fix code in one place
- 7 themes including Liquid Glass (iOS 27-inspired) and Liquid Glass Dark
- Unified patch export (
.patch) for git workflows - Animated intro splash with a professional About panel
- Zero dependencies at runtime — no uploads, no network calls
| File | Type | Description |
|---|---|---|
DiffLens 1.0.0.exe |
Portable | Run directly — no installation required |
DiffLens Setup 1.0.0.exe |
Installer | Adds to Start Menu and Desktop for quick access |
First launch note: Windows SmartScreen may show a warning because the executable is unsigned. Click More info → Run anyway. This is standard for new open-source software.
- Download
DiffLens 1.0.0.exe(portable) orDiffLens Setup 1.0.0.exe(installer) - Double-click to run
- Paste or drop two files to compare
| Key | Action |
|---|---|
| Ctrl + Enter | Run compare |
| N / P | Next / previous change |
| U | Toggle split / unified view |
| W | Toggle line wrapping |
| M | Toggle inline edit mode |
| S | Swap sides |
| E | Expand / collapse unchanged blocks |
| T | Cycle through themes |
| ? | Show all shortcuts |
# Clone the repository
git clone https://github.com/nitu2126/DiffLens.git
cd DiffLens
# Install dependencies
npm install
# Run in development mode
npm start
# Build the Windows executable
npm run buildThe built executables will be in the dist/ folder.
DiffLens/
├── index.html ← Main application (single-file HTML app)
├── main.js ← Electron main process
├── preload.js ← Secure preload bridge
├── style.css ← Additional styles
├── script.js ← Additional scripts
├── package.json ← Project configuration
├── electron-builder.json ← Build configuration
├── installer.nsi ← NSIS installer script
├── build.bat ← Windows build helper
├── screenshots/ ← Application screenshots
├── LICENSE ← MIT License
└── README.md ← This file
| Attribute | Value |
|---|---|
| Platform | Windows 10 / 11 (64-bit) |
| Runtime | Electron (bundles Chromium + Node.js) |
| Diff Engine | Myers O(ND) with patience anchoring |
| Architecture | Single-file HTML application |
| Network Access | None — fully offline |
| License | MIT |
Contributions are welcome! Please read CONTRIBUTING.md for guidelines.
DiffLens runs 100% locally and makes no network calls. See SECURITY.md for details.
This project is licensed under the MIT License — see the LICENSE file for details.
Nitish Ghadage Version: v1.0.0 · Released: 10/08/2026
If you find DiffLens useful, please consider giving it a ⭐





