How ciderapp/cider works
Cider 1 is a cross-platform Apple Music desktop client built with Electron and Vue. Its main workflow starts the desktop process, creates a renderer window, initializes the music interface and playback, and relays app and playback events to main-process plugins. The repository also includes local-file playback, settings and cache, remote access, and optional integrations. Edges are limited to relationships explicit in the README or shown in the supplied excerpts and source index; some listed subsystems have no verified connections here.
Main entry points: plugins.ts Plugin dispatch · index.ts Process startup · app.js Renderer bootstrap · browserwindow.ts Window and server
Components 30
Desktop runtime
- Process startup
src/main/index.ts - App lifecycle
src/main/base/app.ts - Window and server
src/main/base/browserwindow.ts - Preload bridge
src/preload/cider-preload.js - Shared utilities
src/main/base/utils.ts
Music experience
- Renderer bootstrap
src/renderer/main/app.js - Music interface
src/renderer/main/vueapp.js - MusicKit tools
src/renderer/main/musickittools.js - Audio playback
src/renderer/audio/audio.js - Cloud audio
src/renderer/audio/cloud/audio.js - Renderer events
src/renderer/main/events.js
State and content
- Vuex state
src/renderer/main/vuex-store.js - Persistent settings
src/main/base/store.ts - Renderer cache
src/renderer/main/cidercache.js - Local library
src/main/providers/local/index.ts
Integrations and remotes
- Plugin dispatch
src/main/base/plugins.ts - WebSocket interop
src/renderer/main/wsapi_interop.js - WebSocket API
src/main/base/wsapi.ts - Web remote
src/web-remote/index.js - Menu bar
src/main/plugins/menubar.ts - Chromecast
src/main/plugins/chromecast.ts - Discord presence
src/main/plugins/discordrpc.ts - Last.fm scrobbling
src/main/plugins/lastfm.ts - MPRIS controls
src/main/plugins/mpris.ts - Playback alerts
src/main/plugins/playbackNotifications.ts - AirPlay output
src/main/plugins/raop.ts - Taskbar controls
src/main/plugins/thumbar.ts - Web Now Playing
src/main/plugins/webNowPlaying.ts
Other components
- Listener
- Apple Music
Connections 29
- Listener → Process startup: starts
- Process startup → Persistent settings: initializes
src/main/index.ts - Process startup → App lifecycle: creates
src/main/index.ts - Process startup → Plugin dispatch: creates
src/main/index.ts - Process startup → Window and server: creates
src/main/index.ts - Process startup → Shared utilities: initializes translations
src/main/index.ts - Process startup → Plugin dispatch: dispatches lifecycle
src/main/index.ts - App lifecycle → Shared utilities: uses
src/main/base/app.ts - Window and server → Local library: imports provider
src/main/base/browserwindow.ts - Window and server → Shared utilities: uses
src/main/base/browserwindow.ts - Window and server → WebSocket API: imports API
src/main/base/browserwindow.ts - Renderer bootstrap → Music interface: mounts
src/renderer/main/app.js - Renderer bootstrap → Renderer cache: imports
src/renderer/main/app.js - Renderer bootstrap → Renderer events: initializes
src/renderer/main/app.js - Renderer bootstrap → WebSocket interop: exposes
src/renderer/main/app.js - Renderer bootstrap → MusicKit tools: exposes
src/renderer/main/app.js - Music interface → Vuex state: uses store
src/renderer/main/vueapp.js - Music interface → Apple Music: requests catalog data
src/renderer/main/vueapp.js - Local library → Listener: serves local media
- Plugin dispatch → Menu bar: dispatches hooks
- Plugin dispatch → Chromecast: dispatches hooks
- Plugin dispatch → Discord presence: dispatches hooks
- Plugin dispatch → Last.fm scrobbling: dispatches hooks
- Plugin dispatch → MPRIS controls: dispatches hooks
- Plugin dispatch → Playback alerts: dispatches hooks
- Plugin dispatch → AirPlay output: dispatches hooks
- Plugin dispatch → Taskbar controls: dispatches hooks
- Plugin dispatch → Web Now Playing: dispatches hooks
- Web remote → WebSocket API: uses API