{"id":13614967,"url":"https://github.com/ryanccn/am","last_synced_at":"2025-07-08T08:04:56.516Z","repository":{"id":193079518,"uuid":"687540782","full_name":"ryanccn/am","owner":"ryanccn","description":"A beautiful and feature-packed Apple Music CLI","archived":false,"fork":false,"pushed_at":"2025-06-16T11:55:10.000Z","size":379,"stargazers_count":26,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-20T20:51:19.129Z","etag":null,"topics":["apple","apple-music","applescript","clap","clap-rs","cli","hacktoberfest","macos","rust","tui"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanccn.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},"funding":{"ko_fi":"ryancaodev"}},"created_at":"2023-09-05T15:06:26.000Z","updated_at":"2025-06-09T19:29:58.000Z","dependencies_parsed_at":"2023-10-17T01:41:56.416Z","dependency_job_id":"d63f540e-8bf8-49d2-b91f-72ec12fd2c3c","html_url":"https://github.com/ryanccn/am","commit_stats":{"total_commits":138,"total_committers":2,"mean_commits":69.0,"dds":0.2028985507246377,"last_synced_commit":"9ae1b880aa0a67503bc34aebbd908e718acd1ca3"},"previous_names":["ryanccn/am"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/ryanccn/am","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanccn%2Fam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanccn%2Fam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanccn%2Fam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanccn%2Fam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanccn","download_url":"https://codeload.github.com/ryanccn/am/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanccn%2Fam/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264229252,"owners_count":23576239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["apple","apple-music","applescript","clap","clap-rs","cli","hacktoberfest","macos","rust","tui"],"created_at":"2024-08-01T20:01:07.548Z","updated_at":"2025-07-08T08:04:56.473Z","avatar_url":"https://github.com/ryanccn.png","language":"Rust","readme":"# `am`\n\nA beautiful and feature-packed Apple Music CLI, written in [Rust](https://www.rust-lang.org/).\n\n## Installation\n\n### Cargo\n\nYou can install `am` with `cargo install` or `cargo binstall` from crates.io.\n\n```bash\ncargo binstall am\n```\n\n### Nix\n\nThis GitHub repository contains a flake. Add `github:ryanccn/am` to your flake inputs:\n\n```nix\n{\n  am = {\n    url = \"github:ryanccn/am\";\n    inputs.nixpkgs.follows = \"nixpkgs\";\n  }\n}\n```\n\nThen, use the overlay from `overlays.default` and add `am` to your packages. Alternatively, you can use `packages.{default,am}` directly.\n\n### Manual download\n\nDownload the [`aarch64`](https://github.com/ryanccn/am/releases/latest/download/am-aarch64-apple-darwin) (Apple Silicon) or the [`x86_64`](https://github.com/ryanccn/am/releases/latest/download/am-x86_64-apple-darwin) (Intel) version of the binary.\n\nDequarantine them with `xattr -d com.apple.quarantine \u003cpath\u003e` and make them executable with `chmod +x \u003cpath\u003e`.\n\n## Features\n\n- Beautiful now playing display\n- Playback controls (play, pause, toggle, resume, back, forward, next, previous)\n- Song.link generation\n- Discord rich presence\n- Launch agent installation\n- Shell completions\n\n## Discord presence launch agent\n\nThrough a macOS launch agent, the Discord rich presence can be made to run in the background as long as you are logged in.\n\n### Standard installation\n\nYou can install the Discord presence as a launch agent by running `am discord install`. Note that this depends on the executable/symlink staying in the same place; if it moves to a different place, run the command again.\n\nThe `am` process running in the launch agent will log to `~/Library/Logs/am-discord.log`.\n\nYou can uninstall the launch agent with `am discord uninstall`.\n\n### Home Manager\n\nThis repository's flake also provides a Home Manager module at `homeModules.am-discord`. This module exposes a service `am-discord` that you can enable.\n\n```nix\n{\n  services.am-discord = {\n    enable = true;\n    # logFile = \"${config.xdg.cacheHome}/am-discord.log\";\n  }\n}\n```\n\n## Thanks to...\n\n- [Raycast's Apple Music extension](https://github.com/raycast/extensions/tree/main/extensions/music) for a helpful reference of Apple Music's AppleScript interface usage\n- [sardonicism-04/discord-rich-presence](https://github.com/sardonicism-04/discord-rich-presence) for the original Rust crate for connecting to Discord\n- [caarlos0/discord-applemusic-rich-presence](https://github.com/caarlos0/discord-applemusic-rich-presence) for inspiring the Discord presence part of this CLI\n- [@ajaxm](https://github.com/ajaxm) for ceding ownership of the `am` package on crates.io\n\n## License\n\nGPLv3\n","funding_links":["https://ko-fi.com/ryancaodev"],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanccn%2Fam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanccn%2Fam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanccn%2Fam/lists"}