feat: add Gelectron compatibility layer for Electron modules

- Introduced contextBridge module for exposing APIs to the main world.
- Added dialog module for handling open, save, and message dialogs.
- Created index module as a drop-in replacement for Electron's main API.
- Implemented ipcMain and ipcRenderer modules for inter-process communication.
- Developed menu and menu item modules for creating application menus.
- Added nativeImage module for handling images in various formats.
- Implemented notification module for displaying system notifications.
- Created preload-loader for injecting preload scripts into the renderer process.
- Developed runtime module for running Electron apps in a Node.js environment.
- Added safe-storage module for basic string encryption and decryption.
- Implemented shell module for opening external URLs and managing file paths.
- Created tray module for managing system tray icons and menus.
- Developed webContents utilities for interacting with browser windows.
This commit is contained in:
miles committed 2026-07-26 17:12:47 -05:00
1 parent 4af8378d72
commit 86c19b0012
39 files changed
+4687 -2

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
{
"name": "gelectron",
"version": "0.1.0",
"description": "Firefox-engine alternative to Electron, powered by Servo",
"main": "src/electron/index.js",
"bin": {
"gelectron": "./cli/gelectron.js"
},
"scripts": {
"build": "napi build --platform --release",
"build:debug": "napi build --platform",
"artifacts": "napi artifacts",
"prepublishOnly": "napi prepublish -t npm",
"universal": "napi universal"
},
"napi": {
"name": "gelectron_core",
"triples": {
"defaults": true,
"additional": [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"aarch64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu"
]
}
},
"files": [
"cli/",
"src/",
"crates/gelectron-core/*.node"
],
"keywords": [
"electron",
"servo",
"gecko",
"browser",
"desktop",
"webview"
],
"author": "mileswa1q22",
"license": "MIT",
"devDependencies": {
"@napi-rs/cli": "^3.0.0"
},
"engines": {
"node": ">=18.0.0"
}
}