Spicetify API coverage
This page is for people who know Spicetify and want to know, part by part, what Ampify gives them. It lists Spicetify’s API by area and gives each row a status. It does not repeat the feature table of spicetify-parity.md, which covers the whole product (themes, command line, Marketplace). Read that page for the big picture.
Ampify’s own reference is api.md. Its types are in ampify types, and examples/ shows each area.
How to read the status
| Status | Meaning |
|---|---|
| Same | Same name and same job, or close enough to port the code with small changes |
| Partial | Works, with a limit written in the row |
| Different | Another way to reach the same goal |
| Missing | Not built yet, and possible on Apple Music |
| Impossible | Needs Apple Music internals that do not exist or are private |
Spicetify’s names are from its documentation and its
globals.d.ts. Where Spicetify’s own name is a Spotify
detail, the row says so.
Player
| Spicetify | Ampify | Status | Note |
|---|---|---|---|
Player.play, pause, togglePlay, next, back, previous |
player.play(), pause(), toggle(), next(), previous() |
Same | Needs player.control |
Player.seek(ms) |
player.seek(ms) |
Same | |
Player.setVolume(0 to 1) |
player.setVolume(v) |
Partial | Apple’s slider is in decibels: 0.5 is not the middle. See api.md |
Player.getVolume() |
audio.volume() |
Partial | Known once a song has started |
Player.getMute, setMute, toggleMute |
player.muted(), setMute(on), toggleMute() |
Partial | Mute is Apple’s slider at its bottom; unmuting puts back the level before. Needs the volume known |
Player.increaseVolume, decreaseVolume |
player.increaseVolume(step), decreaseVolume(step) |
Same | A share of Apple’s slider, 0.1 by default |
Player.skipForward(ms), skipBack(ms) |
player.skipForward(ms), skipBack(ms) |
Same | 15 s by default, within the song |
Player.formatTime(ms), getProgressPercent |
player.formatTime(ms), player.progress() |
Same | progress() is 0 to 1 |
Player.toggleShuffle, setShuffle, toggleRepeat, setRepeat |
player.toggleShuffle(), setShuffle(), toggleRepeat(), setRepeat() |
Same | Apple’s own buttons |
Player.getShuffle, getRepeat |
player.shuffle(), player.repeat() |
Same | |
Player.data (track, position, duration, context) |
player.state() |
Partial | No playback context (playlist, album URI) |
Player.getProgress, getDuration, isPlaying |
player.state().positionMs, durationMs, playing |
Same | |
Player.addEventListener("songchange") |
player.on("songchange", fn) or "trackchange" |
Same | Spicetify’s name is accepted too |
Player.addEventListener("onplaypause") |
player.on("onplaypause", fn) or "statechange" |
Partial | Also fires when the length becomes known or the position jumps, not only on play and pause |
Player.addEventListener("onprogress") |
player.on("onprogress", fn) or "progress" |
Partial | Once per second of the song (and after a seek), with the whole state, not at every frame |
Player.removeEventListener |
player.off(event, fn) |
Same | |
Player.origin, Player.getQueue |
player.queue.list() |
Partial | Complete only once Apple’s “Up Next” panel was opened |
Player.addToQueue, removeFromQueue |
player.queue.remove(id); queue.add answers false |
Missing | Apple’s player ignores queued songs (apple-music-queue) |
Player.playUri, playUri with context |
Not available | Missing | Apple’s internal play API is not public |
| Lyrics (Lyrics Plus) | player.lyrics(), Ampify.lyrics.current() |
Same | Apple’s own lyrics, with word times when Apple gives them |
| Cover art of the track | player.artwork(), track.artworkColor |
Same |
Platform
| Spicetify | Ampify | Status | Note |
|---|---|---|---|
Platform.History (listen, push, goBack) |
ui.navigate(path) for Ampify’s pages |
Partial | Apple Music’s pages cannot be reached |
Platform.Library (likes, folders, albums, artists) |
library.tracks() (read only, permission library.read) |
Partial | Tracks with play counts from Apple’s library file. No likes, no writes |
Platform.PlaylistAPI |
Not available | Missing | Apple’s playlists are behind Apple’s private services |
Platform.UserAPI (user, country, product) |
Ampify.locale, Ampify.i18n.language |
Different | No account data: Ampify keeps it out on purpose |
Platform.PlatformData (app version) |
Ampify.appVersion, Ampify.version |
Same | Apple Music’s version and Ampify’s |
Platform.ClipboardAPI (copy, paste) |
Ampify.clipboard.copy(text), paste() |
Same | Text only; clipboard.write and clipboard.read are two permissions |
Platform.PlayerAPI |
Not available | Impossible | Spotify’s own player object does not exist in Apple Music |
CosmosAsync (REST calls to Spotify) |
Ampify.http.get/post/put/patch/del to a declared host |
Different | Apple’s internal web calls are private, so Ampify only offers plain https calls, declared in the manifest. No sub |
GraphQL |
Not available | Impossible | Apple Music has no public GraphQL |
Interface
| Spicetify | Ampify | Status | Note |
|---|---|---|---|
Topbar.Button |
ui.topbar.addButton({ label, icon, onClick, active, disabled }) |
Same | Apple has no separate top bar: buttons go next to the lyrics and queue buttons. deregister is ui.topbar.remove(id), disabled is ui.setDisabled(id, on) |
Playbar.Button, Playbar.Widget |
ui.playbar.addButton(...), ui.playbar.remove(id) |
Partial | Buttons only, no free widget |
ContextMenu.Item, SubMenu |
ui.menu.addItem("context", { ..., kinds, disabled }) and items: [...] |
Partial | shouldAdd is declared beforehand as kinds (Apple’s menu opens before an element could answer). No URI: the item’s kind and ids come from Apple’s data when it has them |
Menu.Item.setName, setState, deregister |
ui.setLabel(id, label), ui.setDisabled(id, on), ui.menu.remove(id) |
Same | |
Menu (app menu) |
ui.menu.addItem("app", ...) |
Same | |
PopupModal.display, hide |
ui.popup.show(name, view), ui.popup.close(name); ui.popup.open(view) |
Same | A popup of open has no name and closes by the user’s hand only |
Panel (side panel) |
ui.panel.register(id, view) |
Same | |
AppTitle (set, get, reset) |
ui.title.set(text), get(), reset() |
Partial | Title of Ampify’s panel, page or popup, not the window title; no sub |
| Sidebar entries (custom apps) | ui.sidebar.addItem({ ... }) |
Same | Icon is a Segoe Fluent glyph, not a Spotify icon |
| Custom apps, pages | kind: "app", ui.page.register(path, view) |
Same | |
Keyboard, Mousetrap.bind |
keyboard.bind(shortcut, fn), keyboard.unbind(shortcut) |
Partial | Global shortcuts only, no sequences |
Locale |
Ampify.i18n.t, i18n.define |
Same | Eight languages for Ampify’s own texts |
SVGIcons |
Ampify.icons.get(name), icons.names() |
Same | |
showNotification |
Ampify.notify({ title, text }) |
Same | Permission notifications |
colorExtractor |
color.extract(...), color.fromArtwork(url) |
Same | |
React, ReactDOM, ReactComponent |
Ampify.React, Ampify.ReactDOM, Ampify.components |
Partial | React-style API on Ampify’s own node tree; no React internals and no class components |
ReactHook.useExtractedColor |
Ampify.hooks.useArtworkColor() |
Partial | The cover playing now, not a cover of one’s choice |
ReactHook.useTheme, other React hooks |
Ampify.hooks.usePlayer(), useState, useEffect, … and Ampify.activeTheme() |
Partial | No useTheme: activeTheme() gives the theme’s id |
ReactComponent.ConfirmDialog |
Ampify.components.ConfirmDialog |
Same | Rendered into a popup |
Spotify’s own React components (Button, Toggle…) |
Ampify.components.Button, Toggle, Checkbox, Slider, Dropdown, ProgressBar, Spinner, Divider… |
Different | Ampify’s own, drawn with WinUI controls |
Config (extension settings) |
Ampify.config.get/set and the manifest settings |
Same | The manifest declares the settings page |
LocalStorage |
Ampify.storage.get/set/remove/clear (permission storage) |
Same | One JSON file per element |
Ampify.link (app and extension talking) |
Ampify.link.post/on/connected |
Different | Spicetify’s subfiles_extension idea; messages are JSON |
URI (parse, build, isAlbum, isTrack…) |
Ampify.uri.parse, build, isSong, isAlbum, isPlaylist, isArtist, isStation |
Partial | Apple’s links: https, music:, itms: and itmss: on music.apple.com |
Themes, snippets and files
| Spicetify | Ampify | Status | Note |
|---|---|---|---|
color.ini with schemes |
colors.ini as it is |
Same | themes/format.md |
user.css |
user.css on XAML names |
Partial | Spotify’s class names do not carry over: see themes/names.md |
| Snippets (CSS in the Spicetify settings) | kind: "snippet" |
Same | Switched on alone |
theme.js |
main.js of the theme |
Same | |
ampify CLI scaffold |
ampify new, then the kind: theme, snippet, extension or app |
Same | Starters that already run |
Impossible, and why
- React and Spotify internals (
Platformobjects, Cosmos, GraphQL, the router): Apple Music is a WinUI app. Its screens are not a web page with a JavaScript bundle, and the calls behind them are private. - Editing Apple Music’s own code: Ampify never changes the package. It does not hook the DRM or FairPlay.
- Spotify-only pieces: ads, DJ, Canvas, Friend Activity, podcasts. They have no Apple Music equivalent.
Top 10 gaps, by value
Ranked by what people would miss most, with the status they see today.
- Queue add (
addToQueue): missing. Needed for “true shuffle” style extensions. Apple’s player ignores it. - Playlists (
PlaylistAPI): missing. Needs Apple’s private services. - Mini player: missing. Its own window, so themes do not reach it.
- Theme filters and blends (
filter,mix-blend-mode): missing. XAML has no equivalent. - Duotone or tinted artwork: missing. No colour filter on an image in XAML.
- Playback context (the album or playlist playing) and Apple’s page changes (
Platform.History.listen): missing. Depends on what Apple’s player and frame let Ampify read. - Keyboard sequences (
Mousetrap) and shortcuts of the window only: partial.keyboard.bindandunbindare global. - Context menu conditions as a function (
shouldAdd): partial.kindscovers the kind of item; anything finer cannot be asked before Apple’s menu opens. - Library writes (likes, folders): missing.
library.writeis reserved. useThemeand other React hooks: partial. Themes are applied by the theme engine, not by a hook.
Gaps 1, 2, 9 depend on Apple’s private services. Gap 7 is the cheapest to add next.
Changes made with this page
player.off(event, fn)removes a listener. Before, an extension could not stop listening.player.onaccepts Spicetify’ssongchangeandonplaypausenames.http.open(url)is now in the TypeScript types (it was in the reference but missing from the types).- A manifest typo now gets a suggestion:
unknown permission: storag (did you mean "storage"?). - Then: the
progressevent (onprogress), mute, volume steps,skipForward/skipBack,formatTime,progress(),keyboard.unbind,Ampify.clipboard,kindsanddisabledon menu entries and buttons, theremoveof each placement,popup.show/close,title.get/reset,http.put/patch/del,storage.clear, theuripredicates anditmss:links,Ampify.appVersion,activeTheme(),ConfirmDialoganduseArtworkColor.