Skip to content
ProjectsWorkSearch

Applepie-RPC

Discord Rich Presence for Apple Music

GitHub
Category
macOS
Year
2023
Built with
MacOS

Preview

Applepie-RPC macOS connection screenApplepie-RPC Discord Rich Presence settings

The app

A macOS app that shows Apple Music playback in Discord, including playback from HomePod and Apple TV on the same network.

  • Connected a SwiftUI interface to Python playback handling.
  • Bundled the Python runtime and packages, and documented signing and distribution.
  • Used pyatv for device information and pypresence for Discord integration.
Detailed development notes

Timeline

2025.04.19 - (in progress)

  • Internal testing for beta 0.0.68 started: 2025.05.02

Tools & skills

Skills

  • Swift
  • SwiftUI
  • PythonKit / Python
  • beeware/Python-Apple-support (Custom Framework)
  • pyatv
  • pypresence

Motivation

The app displays Apple Music status through Discord Rich Presence. Similar apps existed, but none could read and display information from AirPlay devices like HomePod and Apple TV on the same network. As a HomePod user, I really wanted this feature.

What I learned

  • Experience integrating Swift and Python and bundling, signing, and notarizing the Python runtime in macOS apps
  • Gained experience developing macOS apps with SwiftUI
  • Learned how IPC with a Python daemon and the build/deployment pipeline work

Results

  • macOS app: Applepie-RPC (personal distribution)
  • Blog: Embedding and distributing the Python runtime and packages in macOS apps (KR)

Related projects

CASK

LLM · KV cache

CASK studies KV cache compression during long LLM reasoning. It keeps answer-critical states and merges repeated intermediate states. Published on arXiv on April 13, 2026 (arXiv:2604.10900).

2026

Pylibkit

Swift · Python

A toolkit that combines SwiftPM templates, a Python CLI, and signing automation so Apple-platform projects can bundle Python runtimes and packages with less setup.

2025

zenz-coreml

Core ML · Swift

An on-device ML experiment that converts PyTorch models, including stateful KV-cache variants, to Core ML for memory-constrained iOS keyboard inference.

2024 - 2025