How fly-sem/wechatvideodownloader-pro works
Project type and purpose
• This is a cross-platform desktop application built with Electron.
• It embeds a React-based renderer (UI) and a Node.js main process that:
• Installs and manages TLS certificates
• Sets up a local HTTP(S) proxy to intercept WeChat video requests
• Executes OS-specific registry or shell scripts (Windows VBS, Mac sudo)
• Invokes OpenSSL and decryption routines to handle encrypted video streams
• The goal is to capture, preview, decrypt, and download WeChat Video Channel streams on Win/Mac.
File structure
• Top-level:
• electron/ – Main-process modules (cert, proxyServer, decrypt, ipc, setProxy, utils)
• src/ – Renderer (React) components and FSM logic (App.jsx, fsm.js, etc.)
• config-overrides.js & webpack.electron.js – Build-time configuration for Electron and React
• Key patterns:
• Separation of Electron main (Node context) vs. React renderer (Browser context)
• Proxy server module in main, IPC channels between main and renderer
• OS-level scripts under public/regedit-vbs and OpenSSL under public/openssl
• Deployment-related: package.json, pnpm-lock.yaml, .prettierrc, .gitignore
README for additional insights
• Confirms automatic certificate installation and proxy configuration
• Walks through user flow: init → play video → capture URL → preview → download
• Notes OS differences: Windows uses VBS registry scripts; Mac copies sudo commands
• Mentions encrypted-video support in V2.x
Detail but avoid over-fragmentation
• IPC channel explicitly
• Call out the OpenSSL binary and VBS scripts