baoyu-electron-extract

Extract resources and JavaScript from Electron app .asar bundles.

Updated May 1, 2026
One-click install
npx skills add https://github.com/flashfoxer/openclaw-my-skills --skill baoyu-electron-extract-flashfoxer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-electron-extract
Source: https://github.com/flashfoxer/openclaw-my-skills/tree/main/baoyu-electron-extract
Command: npx skills add https://github.com/flashfoxer/openclaw-my-skills --skill baoyu-electron-extract-flashfoxer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bun, npx, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of extracting resources and JavaScript from Electron applications, providing a quick way to decompile and inspect app source code.

Core Features & Use Cases

  • Resource Extraction: Extracts resources from Electron app .asar bundles.
  • Source Map Restoration: Restores original source files from .js.map when available, or formats minified code with Prettier otherwise.
  • Cross-Platform Support: Works on macOS and Windows, skipping node_modules and supporting both platforms.
  • Use Case: When you need to inspect the source code of an Electron app, quickly extract the resources and JavaScript, or understand how a desktop Electron app is built.

Quick Start

Use the baoyu-electron-extract skill to extract resources from the installed app 'Codex'.

Frequently Asked Questions about baoyu-electron-extract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract JavaScript source code from an Electron app?

You can extract JavaScript from an Electron app by unpacking its .asar bundle. This process restores original source files from .js.map files or formats minified code using Prettier for inspection.

What is the best way to decompile an Electron application and restore its source map?

Decompiling an Electron application involves extracting its .asar resources and restoring the source map. When a .js.map file is available, original source files are fully restored; otherwise, minified code is formatted with Prettier.

Can I extract Electron app resources on both macOS and Windows?

Yes, you can extract Electron app resources on both macOS and Windows. The extraction process supports both platforms and automatically skips node_modules directories during resource extraction.

Do I need bun and npx to extract resources from an Electron .asar bundle?

Yes, you need both bun and npx installed in your environment to execute the extraction scripts. These dependencies are required to run the source code extraction and Prettier formatting processes.

How does Prettier handle minified code when an Electron app lacks a .js.map file?

When an Electron app lacks a .js.map file, Prettier formats the extracted minified JavaScript code. This makes the decompiled code readable without restoring the original source files.

Why does the Electron source code extraction process skip the node_modules directory?

The Electron source code extraction process skips the node_modules directory to focus purely on the application's custom source code. This prevents cluttering the extracted output with third-party dependencies.