{"id":48359611,"url":"https://github.com/ccj-0617/aethel","last_synced_at":"2026-04-10T17:00:58.896Z","repository":{"id":349260537,"uuid":"1201360389","full_name":"CCJ-0617/Aethel","owner":"CCJ-0617","description":"Git-style Google Drive sync CLI and interactive TUI for snapshot-based local/remote file management, conflict resolution, and duplicate-folder cleanup.","archived":false,"fork":false,"pushed_at":"2026-04-06T03:39:40.000Z","size":1596,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T13:02:44.058Z","etag":null,"topics":["backup","cli","deduplication","drive-api","file-manager","filesync","git","google-drive","google-drive-api","ink","nodejs","productivity","react","sync","terminal","tui"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/aethel","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CCJ-0617.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"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-04-04T15:17:49.000Z","updated_at":"2026-04-06T03:39:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c67c3a3-e16a-4606-b47e-a4c331dd7bcc","html_url":"https://github.com/CCJ-0617/Aethel","commit_stats":null,"previous_names":["ccj-0617/aethel"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/CCJ-0617/Aethel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCJ-0617%2FAethel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCJ-0617%2FAethel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCJ-0617%2FAethel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCJ-0617%2FAethel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CCJ-0617","download_url":"https://codeload.github.com/CCJ-0617/Aethel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCJ-0617%2FAethel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31515151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["backup","cli","deduplication","drive-api","file-manager","filesync","git","google-drive","google-drive-api","ink","nodejs","productivity","react","sync","terminal","tui"],"created_at":"2026-04-05T12:02:11.168Z","updated_at":"2026-04-07T14:00:47.499Z","avatar_url":"https://github.com/CCJ-0617.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aethel\n\n[![CI](https://github.com/CCJ-0617/Aethel/actions/workflows/ci.yml/badge.svg)](https://github.com/CCJ-0617/Aethel/actions/workflows/ci.yml)\n[![npm version](https://img.shields.io/npm/v/aethel)](https://www.npmjs.com/package/aethel)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![Node.js](https://img.shields.io/badge/node-%3E%3D18-brightgreen)](https://nodejs.org)\n\n**Git-style Google Drive sync from your terminal.**\n\nAethel brings a `snapshot → diff → stage → commit` workflow to Google Drive. Track changes on both sides, resolve conflicts explicitly, and keep a full sync history — all without leaving the command line. It also ships with a dual-pane TUI for hands-on file management.\n\n---\n\n## Install\n\n```bash\nnpm install -g aethel\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eInstall from source\u003c/summary\u003e\n\n```bash\ngit clone https://github.com/CCJ-0617/Aethel.git\ncd Aethel\nnpm install\nnpm run install:cli   # symlinks `aethel` into ~/.local/bin\n```\n\n\u003c/details\u003e\n\n**Requires Node.js \u003e= 18**\n\n## Setup\n\n1. Create a project in the [Google Cloud Console](https://console.cloud.google.com/)\n2. Enable the **Google Drive API**\n3. Create an **OAuth 2.0 Client ID** (Desktop application)\n4. Download the credentials JSON and save it as `credentials.json` in your project root\n\n```bash\naethel auth                    # opens browser, saves token.json\naethel init --local-path ./workspace --drive-folder \u003cfolder-id\u003e\n```\n\n\u003e `credentials.json` and `token.json` are local secrets — never commit them.\n\n## Usage\n\n```bash\naethel status                  # local vs remote changes at a glance\naethel diff --side all         # detailed file-level diff\naethel add --all               # stage default suggested actions\naethel commit -m \"sync\"        # execute staged operations\n\naethel pull -m \"pull\"          # fetch remote changes and apply\naethel push -m \"push\"          # push local changes to Drive\n```\n\n### Conflict Resolution\n\nWhen both local and remote change the same path:\n\n```bash\naethel status                  # identify conflicts\naethel resolve \u003cpath\u003e --keep local   # or: remote, both\naethel commit -m \"resolve\"\n```\n\n### Deduplication\n\nMulti-device conflicts can leave duplicate folders on Drive:\n\n```bash\naethel dedupe-folders            # dry run — report only\naethel dedupe-folders --execute  # merge duplicates, trash empties\n```\n\nProcesses deepest-first for single-pass convergence, caches child state to minimize API calls, and runs independent merge groups in parallel.\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `auth` | OAuth flow — creates `token.json`, verifies Drive access |\n| `init` | Initialize a local sync workspace |\n| `status` | Show local vs remote changes |\n| `diff` | Detailed file differences |\n| `add` | Stage changes |\n| `reset` | Unstage changes |\n| `commit` | Execute staged sync operations |\n| `pull` | Fetch and apply remote changes |\n| `push` | Push local changes to Drive |\n| `log` | Sync history |\n| `fetch` | Refresh remote state without applying |\n| `resolve` | Resolve conflicts (local / remote / both) |\n| `ignore` | Manage `.aethelignore` patterns |\n| `show` | Inspect a saved snapshot |\n| `restore` | Restore files from the last snapshot |\n| `rm` | Remove local files and stage remote deletion |\n| `mv` | Move or rename local files |\n| `clean` | List and optionally trash/delete Drive files |\n| `dedupe-folders` | Detect and merge duplicate remote folders |\n| `tui` | Launch interactive terminal UI |\n\n## TUI\n\n```bash\naethel tui\n```\n\nDual-pane file browser — local filesystem on the left, Google Drive on the right.\n\n| Key | Action |\n|-----|--------|\n| `Tab` | Switch panes |\n| `Left` / `Right` | Navigate up / into directories |\n| `u` | Upload selected local file or folder to Drive |\n| `s` | Batch sync local folder to current Drive directory |\n| `U` | Upload from a manually entered path |\n| `n` | Rename selected local item |\n| `x` | Delete selected local item |\n| `Space` | Toggle selection in Drive pane |\n| `t` / `d` | Trash / permanently delete selected Drive items |\n| `/` | Filter by name |\n\n## Ignore Patterns\n\nCreate `.aethelignore` (gitignore syntax) in your workspace root — or run `aethel init` to generate a default one.\n\n```gitignore\n.venv/\nnode_modules/\n__pycache__/\n.idea/\ndist/\nbuild/\n```\n\n## Environment Variables\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `GOOGLE_DRIVE_CREDENTIALS_PATH` | `credentials.json` | Path to OAuth credentials |\n| `GOOGLE_DRIVE_TOKEN_PATH` | `token.json` | Path to cached OAuth token |\n| `AETHEL_DRIVE_CONCURRENCY` | `40` | Max concurrent Drive API requests |\n\n## Architecture\n\nSee [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for module structure and data flow.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccj-0617%2Faethel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccj-0617%2Faethel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccj-0617%2Faethel/lists"}