How docrock/amazon-link-converter-short works
This is a macOS background utility that watches the clipboard and turns copied Amazon product URLs into short affiliate links. Its documented flow extracts an ASIN, generates an amzn.com URL, and provides audio and desktop feedback while recording activity. Login startup is provided through a LaunchAgent. The README documents these capabilities, but no source excerpts were available, so internal script-to-script calls and the precise handling of clipboard and feedback operations cannot be verified.
Main entry points: amazon-link-watcher.sh Clipboard watcher · amazon-link-converter.sh Link converter · com.infophreak.amazonlinkconverter.plist LaunchAgent
Components 11
Link conversion
- Link converter
amazon-link-converter.sh - ASIN extraction
amazon-link-converter.sh - Short URL generation
amazon-link-converter.sh - Fallback conversion
amazon-link-converter.sh
Background service
- Clipboard watcher
amazon-link-watcher.sh - LaunchAgent
com.infophreak.amazonlinkconverter.plist
User feedback
- Audio feedback
amazon-link-watcher.sh - Desktop notifications
amazon-link-watcher.sh - Activity log
amazon-link-watcher.sh
Other components
- User
- System clipboard
Connections 12
- User → System clipboard: copies URL
README.md - System clipboard → Clipboard watcher: monitors
README.md - Clipboard watcher → Link converter: converts via
- Link converter → ASIN extraction: extracts ASIN
README.md - Link converter → Short URL generation: generates link
README.md - Link converter → Fallback conversion: falls back
README.md - Short URL generation → System clipboard: replaces URL
README.md - Fallback conversion → System clipboard: replaces URL
- Clipboard watcher → Audio feedback: plays feedback
README.md - Clipboard watcher → Desktop notifications: notifies user
README.md - Clipboard watcher → Activity log: records activity
README.md - LaunchAgent → Clipboard watcher: starts at login
README.md