An in-memory Electron mod loader, built to simplify Discord modding.
Find a file
2026-08-10 13:24:50 +01:00
.github add funding info 2025-01-31 00:48:02 +00:00
src add desktopName to package.json 2026-08-10 13:17:34 +01:00
vendor/detours-sys update vendoring 2025-07-13 22:04:14 +01:00
.gitignore initial commit 2025-01-27 23:20:21 +00:00
.gitmodules feat: vendor detours-sys 2025-07-13 21:53:29 +01:00
Cargo.lock chore: update cargo.lock 2026-08-10 13:24:50 +01:00
Cargo.toml chore: bump version to 0.2.2 2026-08-10 13:20:34 +01:00
LICENSE initial commit 2025-01-27 23:20:21 +00:00
README.md Update README.md 2025-02-01 03:34:10 +00:00
rust-toolchain.toml various improvements 2026-08-08 13:43:41 +01:00

electron-hook

A Rust library for loading mods into Electron applications without patching any files.

This project was designed to ease some pain points with modding Discord, but it can be used for most Electron applications.

For some real-life uses of electron-hook, check out:

Installation

Add this to your Cargo.toml:

[dependencies]
electron-hook = "0.2.0"

[lib]
crate-type = ["cdylib"]

And in your lib.rs:

pub use electron_hook::*;

When you build your project with --lib it will generate a .dll or .so, which you can pass the path of into electron_hook::launch

Usage

For a better example, check out the Documentation

electron_hook::launch(&electron_executable, &library_path, &asar_path, vec![], true);