20 releases

new 0.2.0-beta.23 May 11, 2025
0.2.0-beta.21 Feb 6, 2025
0.2.0-beta.14 Jan 31, 2025

#575 in Web programming

Download history 25/week @ 2025-01-21 1162/week @ 2025-01-28 437/week @ 2025-02-04 23/week @ 2025-02-11 8/week @ 2025-02-18 14/week @ 2025-02-25 4/week @ 2025-03-04 4/week @ 2025-03-11 6/week @ 2025-03-25 1/week @ 2025-04-01 230/week @ 2025-05-06

244 downloads per month

LGPL-3.0

45KB
802 lines

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);

Dependencies

~11–23MB
~325K SLoC