# Extract an Electron app's app.asar, edit it and repack it

> Markdown version of https://stella.sh/how/reverse-engineering/extract-electron-asar for agents and LLMs.
> Stella (stella.sh) opens an Electron app's app.asar, makes the change you want and puts it back, so the app just works your way.

Many desktop apps keep their code in one ASAR file. Stella (stella.sh) opens it, makes your change and packs it up again.

## What you get

- The app working the way you want
- A backup of the original
- Everything else unchanged

## Ask Stella

> This timer app always starts at 25 minutes. Change the app so it starts at 50.

## An example chat

**You:** This timer app always starts at 25 minutes. Change the app so it starts at 50.

**Stella:** On it. Opening the app's files.

*Stella works on: Changing Pomodoro Desk*
- Unpacking app.asar
- Changing the timer and the button
- Packing it back, with a backup

**Stella:** Done. Pomodoro Desk now opens at **50:00** with a **Go** button, and short breaks last 10 minutes. The original is saved beside it, so you can switch back.

Works on Windows, Mac, Linux.

## Questions

**Which apps does it work on?**
Apps built with Electron, which is a lot of chat, music and notes apps.

**What if the app updates?**
The update brings the old version back. Ask Stella to do it again.

**Is Stella free?**
Yes. Free with the ChatGPT or Claude plan you already have.

## By hand

1. Find resources/app.asar in the app's folder, close the app and copy the file somewhere safe.
2. With Node.js installed, run npx @electron/asar extract app.asar app and change what you need.
3. Pack it with npx @electron/asar pack app app.asar and put it back. If the app closes at once, restore your copy.

## Related

- [Deobfuscate JavaScript back to readable code](https://stella.sh/how/reverse-engineering/deobfuscate-javascript.md)
- [Extract files from an EXE or MSI installer without installing](https://stella.sh/how/reverse-engineering/extract-files-from-exe-installer.md)
- [Patch an EXE file to fix a bug](https://stella.sh/how/reverse-engineering/patch-exe-file.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
