Installs uiohook-napi for OS-level non-consuming input hooks, creates KeybindManager class that receives keybind configs from the renderer, matches the OS-wide key/mouse event stream, and sends matched actions back via IPC. Exposes syncKeybinds, onKeybindAction, onAccessibilityStatus, onKeybindHookError, and checkAccessibility APIs through the preload bridge.
31 lines
1.0 KiB
JSON
31 lines
1.0 KiB
JSON
{
|
|
"name": "@backspace/desktop",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "Backspace — a self-hosted, open-source chat platform",
|
|
"author": {
|
|
"name": "youruser",
|
|
"email": "backspace@backspace.chat"
|
|
},
|
|
"homepage": "https://github.com/TheZwiss/backspace",
|
|
"main": "dist/main.js",
|
|
"scripts": {
|
|
"build:ts": "tsc",
|
|
"dev": "mkdir -p build && cp ../../icon.png build/icon.png && bash scripts/gen-icns.sh && cp build/icon.icns $(find ../../node_modules -path '*/electron/dist/Electron.app/Contents/Resources/electron.icns' 2>/dev/null | head -1) 2>/dev/null; tsc && electron .",
|
|
"prebuild": "mkdir -p build && cp ../../icon.png build/icon.png",
|
|
"build": "tsc && electron-builder",
|
|
"clean": "rm -rf dist dist-electron",
|
|
"postinstall": "electron-rebuild -f -w uiohook-napi"
|
|
},
|
|
"dependencies": {
|
|
"electron-updater": "^6.3.0",
|
|
"uiohook-napi": "^1.5.5"
|
|
},
|
|
"devDependencies": {
|
|
"@electron/rebuild": "^3.7.1",
|
|
"electron": "^40.0.0",
|
|
"electron-builder": "^25.1.8",
|
|
"typescript": "^5.7.2"
|
|
}
|
|
}
|