stratum-rs-overlay
v1.0.5
Published
A high-performance, non-intrusive game overlay library for Electron powered by Rust.
Maintainers
Readme
⚡ Stratum Overlay (stratum-rs-overlay)
High-Performance, DLL-Injection Free Game Overlay Library for Electron. > Powered by Rust 🦀 + N-API.
Stratum Overlay is a specialized library designed to create invisible, click-through overlays for Windows applications using Electron. Unlike traditional methods, it does not inject DLLs into game processes, making it safer and more compatible with anti-cheat systems.
🚀 Key Features
- 🛡️ Anti-Cheat Friendly: Uses external window overlay method. No memory writing or code injection.
- ⚡ Blazing Fast: Core logic written in Rust for minimal overhead and maximum performance.
- 🖱️ Click-Through Support: Perfectly handles mouse events, passing clicks to the game behind the overlay.
- 🔒 Secure Licensing: Built-in license verification system powered by Ed25519 cryptography.
- 🪟 Windows Native: Fully optimized for Windows (x64) using native Win32 APIs.
📦 Installation
npm install stratum-rs-overlayNote: This library currently supports Windows (x64) only.
🛠️ Usage
1. Get a License Key
To use this library, you need a valid license key.
👉 Get your key at: https://stratum-rs.com
2. Integration in Electron
Add the following code to your Electron Main Process (main.js):
const { app, BrowserWindow } = require('electron');
const stratum = require('stratum-rs-overlay');
// Load environment variables (Recommended)
require('dotenv').config();
const LICENSE_KEY = process.env.STRATUM_LICENSE_KEY || "YOUR_LICENSE_KEY";
function createWindow() {
const win = new BrowserWindow({
width: 800,
height: 600,
transparent: true, // Required
frame: false, // Required
alwaysOnTop: true, // Recommended for overlays
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
},
});
win.loadFile('index.html'); // or loadURL(...)
// ---------------------------------------------------------
// 🔐 1. Initialize & Verify License
// ---------------------------------------------------------
console.log("🔑 Verifying License...");
const isVerified = stratum.init(LICENSE_KEY);
if (isVerified) {
console.log("✅ License Verified! Activating Overlay...");
// -------------------------------------------------------
// 🖱️ 2. Enable Click-Through Mode
// Pass the native window handle (HWND) to Rust
// -------------------------------------------------------
const hwnd = win.getNativeWindowHandle();
stratum.setClickThrough(hwnd);
console.log("✨ Overlay Mode: ACTIVATED");
} else {
console.error("❌ License Verification Failed.");
console.error(" - Overlay features are disabled.");
// Handle invalid license (e.g., show error dialog or quit)
}
}
app.whenReady().then(createWindow);⚠️ Requirements
- OS: Windows 10 / 11 (64-bit)
- Runtime: Node.js 16+ / Electron
- Dependencies: Microsoft Visual C++ Redistributable (usually pre-installed on Windows)
📞 Support & License
This project is a Commercial Software.
Usage without a valid license key is strictly prohibited.
- Website: stratum-rs.com
- Contact: [email protected]
Copyright (c) 2026 JJoGeon [email protected]. All rights reserved.
