@osmn-byhn/widget-core-windows 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +162 -0
- package/binding.gyp +69 -0
- package/dist/autostart.d.ts +14 -0
- package/dist/autostart.d.ts.map +1 -0
- package/dist/autostart.js +153 -0
- package/dist/autostart.js.map +1 -0
- package/dist/autostart.test.d.ts +2 -0
- package/dist/autostart.test.d.ts.map +1 -0
- package/dist/autostart.test.js +39 -0
- package/dist/autostart.test.js.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +306 -0
- package/dist/index.js.map +1 -0
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/index.test.js +60 -0
- package/dist/index.test.js.map +1 -0
- package/dist/mock_native.d.ts +7 -0
- package/dist/mock_native.d.ts.map +1 -0
- package/dist/mock_native.js +12 -0
- package/dist/mock_native.js.map +1 -0
- package/dist/registry.d.ts +24 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +87 -0
- package/dist/registry.js.map +1 -0
- package/dist/registry.test.d.ts +2 -0
- package/dist/registry.test.d.ts.map +1 -0
- package/dist/registry.test.js +43 -0
- package/dist/registry.test.js.map +1 -0
- package/dist/runner.d.ts +2 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +22 -0
- package/dist/runner.js.map +1 -0
- package/dist/shield.d.ts +5 -0
- package/dist/shield.d.ts.map +1 -0
- package/dist/shield.js +20 -0
- package/dist/shield.js.map +1 -0
- package/dist/shield.test.d.ts +2 -0
- package/dist/shield.test.d.ts.map +1 -0
- package/dist/shield.test.js +20 -0
- package/dist/shield.test.js.map +1 -0
- package/dist/test.d.ts +2 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +54 -0
- package/dist/test.js.map +1 -0
- package/native/WidgetManager.h +26 -0
- package/native/host.cpp +70 -0
- package/native/linux/WidgetManager.cpp +278 -0
- package/native/macos/WidgetManager.mm +87 -0
- package/native/main.cpp +57 -0
- package/native/win32/WidgetManager.cpp +246 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Osman Beyhan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# WidgetCore 🚀
|
|
2
|
+
|
|
3
|
+
**WidgetCore** is a high-performance, cross-platform library built with Node.js and C++ for creating interactive and persistent desktop widgets. It leverages native OS webview engines (**WebView2** on Windows, **WKWebView** on macOS, and **WebKitGTK** on Linux) to provide a seamless, lightweight, and hardware-accelerated widget experience.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🏗️ Architecture Overview
|
|
8
|
+
|
|
9
|
+
WidgetCore uses a hybrid architecture where the core logic is managed in Node.js, while windowing and webview rendering are handled by a native C++ module (`widget_core.node`).
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
A[Node.js App] --> B[DesktopWidget Class]
|
|
14
|
+
B --> C[WidgetRegistry]
|
|
15
|
+
B --> D[AutostartManager]
|
|
16
|
+
B --> E[Native Module C++]
|
|
17
|
+
E --> F{Platform}
|
|
18
|
+
F -->|Linux| G[WebKitGTK + GTK3]
|
|
19
|
+
F -->|macOS| H[WKWebView + Cocoa]
|
|
20
|
+
F -->|Windows| I[WebView2 + Win32]
|
|
21
|
+
G --> J[Desktop Widget Window]
|
|
22
|
+
H --> J
|
|
23
|
+
I --> J
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## ✨ Core Capabilities
|
|
29
|
+
|
|
30
|
+
- **🚀 HTML/JS Power**: Build widgets using any web technology. No restricted environments.
|
|
31
|
+
- **🖼️ Native Transparency**: Aggressive transparency settings ensure widgets blend perfectly with wallpapers.
|
|
32
|
+
- **🖇️ System Integration**: Widgets are pinned below icons (on supported platforms) and removed from taskbars/app-switchers.
|
|
33
|
+
- **🖱️ Full Interactivity**: Toggle `interactive: true` to allow mouse clicks and keyboard input directly on the desktop background.
|
|
34
|
+
- **💾 Auto-Persistence**: Automatically saves widget state and ensures they reappear after system reboots.
|
|
35
|
+
- **🧩 Scroll-Free Design**: Scrollbars are hidden by default via CSS injection, with optional overflow prevention.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 🔒 Security Shield
|
|
40
|
+
|
|
41
|
+
Security is a primary concern for widgets. **WidgetCore** implements a multi-layer "Shield" to protect the host system:
|
|
42
|
+
|
|
43
|
+
1. **API Isolation**: Injects a preload script that freezes `process`, `require`, and other sensitive Node.js globals.
|
|
44
|
+
2. **Context Separation**: The webview runs in a sandboxed environment where it cannot access the local filesystem or execute shell commands directly.
|
|
45
|
+
3. **Protocol Filtering**: Only `http:`, `https:`, and valid `file:` protocols are allowed for loading content.
|
|
46
|
+
4. **Keyword Blocking**: Input data and URLs are scanned for dangerous keywords like `shell`, `eval`, or `exec`.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 🚀 Detailed Usage
|
|
51
|
+
|
|
52
|
+
### Advanced HTML Widget Example
|
|
53
|
+
You can create complex, self-contained widgets using a single string:
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
import { DesktopWidget } from 'widget-core-windows';
|
|
57
|
+
|
|
58
|
+
const clockHTML = `
|
|
59
|
+
<div id="clock" style="font-size: 48px; font-weight: bold; color: #60A5FA; font-family: sans-serif; text-shadow: 2px 2px 10px rgba(0,0,0,0.5);">00:00:00</div>
|
|
60
|
+
<script>
|
|
61
|
+
setInterval(() => {
|
|
62
|
+
document.getElementById('clock').innerText = new Date().toLocaleTimeString();
|
|
63
|
+
}, 1000);
|
|
64
|
+
</script>
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
const widget = new DesktopWidget("", {
|
|
68
|
+
html: clockHTML,
|
|
69
|
+
width: 300,
|
|
70
|
+
height: 100,
|
|
71
|
+
x: 50,
|
|
72
|
+
y: 50,
|
|
73
|
+
scroll: false,
|
|
74
|
+
interactive: false // Clocks usually don't need input
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
// Make it stay after reboot
|
|
78
|
+
await widget.makePersistent(widget.options);
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Static Global Management
|
|
82
|
+
```typescript
|
|
83
|
+
// Stop all running widgets across the system
|
|
84
|
+
const stopped = DesktopWidget.stopAll();
|
|
85
|
+
|
|
86
|
+
// Get list of all registered widgets
|
|
87
|
+
const widgets = DesktopWidget.listWidgets();
|
|
88
|
+
widgets.forEach(w => console.log(`ID: ${w.id}, URL: ${w.url}, Active: ${w.active}`));
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## 🛠️ API Documentation
|
|
94
|
+
|
|
95
|
+
### `WidgetOptions`
|
|
96
|
+
| Property | Type | Description |
|
|
97
|
+
| :--- | :--- | :--- |
|
|
98
|
+
| `width` | `number` | Width in pixels. |
|
|
99
|
+
| `height` | `number` | Height in pixels. |
|
|
100
|
+
| `x` | `number` | X coordinate from top-left. |
|
|
101
|
+
| `y` | `number` | Y coordinate from top-left. |
|
|
102
|
+
| `opacity` | `number` | Window opacity (0.0 to 1.0). Default: `1.0`. |
|
|
103
|
+
| `interactive` | `boolean` | If `true`, clicks pass through to the widget. Default: `false`. |
|
|
104
|
+
| `html` | `string` | Raw HTML/CSS source code to load. |
|
|
105
|
+
| `scroll` | `boolean` | If `false`, `overflow: hidden` is applied. Default: `true`. |
|
|
106
|
+
| `blur` | `boolean` | Platform-specific background blur effect. |
|
|
107
|
+
|
|
108
|
+
### Instance Methods
|
|
109
|
+
- **`makePersistent(options): Promise<boolean>`**: Saves to disk and enables autostart.
|
|
110
|
+
- **`activate(): boolean`**: Enables autostart and launches the process.
|
|
111
|
+
- **`deactivate(): boolean`**: Disables autostart and kills the process.
|
|
112
|
+
- **`launchStandalone(): boolean`**: Spawns a background `runner.js` process for the widget.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## 🐧 Linux Platform Notes (GTK/WebKit)
|
|
117
|
+
On Linux, WidgetCore uses GTK and WebKitGTK. For full transparency, ensure your window manager/compositor (like Mutter on GNOME or KWin on KDE) is configured correctly.
|
|
118
|
+
- **Dependencies**: `libwebkit2gtk-4.0-dev` or `libwebkit2gtk-4.1-dev`.
|
|
119
|
+
- **Autostart**: Creates `.desktop` files in `~/.config/autostart/`.
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## 🍎 macOS Platform Notes (Cocoa/WKWebView)
|
|
124
|
+
- **Engine**: WKWebView.
|
|
125
|
+
- **Autostart**: Creates `.plist` files in `~/Library/LaunchAgents/`.
|
|
126
|
+
- **Transparency**: Fully supported out-of-the-box.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## 💻 Windows Platform Notes (Win32/WebView2)
|
|
131
|
+
- **Engine**: WebView2 (Evergreen Runtime required).
|
|
132
|
+
- **Autostart**: Uses the `HKCU\Software\Microsoft\Windows\CurrentVersion\Run` registry key.
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## 🧪 Development & Testing
|
|
137
|
+
|
|
138
|
+
We use **Vitest** for unit testing. The native layer is mocked automatically during tests.
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# Install dependencies
|
|
142
|
+
npm install
|
|
143
|
+
|
|
144
|
+
# Build native module & TypeScript
|
|
145
|
+
npm run build
|
|
146
|
+
|
|
147
|
+
# Run tests
|
|
148
|
+
npm test
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## 🐛 Troubleshooting
|
|
154
|
+
|
|
155
|
+
- **Widget background is white on Linux**: Ensure your compositor supports transparency. We use ARGB visual for the GTK window.
|
|
156
|
+
- **Keyboard input not working**: Set `interactive: true` in the options.
|
|
157
|
+
- **Widget doesn't appear after restart**: Check if the registry file `~/.config/widget-core-windows/widgets.json` exists and the autostart entry is correct.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 📝 License
|
|
162
|
+
MIT License. Copyright (c) 2026 Osman Beyhan. Contributions are welcome!
|
package/binding.gyp
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"targets": [
|
|
3
|
+
{
|
|
4
|
+
"target_name": "widget_shield_native",
|
|
5
|
+
"sources": [ "native/main.cpp" ],
|
|
6
|
+
"include_dirs": [
|
|
7
|
+
"native",
|
|
8
|
+
"<!@(node -p \"require('node-addon-api').include\")"
|
|
9
|
+
],
|
|
10
|
+
"dependencies": [
|
|
11
|
+
"<!(node -p \"require('node-addon-api').gyp\")"
|
|
12
|
+
],
|
|
13
|
+
"conditions": [
|
|
14
|
+
["OS=='mac'", {
|
|
15
|
+
"sources": [ "native/macos/WidgetManager.mm" ],
|
|
16
|
+
"link_settings": {
|
|
17
|
+
"libraries": ["-framework AppKit", "-framework WebKit"]
|
|
18
|
+
},
|
|
19
|
+
"xcode_settings": {
|
|
20
|
+
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
|
|
21
|
+
"MACOSX_DEPLOYMENT_TARGET": "10.15"
|
|
22
|
+
}
|
|
23
|
+
}],
|
|
24
|
+
["OS=='win'", {
|
|
25
|
+
"sources": [ "native/win32/WidgetManager.cpp" ],
|
|
26
|
+
"libraries": ["dwmapi.lib", "user32.lib", "ole32.lib", "oleaut32.lib"],
|
|
27
|
+
"msvs_settings": {
|
|
28
|
+
"VCCLCompilerTool": {
|
|
29
|
+
"AdditionalOptions": [ "/std:c++17" ]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}],
|
|
33
|
+
["OS=='linux'", {
|
|
34
|
+
"sources": [ "native/linux/WidgetManager.cpp" ],
|
|
35
|
+
"cflags": [ "<!@(pkg-config --cflags gtk+-3.0 webkit2gtk-4.1 gtk-layer-shell-0 2>/dev/null || pkg-config --cflags gtk+-3.0 webkit2gtk-4.0 2>/dev/null)" ],
|
|
36
|
+
"cflags_cc": [
|
|
37
|
+
"<!@(pkg-config --cflags gtk+-3.0 webkit2gtk-4.1 gtk-layer-shell-0 2>/dev/null || pkg-config --cflags gtk+-3.0 webkit2gtk-4.0 2>/dev/null)",
|
|
38
|
+
"-std=c++17"
|
|
39
|
+
],
|
|
40
|
+
"defines": [ "HAVE_GTK_LAYER_SHELL" ],
|
|
41
|
+
"link_settings": {
|
|
42
|
+
"libraries": [
|
|
43
|
+
"<!@(pkg-config --libs gtk+-3.0 webkit2gtk-4.1 gtk-layer-shell-0 2>/dev/null || pkg-config --libs gtk+-3.0 webkit2gtk-4.0 2>/dev/null)",
|
|
44
|
+
"-lX11"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}]
|
|
48
|
+
],
|
|
49
|
+
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS", "NODE_ADDON_API_CPP_EXCEPTIONS" ]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"target_name": "widget_host",
|
|
53
|
+
"type": "executable",
|
|
54
|
+
"sources": [ "native/host.cpp" ],
|
|
55
|
+
"include_dirs": [ "native" ],
|
|
56
|
+
"conditions": [
|
|
57
|
+
["OS=='win'", {
|
|
58
|
+
"sources": [ "native/win32/WidgetManager.cpp" ],
|
|
59
|
+
"libraries": ["dwmapi.lib", "user32.lib", "ole32.lib", "oleaut32.lib"],
|
|
60
|
+
"msvs_settings": {
|
|
61
|
+
"VCCLCompilerTool": {
|
|
62
|
+
"AdditionalOptions": [ "/std:c++17" ]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}]
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class AutostartManager {
|
|
2
|
+
private platform;
|
|
3
|
+
constructor();
|
|
4
|
+
private ensureDir;
|
|
5
|
+
enable(id: string, name: string, command: string): boolean;
|
|
6
|
+
disable(id: string): boolean;
|
|
7
|
+
private enableLinux;
|
|
8
|
+
private disableLinux;
|
|
9
|
+
private enableWindows;
|
|
10
|
+
private disableWindows;
|
|
11
|
+
private enableMacOS;
|
|
12
|
+
private disableMacOS;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=autostart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autostart.d.ts","sourceRoot":"","sources":["../src/autostart.ts"],"names":[],"mappings":"AAKA,qBAAa,gBAAgB;IACzB,OAAO,CAAC,QAAQ,CAAS;;IAOzB,OAAO,CAAC,SAAS;IAUV,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAe1D,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAenC,OAAO,CAAC,WAAW;IAoBnB,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,WAAW;IA2BnB,OAAO,CAAC,YAAY;CASvB"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import os from 'os';
|
|
4
|
+
import { execSync } from 'child_process';
|
|
5
|
+
export class AutostartManager {
|
|
6
|
+
platform;
|
|
7
|
+
constructor() {
|
|
8
|
+
this.platform = process.platform;
|
|
9
|
+
this.ensureDir();
|
|
10
|
+
}
|
|
11
|
+
ensureDir() {
|
|
12
|
+
if (this.platform === 'linux') {
|
|
13
|
+
const dir = path.join(os.homedir(), '.config', 'autostart');
|
|
14
|
+
if (!fs.existsSync(dir))
|
|
15
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
16
|
+
}
|
|
17
|
+
else if (this.platform === 'darwin') {
|
|
18
|
+
const dir = path.join(os.homedir(), 'Library', 'LaunchAgents');
|
|
19
|
+
if (!fs.existsSync(dir))
|
|
20
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
enable(id, name, command) {
|
|
24
|
+
try {
|
|
25
|
+
if (this.platform === 'linux') {
|
|
26
|
+
return this.enableLinux(id, name, command);
|
|
27
|
+
}
|
|
28
|
+
else if (this.platform === 'win32') {
|
|
29
|
+
return this.enableWindows(id, command);
|
|
30
|
+
}
|
|
31
|
+
else if (this.platform === 'darwin') {
|
|
32
|
+
return this.enableMacOS(id, name, command);
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
catch (e) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
disable(id) {
|
|
41
|
+
try {
|
|
42
|
+
if (this.platform === 'linux') {
|
|
43
|
+
return this.disableLinux(id);
|
|
44
|
+
}
|
|
45
|
+
else if (this.platform === 'win32') {
|
|
46
|
+
return this.disableWindows(id);
|
|
47
|
+
}
|
|
48
|
+
else if (this.platform === 'darwin') {
|
|
49
|
+
return this.disableMacOS(id);
|
|
50
|
+
}
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
catch (e) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
enableLinux(id, name, command) {
|
|
58
|
+
try {
|
|
59
|
+
const dir = path.join(os.homedir(), '.config', 'autostart');
|
|
60
|
+
const file = path.join(dir, `widget-${id}.desktop`);
|
|
61
|
+
const content = `[Desktop Entry]
|
|
62
|
+
Type=Application
|
|
63
|
+
Name=Desktop Widget - ${name}
|
|
64
|
+
Exec=${command}
|
|
65
|
+
Hidden=false
|
|
66
|
+
NoDisplay=false
|
|
67
|
+
X-GNOME-Autostart-enabled=true
|
|
68
|
+
Comment=Auto-started desktop widget
|
|
69
|
+
`;
|
|
70
|
+
fs.writeFileSync(file, content);
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
catch (e) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
disableLinux(id) {
|
|
78
|
+
try {
|
|
79
|
+
const file = path.join(os.homedir(), '.config', 'autostart', `widget-${id}.desktop`);
|
|
80
|
+
if (fs.existsSync(file))
|
|
81
|
+
fs.unlinkSync(file);
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
catch (e) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
enableWindows(id, command) {
|
|
89
|
+
// Use reg.exe to add to HKCU Run
|
|
90
|
+
try {
|
|
91
|
+
const key = `HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run`;
|
|
92
|
+
const valueName = `Widget_${id}`;
|
|
93
|
+
// Escape quotes in command if necessary
|
|
94
|
+
execSync(`reg add "${key}" /v "${valueName}" /t REG_SZ /d "${command.replace(/"/g, '\\"')}" /f`);
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
catch (e) {
|
|
98
|
+
console.error("Failed to enable Windows autostart:", e);
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
disableWindows(id) {
|
|
103
|
+
try {
|
|
104
|
+
const key = `HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run`;
|
|
105
|
+
const valueName = `Widget_${id}`;
|
|
106
|
+
execSync(`reg delete "${key}" /v "${valueName}" /f`);
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
catch (e) {
|
|
110
|
+
// Might not exist, which is fine
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
enableMacOS(id, name, command) {
|
|
115
|
+
try {
|
|
116
|
+
const dir = path.join(os.homedir(), 'Library', 'LaunchAgents');
|
|
117
|
+
const file = path.join(dir, `com.widget.${id}.plist`);
|
|
118
|
+
const content = `<?xml version="1.0" encoding="UTF-8"?>
|
|
119
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
120
|
+
<plist version="1.0">
|
|
121
|
+
<dict>
|
|
122
|
+
<key>Label</key>
|
|
123
|
+
<string>com.widget.${id}</string>
|
|
124
|
+
<key>ProgramArguments</key>
|
|
125
|
+
<array>
|
|
126
|
+
<string>sh</string>
|
|
127
|
+
<string>-c</string>
|
|
128
|
+
<string>${command}</string>
|
|
129
|
+
</array>
|
|
130
|
+
<key>RunAtLoad</key>
|
|
131
|
+
<true/>
|
|
132
|
+
</dict>
|
|
133
|
+
</plist>`;
|
|
134
|
+
fs.writeFileSync(file, content);
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
catch (e) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
disableMacOS(id) {
|
|
142
|
+
try {
|
|
143
|
+
const file = path.join(os.homedir(), 'Library', 'LaunchAgents', `com.widget.${id}.plist`);
|
|
144
|
+
if (fs.existsSync(file))
|
|
145
|
+
fs.unlinkSync(file);
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
catch (e) {
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=autostart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autostart.js","sourceRoot":"","sources":["../src/autostart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,OAAO,gBAAgB;IACjB,QAAQ,CAAS;IAEzB;QACI,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,SAAS,EAAE,CAAC;IACrB,CAAC;IAEO,SAAS;QACb,IAAI,IAAI,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;YAC5B,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;YAC5D,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;gBAAE,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACpE,CAAC;aAAM,IAAI,IAAI,CAAC,QAAQ,KAAK,QAAQ,EAAE,C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C,OAAO,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAC;YAC1F,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;gBAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YAC7C,OAAO,IAAI,CAAC;QAChB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,OAAO,KAAK,CAAC;QACjB,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autostart.test.d.ts","sourceRoot":"","sources":["../src/autostart.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|
2
|
+
import { AutostartManager } from './autostart.js';
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
import { execSync } from 'child_process';
|
|
5
|
+
vi.mock('fs');
|
|
6
|
+
vi.mock('child_process');
|
|
7
|
+
describe('AutostartManager', () => {
|
|
8
|
+
let platformSpy;
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
vi.clearAllMocks();
|
|
11
|
+
});
|
|
12
|
+
const setPlatform = (platform) => {
|
|
13
|
+
vi.stubGlobal('process', { ...process, platform });
|
|
14
|
+
};
|
|
15
|
+
it('should enable autostart on Linux', () => {
|
|
16
|
+
setPlatform('linux');
|
|
17
|
+
vi.mocked(fs.existsSync).mockReturnValue(true);
|
|
18
|
+
const manager = new AutostartManager();
|
|
19
|
+
const success = manager.enable('test-id', 'Test Widget', 'node runner.js');
|
|
20
|
+
expect(success).toBe(true);
|
|
21
|
+
expect(fs.writeFileSync).toHaveBeenCalledWith(expect.stringContaining('.config/autostart/widget-test-id.desktop'), expect.stringContaining('Exec=node runner.js'));
|
|
22
|
+
});
|
|
23
|
+
it('should enable autostart on Windows', () => {
|
|
24
|
+
setPlatform('win32');
|
|
25
|
+
const manager = new AutostartManager();
|
|
26
|
+
const success = manager.enable('test-id', 'Test Widget', 'node runner.js');
|
|
27
|
+
expect(success).toBe(true);
|
|
28
|
+
expect(execSync).toHaveBeenCalledWith(expect.stringContaining('reg add'));
|
|
29
|
+
});
|
|
30
|
+
it('should enable autostart on macOS', () => {
|
|
31
|
+
setPlatform('darwin');
|
|
32
|
+
vi.mocked(fs.existsSync).mockReturnValue(true);
|
|
33
|
+
const manager = new AutostartManager();
|
|
34
|
+
const success = manager.enable('test-id', 'Test Widget', 'node runner.js');
|
|
35
|
+
expect(success).toBe(true);
|
|
36
|
+
expect(fs.writeFileSync).toHaveBeenCalledWith(expect.stringContaining('Library/LaunchAgents/com.widget.test-id.plist'), expect.stringContaining('node runner.js'));
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=autostart.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autostart.test.js","sourceRoot":"","sources":["../src/autostart.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AAEzB,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAI,WAAgB,CAAC;IAErB,UAAU,CAAC,GAAG,EAAE;QACd,EAAE,CAAC,aAAa,EAAE,CAAC;IACrB,CAAC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAE,EAAE;QACvC,EAAE,CAAC,UAAU,CAAC,SAAS,EAAE,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC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,CAAC;QACvC,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,aAAa,EAAE,gBAAgB,CAAC,CAAC;QAE3E,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3B,MAAM,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAC3C,MAAM,CAAC,gBAAgB,CAAC,+CAA+C,CAAC,EACxE,MAAM,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAC1C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface WidgetOptions {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
opacity?: number;
|
|
7
|
+
blur?: boolean;
|
|
8
|
+
sticky?: boolean;
|
|
9
|
+
interactive?: boolean;
|
|
10
|
+
html?: string;
|
|
11
|
+
scroll?: boolean;
|
|
12
|
+
permissions?: string[];
|
|
13
|
+
detached?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class DesktopWidget {
|
|
16
|
+
private url;
|
|
17
|
+
private nativeHandle;
|
|
18
|
+
readonly id: string;
|
|
19
|
+
private static readonly BLOCKED_KEYWORDS;
|
|
20
|
+
private registry;
|
|
21
|
+
private autostart;
|
|
22
|
+
constructor(url: string | undefined, options: WidgetOptions);
|
|
23
|
+
private spawnNativeHost;
|
|
24
|
+
setOpacity(value: number): void;
|
|
25
|
+
setPosition(x: number, y: number): void;
|
|
26
|
+
setPersistent(value: boolean): void;
|
|
27
|
+
makePersistent(options: WidgetOptions): Promise<boolean>;
|
|
28
|
+
stopPersistence(): boolean;
|
|
29
|
+
activate(): boolean;
|
|
30
|
+
deactivate(): boolean;
|
|
31
|
+
static listWidgets(): import("./registry.js").RegisteredWidget[];
|
|
32
|
+
static listActiveWidgets(): import("./registry.js").RegisteredWidget[];
|
|
33
|
+
static listPassiveWidgets(): import("./registry.js").RegisteredWidget[];
|
|
34
|
+
static activateById(id: string): boolean;
|
|
35
|
+
static deactivateById(id: string): boolean;
|
|
36
|
+
static removeById(id: string): boolean;
|
|
37
|
+
static stopAll(): boolean;
|
|
38
|
+
static killAllProcesses(): boolean;
|
|
39
|
+
private static killProcess;
|
|
40
|
+
launchStandalone(): boolean;
|
|
41
|
+
private validateURL;
|
|
42
|
+
private applySecurityShield;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA0BA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,aAAa;IAQtB,OAAO,CAAC,GAAG;IAPb,OAAO,CAAC,YAAY,CAAM;IAC1B,SAAgB,EAAE,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAuD;IAC/F,OAAO,CAAC,QAAQ,CAAwB;IACxC,OAAO,CAAC,SAAS,CAA0B;gBAGjC,GAAG,EAAE,MAAM,YAAK,EACxB,OAAO,EAAE,aAAa;IAsBxB,OAAO,CAAC,eAAe;IAkChB,UAAU,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