Update README and package.json files for Gelectron installation instructions and native addon details

This commit is contained in:
miles committed 2026-08-30 22:44:24 -05:00
1 parent c96d6dfc5a
commit 40f15bc45a
14 files changed
+176 -30

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ node_modules/
npm-debug.log* npm-debug.log*
package-lock.json package-lock.json
al/
# Build artifacts # Build artifacts
*.node *.node
*.dylib *.dylib
+20 -2
View File
@@ -22,13 +22,31 @@ Electron bundles Chromium — ~300 MB per app with 500+ MB RSS. Gelectron uses t
## Quick Start ## Quick Start
### Prerequisites ### Install from npm (recommended)
The built native binary and the Electron compatibility layer are published to npm. This is the main and easiest way to get Gelectron — no Rust toolchain required:
```bash
npm install -g gelectron-core
```
This installs the `gelectron-core` package, which bundles the pre-built native binary and the JS compatibility layer, and automatically pulls in the platform-specific addon for your operating system and CPU architecture (see the [package on npm](https://www.npmjs.com/package/gelectron-core)).
Once installed, run any Electron app with:
```bash
gelectron-core /path/to/electron-app
```
> The `gelectron-core` npm package is the recommended distribution channel. Building from source (below) is only needed if you're developing Gelectron itself or want the bleeding-edge version.
### Prerequisites (for building from source)
- Rust 1.75+ (`rustup.rs`) - Rust 1.75+ (`rustup.rs`)
- Node.js 18+ - Node.js 18+
- npm - npm
### Build & Run ### Build & Run (from source)
```bash ```bash
git clone https://github.com/mileswolfallen2/gelectron.git git clone https://github.com/mileswolfallen2/gelectron.git
+10 -4
View File
@@ -3,9 +3,15 @@
"version": "0.1.1", "version": "0.1.1",
"description": "Gelectron native addon for macOS ARM64", "description": "Gelectron native addon for macOS ARM64",
"main": "gelectron_core.darwin-arm64.node", "main": "gelectron_core.darwin-arm64.node",
"files": ["gelectron_core.darwin-arm64.node"], "files": [
"os": ["darwin"], "gelectron_core.darwin-arm64.node"
"cpu": ["arm64"], ],
"os": [
"darwin"
],
"cpu": [
"arm64"
],
"license": "MIT", "license": "MIT",
"author": "mileswa1q22" "author": "mileswa1q22"
} }
+17
View File
@@ -0,0 +1,17 @@
# Gelectron (macOS x64)
Gelectron native addon for **macOS on x64 (Intel)**.
This package provides the native `gelectron_core` binary for macOS x64. It is an internal dependency of [`gelectron`](https://www.npmjs.com/package/gelectron) and is installed automatically — you should not need to install it directly.
> Gelectron is a drop-in replacement for Electron using native web views (WKWebView / WebView2 / WebKitGTK) instead of Chromium.
## Usage
Install the platform-specific addon for your system:
```bash
npm install gelectron
```
The correct platform binary is selected automatically via `optionalDependencies`.
+10 -4
View File
@@ -3,9 +3,15 @@
"version": "0.1.1", "version": "0.1.1",
"description": "Gelectron native addon for macOS x64", "description": "Gelectron native addon for macOS x64",
"main": "gelectron_core.darwin-x64.node", "main": "gelectron_core.darwin-x64.node",
"files": ["gelectron_core.darwin-x64.node"], "files": [
"os": ["darwin"], "gelectron_core.darwin-x64.node"
"cpu": ["x64"], ],
"os": [
"darwin"
],
"cpu": [
"x64"
],
"license": "MIT", "license": "MIT",
"author": "mileswa1q22" "author": "mileswa1q22"
} }
+17
View File
@@ -0,0 +1,17 @@
# Gelectron (Linux ARM64)
Gelectron native addon for **Linux on ARM64 (GNU)**.
This package provides the native `gelectron_core` binary for Linux ARM64. It is an internal dependency of [`gelectron`](https://www.npmjs.com/package/gelectron) and is installed automatically — you should not need to install it directly.
> Gelectron is a drop-in replacement for Electron using native web views (WKWebView / WebView2 / WebKitGTK) instead of Chromium.
## Usage
Install the platform-specific addon for your system:
```bash
npm install gelectron
```
The correct platform binary is selected automatically via `optionalDependencies`.
+10 -4
View File
@@ -3,9 +3,15 @@
"version": "0.1.1", "version": "0.1.1",
"description": "Gelectron native addon for Linux ARM64 (GNU)", "description": "Gelectron native addon for Linux ARM64 (GNU)",
"main": "gelectron_core.linux-arm64-gnu.node", "main": "gelectron_core.linux-arm64-gnu.node",
"files": ["gelectron_core.linux-arm64-gnu.node"], "files": [
"os": ["linux"], "gelectron_core.linux-arm64-gnu.node"
"cpu": ["arm64"], ],
"os": [
"linux"
],
"cpu": [
"arm64"
],
"license": "MIT", "license": "MIT",
"author": "mileswa1q22" "author": "mileswa1q22"
} }
+17
View File
@@ -0,0 +1,17 @@
# Gelectron (Linux x64)
Gelectron native addon for **Linux on x64 (GNU)**.
This package provides the native `gelectron_core` binary for Linux x64. It is an internal dependency of [`gelectron`](https://www.npmjs.com/package/gelectron) and is installed automatically — you should not need to install it directly.
> Gelectron is a drop-in replacement for Electron using native web views (WKWebView / WebView2 / WebKitGTK) instead of Chromium.
## Usage
Install the platform-specific addon for your system:
```bash
npm install gelectron
```
The correct platform binary is selected automatically via `optionalDependencies`.
+10 -4
View File
@@ -3,9 +3,15 @@
"version": "0.1.1", "version": "0.1.1",
"description": "Gelectron native addon for Linux x64 (GNU)", "description": "Gelectron native addon for Linux x64 (GNU)",
"main": "gelectron_core.linux-x64-gnu.node", "main": "gelectron_core.linux-x64-gnu.node",
"files": ["gelectron_core.linux-x64-gnu.node"], "files": [
"os": ["linux"], "gelectron_core.linux-x64-gnu.node"
"cpu": ["x64"], ],
"os": [
"linux"
],
"cpu": [
"x64"
],
"license": "MIT", "license": "MIT",
"author": "mileswa1q22" "author": "mileswa1q22"
} }
+17
View File
@@ -0,0 +1,17 @@
# Gelectron (Windows ARM64)
Gelectron native addon for **Windows on ARM64**.
This package provides the native `gelectron_core` binary for Windows ARM64. It is an internal dependency of [`gelectron`](https://www.npmjs.com/package/gelectron) and is installed automatically — you should not need to install it directly.
> Gelectron is a drop-in replacement for Electron using native web views (WKWebView / WebView2 / WebKitGTK) instead of Chromium.
## Usage
Install the platform-specific addon for your system:
```bash
npm install gelectron
```
The correct platform binary is selected automatically via `optionalDependencies`.
+10 -4
View File
@@ -3,9 +3,15 @@
"version": "0.1.1", "version": "0.1.1",
"description": "Gelectron native addon for Windows ARM64", "description": "Gelectron native addon for Windows ARM64",
"main": "gelectron_core.win32-arm64-msvc.node", "main": "gelectron_core.win32-arm64-msvc.node",
"files": ["gelectron_core.win32-arm64-msvc.node"], "files": [
"os": ["win32"], "gelectron_core.win32-arm64-msvc.node"
"cpu": ["arm64"], ],
"os": [
"win32"
],
"cpu": [
"arm64"
],
"license": "MIT", "license": "MIT",
"author": "mileswa1q22" "author": "mileswa1q22"
} }
+17
View File
@@ -0,0 +1,17 @@
# Gelectron (Windows x64)
Gelectron native addon for **Windows on x64**.
This package provides the native `gelectron_core` binary for Windows x64. It is an internal dependency of [`gelectron`](https://www.npmjs.com/package/gelectron) and is installed automatically — you should not need to install it directly.
> Gelectron is a drop-in replacement for Electron using native web views (WKWebView / WebView2 / WebKitGTK) instead of Chromium.
## Usage
Install the platform-specific addon for your system:
```bash
npm install gelectron
```
The correct platform binary is selected automatically via `optionalDependencies`.
+10 -4
View File
@@ -3,9 +3,15 @@
"version": "0.1.1", "version": "0.1.1",
"description": "Gelectron native addon for Windows x64", "description": "Gelectron native addon for Windows x64",
"main": "gelectron_core.win32-x64-msvc.node", "main": "gelectron_core.win32-x64-msvc.node",
"files": ["gelectron_core.win32-x64-msvc.node"], "files": [
"os": ["win32"], "gelectron_core.win32-x64-msvc.node"
"cpu": ["x64"], ],
"os": [
"win32"
],
"cpu": [
"x64"
],
"license": "MIT", "license": "MIT",
"author": "mileswa1q22" "author": "mileswa1q22"
} }
+10 -4
View File
@@ -1,10 +1,10 @@
{ {
"name": "gelectron", "name": "gelectron-core",
"version": "0.1.1", "version": "0.1.1",
"description": "Firefox-engine alternative to Electron, powered by Servo", "description": "Firefox-engine alternative to Electron, powered by Servo",
"main": "src/electron/index.js", "main": "src/electron/index.js",
"bin": { "bin": {
"gelectron": "./cli/gelectron.js" "gelectron-core": "./cli/gelectron.js"
}, },
"scripts": { "scripts": {
"build": "napi build --platform --release --package gelectron-core", "build": "napi build --platform --release --package gelectron-core",
@@ -63,6 +63,12 @@
"gelectron-linux-arm64-gnu": "0.1.1", "gelectron-linux-arm64-gnu": "0.1.1",
"gelectron-linux-x64-gnu": "0.1.1", "gelectron-linux-x64-gnu": "0.1.1",
"gelectron-win32-arm64-msvc": "0.1.1", "gelectron-win32-arm64-msvc": "0.1.1",
"gelectron-win32-x64-msvc": "0.1.1" "gelectron-win32-x64-msvc": "0.1.1",
"gelectron-core-darwin-x64": "0.1.1",
"gelectron-core-darwin-arm64": "0.1.1",
"gelectron-core-win32-x64-msvc": "0.1.1",
"gelectron-core-win32-arm64-msvc": "0.1.1",
"gelectron-core-linux-x64-gnu": "0.1.1",
"gelectron-core-linux-arm64-gnu": "0.1.1"
} }
} }