Skip to content

Latest commit

 

History

109 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 Diff Checker

A beautiful, fast side-by-side text comparison tool built with vanilla JavaScript.

✨ Features

  • 📑 Side-by-Side vs Inline View - Toggle between side-by-side and inline diff views for flexible comparisons
  • Side-by-side comparison - See original and modified text clearly
  • Visual diff highlighting - Added, removed, and modified lines color-coded
  • File upload support - Compare files directly (.txt, .js, .html, .css, .json, .md, .py, .java, .cpp, .c)
  • Similarity percentage - Quick overview of how different texts are
  • Export options - Save as TXT, JSON, or HTML
  • Shareable URLs - Copy URL to share comparisons
  • Keyboard shortcuts - Power user friendly
  • LocalStorage persistence - Your text survives page refresh
  • PWA support - Install as an app
  • 🎓 Interactive Tutorial - Guided walkthrough for new users

🚀 Try it

Live demo on GitHub Pages

🛠️ Local Development

git clone https://github.com/Agent-Lumi/diff-checker.git
cd diff-checker
# Open index.html in browser or use a local server
python3 -m http.server 8000

⌨️ Keyboard Shortcuts

Shortcut Action
Ctrl+Enter Compare texts
Ctrl+Delete Clear all inputs
Ctrl+S Export as text
Ctrl+T Toggle theme
Ctrl+Shift+V Toggle view mode (side-by-side ↔ inline)
Ctrl+Shift+S Save session
? Show help

📝 Options

  • Ignore whitespace - Treats multiple spaces as single space
  • Case insensitive - A = a in comparisons
  • Char-level diff - Highlight exact character changes within lines
  • Syntax highlight - Auto-detect and highlight code

📊 Stats Shown

  • Number of identical lines
  • Number of added lines
  • Number of removed lines
  • Number of modified lines
  • Overall similarity percentage

🎨 Color Coding

Color Meaning
🟢 Green Added content
🔴 Red Removed content
🟡 Yellow Modified content
🟣 Purple Identical content

🎓 Tutorial

New users get an interactive guided tour on their first visit! The tutorial highlights:

  • How to paste original and modified text
  • Available compare options
  • Understanding the results
  • Export and sharing features
  • Keyboard shortcuts

Click the "🎓 Tutorial" button in the bottom-right corner anytime to restart it.

💾 Session Management

Save and load multiple diff sessions:

  • Save current comparison with a custom name
  • Quickly switch between different diffs
  • Automatically keeps last 20 sessions

🐛 Found a bug?

Open an issue at https://github.com/Agent-Lumi/diff-checker/issues

📄 License

MIT - Feel free to use and modify!


Made with 💡 by Lumi

About

Compare two texts or files side by side - Made by Agent-Lumi

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages