{"id":35888257,"url":"https://github.com/liketheduck/supernote-apple-note-unifier","last_synced_at":"2026-01-15T09:00:44.095Z","repository":{"id":330889423,"uuid":"1124316895","full_name":"liketheduck/supernote-apple-note-unifier","owner":"liketheduck","description":"Mirror Apple Notes to Supernote devices as .note files","archived":false,"fork":false,"pushed_at":"2025-12-29T13:48:39.000Z","size":145,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-31T12:42:43.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/liketheduck.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":null,"dco":null,"cla":null}},"created_at":"2025-12-28T19:42:19.000Z","updated_at":"2025-12-30T04:21:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/liketheduck/supernote-apple-note-unifier","commit_stats":null,"previous_names":["liketheduck/supernote-apple-note-unifier"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/liketheduck/supernote-apple-note-unifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liketheduck%2Fsupernote-apple-note-unifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liketheduck%2Fsupernote-apple-note-unifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liketheduck%2Fsupernote-apple-note-unifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liketheduck%2Fsupernote-apple-note-unifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liketheduck","download_url":"https://codeload.github.com/liketheduck/supernote-apple-note-unifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liketheduck%2Fsupernote-apple-note-unifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28447922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T05:05:00.929Z","status":"ssl_error","status_checked_at":"2026-01-15T05:04:58.515Z","response_time":62,"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":[],"created_at":"2026-01-09T01:00:43.771Z","updated_at":"2026-01-15T09:00:44.090Z","avatar_url":"https://github.com/liketheduck.png","language":"Python","funding_links":[],"categories":["Resources"],"sub_categories":["Tools"],"readme":"# Supernote Apple Note Unifier\n\nBidirectional sync between Apple Notes and Supernote devices.\n\n## Overview\n\nThis tool syncs notes between Apple Notes on macOS and Supernote devices. Notes are stored in a dedicated `Apple` folder on your Supernote, mirroring your Apple Notes folder structure.\n\n**Sync Directions:**\n- **Forward** (default): Apple Notes → Supernote\n- **Reverse**: Supernote → Apple Notes (sync `.txt` changes back)\n- **Bidirectional**: Both directions with conflict resolution\n\n**Content Types:**\n- Text-only notes → `.txt` files (Markdown format, editable on Supernote)\n- Rich notes (images, PDFs) → `.note` files (PDF background layer)\n\n## Requirements\n\n- macOS 13.0 (Ventura) or later\n- Python 3.11 or later\n- Xcode Command Line Tools (for Swift compilation)\n- Supernote Personal Cloud storage mounted (default: `/Volumes/Storage/Supernote`)\n\n## Installation\n\n```bash\n# Clone and setup\ngit clone https://github.com/yourusername/supernote-apple-note-unifier.git\ncd supernote-apple-note-unifier\n\n# Install dependencies\n./scripts/install_deps.sh\n./scripts/build_swift.sh\n\n# Activate environment\nsource .venv/bin/activate\n```\n\n## Usage\n\n### Basic Commands\n\n```bash\n# Forward sync (Apple → Supernote)\nunifier sync\n\n# Bidirectional sync (both directions)\nunifier sync --direction both\n\n# Reverse sync only (Supernote → Apple)\nunifier sync --direction reverse\n\n# Dry run (preview changes)\nunifier sync --direction both --dry-run\n```\n\n### All Commands\n\n| Command | Description |\n|---------|-------------|\n| `unifier sync` | Run sync process |\n| `unifier backup` | Create Apple Notes backup |\n| `unifier status` | Show sync statistics |\n| `unifier info` | Display Supernote filesystem info |\n| `unifier restore \u003cnote-id\u003e` | View backup history for a note |\n\n### Sync Options\n\n```bash\nunifier sync [OPTIONS]\n```\n\n| Option | Description |\n|--------|-------------|\n| `-d, --direction` | `forward`, `reverse`, or `both` (default: forward) |\n| `-g, --generator` | `auto`, `markdown`, or `pdf` (default: auto) |\n| `--backup/--no-backup` | Create backup before reverse sync (default: yes) |\n| `-s, --supernote-path` | Path to Supernote storage |\n| `-n, --dry-run` | Preview without making changes |\n| `-v, --verbose` | Detailed output |\n\n## Folder Structure\n\nNotes mirror your Apple Notes folder hierarchy, including folders with emojis:\n\n```\nSupernote/Note/Apple/\n├── 🏡 Home/\n│   └── Renovation Ideas.txt\n├── 👨🏻‍🍳 Recipes/\n│   ├── Soup.txt\n│   └── Turkey.note\n...\n```\n\nFull structure example:\n\n```\nSupernote/Note/Apple/\n├── Personal/\n│   ├── Projects/\n│   │   └── Meeting Notes.txt\n│   └── Ideas.txt\n├── Recipes/\n│   ├── Soup.txt\n│   └── Turkey.note          # Has images, uses PDF\n└── Work/\n    └── Project Plan.txt\n```\n\n## Sync Behavior\n\n| Scenario | What Happens |\n|----------|--------------|\n| New Apple Note | Creates `.txt` or `.note` in matching Supernote folder |\n| New `.txt` on Supernote | Creates Apple Note in matching folder |\n| Modified Apple Note | Updates file on Supernote |\n| Modified `.txt` on Supernote | Updates Apple Note (original backed up) |\n| Deleted `.txt` on Supernote | Deletes Apple Note (original backed up) |\n| Both sides changed | **Apple wins** (Supernote change discarded) |\n| Locked Apple Note | Creates `.txt` with \"**Locked in Apple Notes**\" (no reverse sync) |\n\n### Safety Features\n\n1. **Originals Folder**: Before any Supernote change overwrites Apple Notes, the original is copied to \"Originals (Supernote Sync)\" folder\n2. **Full Backup**: Optional timestamped JSON backup of all Apple Notes before sync\n3. **Conflict Resolution**: Apple version always wins if both sides changed\n\n## Scheduled Sync (launchd)\n\nRun sync automatically every X minutes:\n\n```bash\n# Install (default: every 15 minutes)\n./scripts/install_launchd.sh\n\n# Custom interval (e.g., 30 minutes)\n./scripts/install_launchd.sh 30\n\n# Uninstall\n./scripts/uninstall_launchd.sh\n\n# View logs\ntail -f ~/.local/share/supernote-unifier/logs/sync.log\n```\n\n## Generator Options\n\n### Auto (default)\nAutomatically selects based on content:\n- Text-only notes → Markdown `.txt`\n- Notes with images/PDFs → PDF layer `.note`\n\n### Markdown (`--generator markdown`)\nCreates `.txt` files with Markdown formatting. Editable on Supernote.\n\n### PDF Layer (`--generator pdf`)\nRenders all content as PDF background. Preserves formatting but not editable.\n\n### Strokes (`--generator strokes`)\nRenders text as bitmap strokes on the main layer. Appears as handwritten ink but is not true vector strokes.\n\n## Limitations\n\n**What works:**\n- ✅ Text-only notes sync bidirectionally (Apple ↔ Supernote via `.txt`)\n- ✅ Folder structure with emojis preserved\n- ✅ Rich notes (images/PDFs) sync forward as `.note` files\n- ✅ Modifications to `.txt` on Supernote sync back to Apple Notes\n- ✅ New `.txt` files created on Supernote create new Apple Notes\n- ✅ Locked notes are detected and marked (reverse sync disabled)\n\n**What doesn't work:**\n- ❌ `.note` files cannot sync back (PDF layer is read-only)\n- ❌ Images/attachments in notes are one-way only (Apple → Supernote)\n- ❌ Handwritten annotations on Supernote don't sync back\n- ❌ Apple Notes formatting (fonts, colors) is simplified in `.txt` output\n- ❌ Locked Apple Notes content cannot be read (shows placeholder message)\n\n**Personal Cloud Sync:**\nFiles are written directly to the mounted Supernote filesystem. If you see database connection errors during sync, the files are still created - you may need to manually refresh/sync on your Supernote device to see them. Full Personal Cloud database integration requires a separate MariaDB setup.\n\n## Architecture\n\n```\nApple Notes (macOS)\n        │\n        ▼\n┌───────────────┐\n│ Swift Bridge  │ ◄── AppleScript/ScriptingBridge\n└───────────────┘\n        │\n        ▼\n┌───────────────┐     ┌──────────────┐\n│  Orchestrator │────►│ State DB     │ (SQLite)\n└───────────────┘     └──────────────┘\n        │\n        ├─────────────────────────────┐\n        ▼                             ▼\n┌───────────────┐             ┌───────────────┐\n│ Markdown Gen  │             │   PDF Gen     │\n│   (.txt)      │             │   (.note)     │\n└───────────────┘             └───────────────┘\n        │                             │\n        └──────────────┬──────────────┘\n                       ▼\n              Supernote/Note/Apple/\n                       │\n                       ▼ (reverse sync)\n              ┌───────────────┐\n              │ Reverse Sync  │\n              │    Engine     │\n              └───────────────┘\n                       │\n                       ▼\n                 Apple Notes\n```\n\n## Troubleshooting\n\n### \"Supernote volume not mounted\"\n```bash\nls /Volumes/Storage/Supernote\n```\nMount your Supernote Personal Cloud storage first.\n\n### \"Swift bridge not found\"\n```bash\n./scripts/build_swift.sh\n```\n\n### \"Could not connect to Notes app\"\n1. Open Notes.app at least once\n2. Grant Terminal access when prompted\n3. Check System Settings \u003e Privacy \u0026 Security \u003e Automation\n\n### Existing flat files after upgrade\nIf you have old files in flat `Note/Apple/*.txt`, delete them and re-sync to get proper folder structure:\n```bash\n# Remove old flat files (backup first!)\nrm /Volumes/Storage/Supernote/.../Note/Apple/*.txt\n\n# Re-sync with folder structure\nunifier sync\n```\n\n### Reset state database\n```bash\nrm ~/.local/share/supernote-unifier/state.db\n```\n\n## File Locations\n\n| Path | Purpose |\n|------|---------|\n| `~/.local/share/supernote-unifier/state.db` | Sync state database |\n| `~/.local/share/supernote-unifier/backups/` | Apple Notes backups |\n| `~/.local/share/supernote-unifier/logs/` | Scheduled sync logs |\n\n## Disclaimer\n\nApple Notes is a trademark of Apple Inc. Supernote is a trademark of Ratta Software.\nThis project is not affiliated with, endorsed by, or sponsored by Apple Inc. or Ratta Software.\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliketheduck%2Fsupernote-apple-note-unifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliketheduck%2Fsupernote-apple-note-unifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliketheduck%2Fsupernote-apple-note-unifier/lists"}