
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
electron-app-universal-protocol-client
Advanced tools
Unified cross-platform protocol handler for Electron apps, supporting development environments.
Unified and simplified API for Electron application's protocol handlers ("deep links").
Features:
This package is based on electron-deeplink.
Differences:
yarn
prebuildify
and GitHub Actions)on('request')
Further changes are listed in CHANGELOG.md.
Huge thanks for @glawson for creating electron-deeplink
and allowing me to continue his work as recommended fork.
# If you use npm:
npm install electron-app-universal-protocol-client
# If you use yarn:
$ yarn add electron-app-universal-protocol-client
electronAppUniversalProtocolClient.on('request', requestHandler)
Register handler for protocol requests in your application.
electronAppUniversalProtocolClient.on(
'request',
async (requestUrl) => {
// Handle the request
},
);
electronAppUniversalProtocolClient.initialize({ protocol: string; mode?: 'development' | 'production' })
Initialize the client.
mode
is 'production'
by default.
Remember to register protocol handlers before calling initialize
, otherwise you might lose some requests.
await electronAppUniversalProtocolClient.initialize({
protocol: 'your-app-id',
mode: 'development', // Make sure to use 'production' when script is executed in bundled app
});
Please note that example directory contains fake node_modules
that allows the example to be started within this repository.
Make sure you're launching Electron with your main script path as first argument. Development mode is implemented upon this assumption.
Due to macOS permissions system, you could experience following errors after starting your Electron app in development mode:
[42590:1203/200159.650790:ERROR:mach_port_rendezvous.cc(310)] bootstrap_look_up com.github.my-app-id.MachPortRendezvousServer.42588: Permission denied (1100)
[42590:1203/200159.651421:ERROR:child_thread_impl.cc(228)] Mach rendezvous failed, terminating process (parent died?)
To fix them, run this command in project's root directory:
sudo xattr -r -d com.apple.quarantine ./
[2.1.1]
FAQs
Unified cross-platform protocol handler for Electron apps, supporting development environments.
The npm package electron-app-universal-protocol-client receives a total of 3,888 weekly downloads. As such, electron-app-universal-protocol-client popularity was classified as popular.
We found that electron-app-universal-protocol-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.