Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

Sage — Downloads, Sorted. Automatically.

A lightweight Chrome extension that silently organizes every downloaded file into type‐based folders the moment it arrives.
No more losing files in a chaotic Downloads folder.


Overview

Sage intercepts every browser download and reroutes it to a subfolder matching its file type: Images, Documents, Videos, Music, Archives, and more.
It’s like a wise little librarian that lives inside your browser.

  • Automatic – works instantly after installation, no configuration needed.
  • Toggle on/off – one click to pause sorting when you need a file to stay in the root.
  • Clean, dark UI – a calm, botanical design that doesn’t distract.
  • Bonus Python script – clean up years of old downloads with the same folder rules.

Key Features

Feature Description
Smart Sorting Moves downloads into folders (Images, Documents, Videos, Music, etc.)
Instant Action Files are organized the moment the download finishes
Toggle On/Off Popup switch to temporarily bypass sorting
Modern Dark Theme Designed with a custom botanical colour palette
Privacy‐First Zero data collection; everything runs locally
Consistent Rules Same folder mapping as the companion Python script
One‐Click Bulk Cleanup Run the included Python script to sort all existing downloads
Manifest V3 Up‐to‐date, fast, and fully compliant with Chrome Web Store policies

How It Works

Step What Happens
Download initiated Browser starts a new download
Extension intercepts The downloads.onDeterminingFilename listener fires before the file is written
Subfolder chosen The file extension is checked against a built‐in mapping (e.g., .pdf → Documents)
File placed The download is saved directly into Downloads/Documents/filename.pdf
Toggle OFF? If the extension is disabled via the popup, the file stays in the root Downloads

Tech Stack

Layer Technology
Platform Chrome Extensions API (Manifest V3)
Background Service Worker (background.js)
UI / Popup HTML5, CSS3, Vanilla JavaScript
Storage chrome.storage.local for toggle state
Permissions downloads, storage
Icons Custom 16/48/128 px PNGs
Companion Tool Python 3 (standard library)

Installation (Developer Mode)

  1. Download or clone this repository.
  2. Open Chrome and navigate to chrome://extensions/.
  3. Turn on Developer mode (top‐right corner).
  4. Click Load unpacked.
  5. Select the sage folder (the one containing manifest.json).
  6. The extension will appear in your toolbar. Click the 🌿 icon to toggle.

Works on any Chromium browser: Chrome, Brave, Edge, Opera.


Using the Python Cleanup Script (Optional)

The file organize_downloads.py sorts your existing Downloads folder using the same rules as the extension.
It’s perfect for tidying up years of accumulated chaos.

Preview what will move (safe)

python organize_downloads.py --dry-run

Actually move the files

python organize_downloads.py

By default, it targets your system’s Downloads folder. You can also pass a custom path: python organize_downloads.py "C:\Users\MyName\MyMessyFolder"


License

MIT

About

A wise browser extension that automatically sorts your downloads into type‐based folders. No more messy Downloads.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /