{"id":46441862,"url":"https://github.com/serein-213/rarch","last_synced_at":"2026-03-05T22:01:25.157Z","repository":{"id":340841220,"uuid":"1167763653","full_name":"serein-213/rarch","owner":"serein-213","description":"A blazing fast, content-aware, and atomic file organization tool written in Rust. ","archived":false,"fork":false,"pushed_at":"2026-02-26T21:41:17.000Z","size":193,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-27T01:07:08.256Z","etag":null,"topics":["automation","cli","deduplication","file-manager","filesystem","productivity","rayon","rust","tui","undo"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serein-213.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-26T16:52:57.000Z","updated_at":"2026-02-26T19:03:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/serein-213/rarch","commit_stats":null,"previous_names":["serein-213/rarch"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/serein-213/rarch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serein-213%2Frarch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serein-213%2Frarch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serein-213%2Frarch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serein-213%2Frarch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serein-213","download_url":"https://codeload.github.com/serein-213/rarch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serein-213%2Frarch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30151958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T21:15:50.531Z","status":"ssl_error","status_checked_at":"2026-03-05T21:15:11.173Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cli","deduplication","file-manager","filesystem","productivity","rayon","rust","tui","undo"],"created_at":"2026-03-05T22:00:36.420Z","updated_at":"2026-03-05T22:01:25.137Z","avatar_url":"https://github.com/serein-213.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 归藏 (rarch)\n\n[English](README.md) | [简体中文](README_ZH.md)\n\n\u003e **The Robust File Organizer** — A blazing fast, content-aware, and atomic file organization tool written in Rust.\n\n[![Build Status](https://img.shields.io/badge/status-active-brightgreen.svg)]()\n[![Language](https://img.shields.io/badge/language-Rust-orange.svg)]()\n[![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)]()\n\n## Why rarch?\n\nMost file organizers just move files by extension. **rarch** is designed for power users who care about data integrity, storage efficiency, and zero-latency organization.\n\n### Visuals\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/rarch_tui.png\" alt=\"rarch UI\" width=\"80%\"\u003e\n  \u003cbr\u003e\n  \u003cem\u003erarch Interactive TUI Dashboard\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/rarch_cli.png\" alt=\"rarch CLI\" width=\"80%\"\u003e\n  \u003cbr\u003e\n  \u003cem\u003erarch CLI Running in Dry-Run Mode\u003c/em\u003e\n\u003c/p\u003e\n\n### Key Features\n\n- **Blazing Fast**: Powered by Rust and `rayon` for parallel processing. Scan and organize 100k+ files in seconds.\n- **Atomic Undo**: Every operation is journaled. If you mess up your rules, `rarch undo` restores everything exactly where it was.\n- **Content-Aware**: Don't be fooled by extensions. rarch uses deep magic-number inspection to identify file types (e.g., identifies a `.txt` as a `.png`).\n- **Hard-link Deduplication**: Automatically detects identical files using SHA-256 and converts duplicates into **hard links**, saving storage instantly.\n- **Regex \u0026 Date Filters**: Organize files by complex patterns or age (e.g., \"move files older than 30 days\").\n- **Dynamic Organization**: Use placeholders like `${year}`, `${month}`, and `${ext}` in your target paths.\n- **Professional Analytics**: Dry-run mode provides a detailed table summary and \"Potential Space Saved\" reports.\n- **Shell Completions**: Native support for Bash, Zsh, Fish, and PowerShell.\n- **Real-time Watch Mode**: Run `rarch watch` to handle files the moment they arrive.\n- **Interactive TUI**: A beautiful dashboard for those who prefer a keyboard-driven visual experience.\n\n## Installation\n\n```bash\ncargo install rarch --features ui\n```\n\n## Usage\n\n### ⚙️ 1. Configure\n\nCreate `rarch.toml`:\n\n```toml\n[[rules]]\nname = \"Photos\"\nmime = \"image/*\"\ntarget = \"Pictures/${year}\"\nconflict = \"rename\"\n\n[[rules]]\nname = \"PDFs\"\ntype = \"document\"\nextensions = [\"pdf\"]\ntarget = \"Archives/Documents\"\nconflict = \"skip\"\n```\n\n### 🛠️ 2. Organize\n\n```bash\n# Preview changes first\nrarch run --dry-run\n\n# Execute organization \u0026 deduplication\nrarch run --path ~/Downloads\n```\n\n### 🕒 3. Undo\n\n```bash\nrarch undo\n```\n\n### 📡 4. Set it and forget it\n\n```bash\nrarch watch --path ~/Downloads\n```\n\n## Architecture\n\n1. **Scanner**: Deep or shallow directory traversal.\n2. **Engine**:\n    - Parallel hashing (SHA-256).\n    - Content-type inference.\n    - Link-based deduplication logic.\n3. **Journal**: JSON-based transaction log for 100% reliable undo.\n4. **UI**: Zero-dependency TUI powered by `ratatui`.\n\n## License\n\nMIT OR Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserein-213%2Frarch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserein-213%2Frarch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserein-213%2Frarch/lists"}