Deezify is a small Bun-based patcher that modifies the Deezer desktop app.asar to inject a custom script and enable developer mode.
- Backs up the original
app.asarbefore patching (with timestamped folders). - Extracts Deezer's
app.asar, injects a script tag intobuild/index.html, and writes a bundleddeezify.jspayload. - Enables Deezer's developer mode by rewriting the relevant JavaScript.
- OS: Currently only Windows is supported (uses
%LOCALAPPDATA%\\Programs\\deezer-desktop). - Runtime: Bun
>= 1.3.x. - Node/npm: Only needed for installing dependencies, not for running the CLI.
Clone the repository and install dependencies:
bun installBuild the CLI and browser payload:
bun run buildThis outputs compiled files into dist/ and wires the CLI entry at dist/cli.js.
From the project root, run:
bun run patchThis will:
- Locate the Deezer installation under
%LOCALAPPDATA%\\Programs\\deezer-desktop. - Extract
resources\\app.asarinto a temporary folder. - Inject a
<script src="./deezify.js"></script>tag intobuild/index.html. - Write the bundled
deezify.jsscript into the extracted build folder. - Enable developer mode by rewriting Deezer's JS bundle.
- Repack the folder into
app.asarand overwrite the original.
If you prefer to execute the compiled CLI directly:
cd dist
bun run .\\cli.jsOnce published globally (e.g. via npm or bun), you can also use the deezify binary defined in package.json.
Backups are stored under the system-specific data directory returned by env-paths for the app name Deezify. On Windows this is typically something like:
C:\\Users\\<you>\\AppData\\Roaming\\Deezify\\<YYMM.DD.HHMM>[-patched]\\app.asar
-patchedis appended if the currentapp.asaralready contains the injecteddeezify.jsscript.
- Source entrypoints:
- CLI:
src/cli.ts - Injected script:
src/inject/main.ts
- CLI:
- Build script:
build.ts(uses Bun'sbuild()API). - Utility helpers in
src/utils/handle Deezer install path discovery, backup, and dev-mode bypass.
Run ESLint (with auto-fix) over the sources:
bun run validate- Only Deezer desktop on Windows (default installation path) is supported.
- Other platforms (macOS, Linux) are not implemented in
install-path.ts. - Use at your own risk; patching
app.asarmay be against Deezer's terms of service.