{"id":50411521,"url":"https://github.com/ryanbbrown/obsidian-drift","last_synced_at":"2026-05-31T04:00:40.492Z","repository":{"id":338740459,"uuid":"1158702460","full_name":"ryanbbrown/obsidian-drift","owner":"ryanbbrown","description":"Diff viewer for changes to markdown files in Obsidian made by external sources (primarily coding agents)","archived":false,"fork":false,"pushed_at":"2026-04-12T15:52:36.000Z","size":4093,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-12T17:31:17.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanbbrown.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-15T19:38:19.000Z","updated_at":"2026-04-12T15:47:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ryanbbrown/obsidian-drift","commit_stats":null,"previous_names":["ryanbbrown/obsidian-diff-viewer","ryanbbrown/obsidian-drift"],"tags_count":1,"template":false,"template_full_name":"obsidianmd/obsidian-sample-plugin","purl":"pkg:github/ryanbbrown/obsidian-drift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanbbrown%2Fobsidian-drift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanbbrown%2Fobsidian-drift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanbbrown%2Fobsidian-drift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanbbrown%2Fobsidian-drift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanbbrown","download_url":"https://codeload.github.com/ryanbbrown/obsidian-drift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanbbrown%2Fobsidian-drift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33718446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-05-31T04:00:39.873Z","updated_at":"2026-05-31T04:00:40.483Z","avatar_url":"https://github.com/ryanbbrown.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drift\n\nA VS Code-style side-by-side diff viewer that lives inside Obsidian. Automatically detects external file changes (including AI coding agents) and shows you a before/after view with per-chunk accept/reject, accept all/reject all, and collapsible unchanged regions.\n\n![Drift demo](demo.gif)\n\n## Features\n\n- **Instant detection** — No polling or delays. Uses CodeMirror 6 transaction monitoring to detect external changes the moment they happen.\n- **Per-chunk accept/reject** — Cherry-pick individual changes, not just all-or-nothing. Revert buttons on each diff chunk let you keep what you want and undo what you don't.\n- **Accept all / Reject all** — Bulk actions when you have multiple files with pending diffs.\n- **Persistence** — Pending diffs survive Obsidian restarts. Stale diffs (file deleted or reverted) are automatically discarded on reload.\n- **Edit protection** — Editing a file with pending diffs shows a warning modal, preventing accidental data loss.\n- **Tool-agnostic** — Works with any tool that modifies vault files: AI coding agents, sync services, scripts, other plugins.\n\n## Installation\n\nInstall Drift from the [Obsidian community plugin directory](https://community.obsidian.md/plugins/drift).\n\n### Manual install\n\n1. Download `main.js`, `manifest.json`, and `styles.css` from the [latest release](https://github.com/ryanbbrown/obsidian-drift/releases)\n2. Create a folder `VaultFolder/.obsidian/plugins/drift/`\n3. Copy the downloaded files into that folder\n4. Restart Obsidian and enable the plugin in **Settings → Community plugins**\n\n## Usage\n\nOnce enabled, the plugin runs automatically. When an external tool modifies a markdown file in your vault:\n\n1. A **Drift** tab opens in the background showing the side-by-side diff\n2. Use **Accept All** to keep the new content, or **Reject All** to revert to the original\n3. Use the **revert button** on individual chunks to selectively undo specific changes\n4. Use the **Open diff viewer** command to reopen the tab if you close it\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| **Open diff viewer** | Open or focus the diff viewer tab |\n| **Toggle external change detection** | Enable/disable external change detection |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanbbrown%2Fobsidian-drift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanbbrown%2Fobsidian-drift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanbbrown%2Fobsidian-drift/lists"}