Skip to content

Instantly share code, notes, and snippets.

View dangeredwolf's full-sized avatar

dangered wolf dangeredwolf

View GitHub Profile
@rxri
rxri / spicetify_v8_explanation.md
Last active June 8, 2025 19:15
Technical explanation of V8 Snapshot in Spotify

Hi fellow reader,

I'm ririxi, core maintainer of spicetify. Some people asked me to do a technical explanation of what spotify shipped with macOS Intel versions. This would be my first time writing a post like this, so I apologize for any inscriptions.

What is V8 context snapshot?

Spotify under the hood uses CEF (Chromium Embedded Framework) which is a framework around chromium, essentially electron but for C++. Chromium uses a V8 which is a Javascript engine created by Google. V8 can generate serialized representation (bytecode) of the V8 engine's heap. It contains pre-initialized JavaScript objects and functions.