π Featured Article: LazyClean: Building a Smart File Organizer with Kiro AI - From Chaos to Order in 3 Days
π€ Author: Digvijay Gade on AWS Builder Center
Built for Kiro Week 2 Challenge: Lazy Automation | β±οΈ Developed in 3 days with Kiro AI assistance
LazyClean was significantly enhanced with Kiro AI assistance. Kiro helped implement:
- β
Progress bars with
cli-progresslibrary - β File size analysis and formatted tables
- β Enhanced error handling patterns
- β Smart backup system architecture
Development Impact: Features that would have taken 12-15 hours were implemented in just 3-4 hours with Kiro's guidance - 4x faster development!
π Read the complete story: How I Built LazyClean with Kiro AI
LazyClean is a fast, production-ready Node.js CLI tool that automatically organizes messy folders.
It sorts files into:
- πΌ Images (jpg, png, gif, svg, webp)
- π₯ Videos (mp4, avi, mkv, mov, wmv)
- π Documents (pdf, doc, docx, txt, xlsx, pptx)
- π΅ Audio (mp3, wav, flac, aac, ogg)
- π Archives (zip, rar, 7z, tar, gz)
- π» Code (js, py, java, cpp, html, css)
- π¦ Others (everything else)
LazyClean also detects duplicate files using SHA-1 hashing, supports undo, dry-run, recursive scanning, and provides a beautiful CLI interface.
Sorts files into category-based folders based on file extensions.
Uses SHA-1 hashing to identify duplicate files β duplicates moved to /Duplicates folder.
Preview all actions without modifying any files - see what would happen before committing.
Safely reverts past actions using lazyclean-log.json - restore files to their original locations.
Organizes files inside subfolders and nested directory structures.
Skip specific files/folders using .klignore file (similar to .gitignore).
- Figlet ASCII art banner
- Chalk colored output
- Ora loading spinners
- Formatted summary tables
git clone https://github.com/vi9521/lazyclean-kiro.git
cd lazyclean-kiro
npm installnode src/lazyclean.js --path <folder> --dry-runnode src/lazyclean.js --path <folder>node src/lazyclean.js --path <folder> --undonode src/lazyclean.js --path <folder> --undo --undo-steps 5node src/lazyclean.js --path <folder> --reportnode src/lazyclean.js --path <folder> --recursiveCreate a .klignore file in your project root to skip specific patterns:
node_modules/
.git/
secret.txt
temp/
*.log
LazyClean will automatically skip these files and folders during organization.
lazyclean-kiro/
βββ .kiro/
β βββ config.json
β βββ README-kiro.md
βββ src/
β βββ lazyclean.js
β βββ utils.js
β βββ src_sample/
βββ demo_report/
βββ demo_target/
βββ README.md
βββ .gitignore
βββ package.json
βββ package-lock.json
LazyClean uses SHA-1 cryptographic hashing for accurate duplicate detection:
- Hash Calculation: Computes SHA-1 hash for each file's content
- Comparison: Files with identical hashes are duplicates (even with different names)
- Segregation: Duplicate files are moved to
/Duplicatesfolder - Logging: All actions logged for safe undo operations
Example:
vacation.jpg(hash: abc123...)vacation-copy.jpg(hash: abc123...) β Duplicate detected!
LazyClean logs all file operations in lazyclean-log.json:
{
"runs": [
{
"action": "move",
"from": "image.jpg",
"to": "Images/image.jpg",
"timestamp": "2025-12-04T10:30:00.000Z"
}
]
}Undo safely restores files to their original locations - zero data loss risk!
Want to know how LazyClean was built? Read the detailed development story:
π LazyClean: Building a Smart File Organizer with Kiro AI
The article covers:
- The 2 AM problem that inspired LazyClean
- How Kiro AI accelerated development by 4x
- Technical implementation details
- Challenges solved and lessons learned
MIT License β free to use, modify, and distribute.
Digvijay Gade (@vi9521)
- π AWS Builder Center Profile
- π Read My Articles
- πΌ Built for Kiro Week 2 Challenge: Lazy Automation
β
Fully Functional - Production-ready CLI tool
β
Well Documented - Complete usage guide and blog post
β
Kiro Enhanced - Built with AI assistance for rapid development
β
Open Source - MIT License, contributions welcome
- Kiro AI - For accelerating feature development
- AWS Builder Center - For hosting the development blog
- AI for Bharat - For organizing the Kiro Week 2 Challenge
β Star this repo if you find it useful!
Built with β€οΈ for developers who hate messy folders