A clean, secure, and privacy-focused git diff viewer that processes everything client-side.
- Privacy First: All processing happens locally in your browser
- Lightning Fast: No server round trips required
- Clean Interface: Beautiful, easy-to-read diff visualization
- Responsive Design: Works perfectly on all devices
- Multiple View Modes: Side-by-side and unified diff views
- File Support: Upload diff files or paste content directly
- Syntax Highlighting: Clean code highlighting with line numbers
- Open Source: Free and open source forever
Visit DiffLens to try it out!
DiffLens is a static website project. To run it locally:
-
Clone the repository:
git clone https://github.com/nbslabs/difflense.git cd difflense
-
Serve the files using any web server:
# Using Python python -m http.server 8000 # Using Node.js npx serve . # Using PHP php -S localhost:8000
-
Open your browser and navigate to
http://localhost:8000
- Generate a diff: Run
git diff
in your repository - Upload or paste: Copy the diff output or upload a diff file
- Choose view mode: Select unified or side-by-side view
- Analyze changes: Review your code changes with syntax highlighting
- Frontend: Vanilla JavaScript (ES6+)
- Styling: TailwindCSS
- Architecture: Client-side only (no backend required)
- Hosting: GitHub Pages ready
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes
- Commit:
git commit -m 'Add amazing feature'
- Push:
git push origin feature/amazing-feature
- Open a Pull Request
- Use modern JavaScript (ES6+)
- Follow consistent code formatting
- Maintain the privacy-first approach
- Test thoroughly across different browsers
- Keep the design clean and minimal
This project is licensed under the MIT License - see the LICENSE file for details.
DiffLens is designed with privacy as a core principle:
- No Data Collection: We don't collect, store, or track any of your data
- Client-Side Processing: Your diffs never leave your browser
- No Analytics: No tracking scripts or analytics tools
- Offline Capable: Works completely offline once loaded
- Open Source: Full transparency with open source code
- Thanks to all contributors who help make DiffLens better
- Inspired by the need for privacy-focused developer tools
- Built for the developer community