Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Electron
  3. electron-unhandled

electron-unhandled

MITJavaScriptv5.0.0

Catch unhandled errors and promise rejections in Electron apps with customizable logging and error dialogs.

GitHubGitHub
465 stars27 forks0 contributors

What is electron-unhandled?

electron-unhandled is a lightweight Node.js module designed specifically for Electron applications. It catches unhandled errors and promise rejections that would otherwise cause silent crashes or unexpected behavior. The module provides configurable error logging and can display user-friendly error dialogs in production environments.

Target Audience

Electron developers building desktop applications who need reliable error handling across both main and renderer processes. It's particularly useful for teams wanting to improve application stability and user experience.

Value Proposition

Developers choose electron-unhandled because it's specifically designed for Electron's multi-process architecture, requires minimal configuration, and provides production-ready error dialogs with optional GitHub issue reporting integration.

Overview

Catch unhandled errors and promise rejections in your Electron app

Use Cases

Best For

  • Adding basic error handling to new Electron applications
  • Preventing silent crashes in production Electron apps
  • Integrating error reporting with services like Sentry
  • Creating user-friendly error dialogs with reporting capabilities
  • Handling promise rejections across Electron processes
  • Standardizing error logging in multi-window Electron apps

Not Ideal For

  • Projects using Electron versions below 30
  • Applications with existing, comprehensive error monitoring systems like Sentry fully configured
  • Developers who require highly customized error UI or handling logic beyond basic dialogs and logging

Pros & Cons

Pros

Cross-Process Error Handling

Catches unhandled errors and promise rejections in both main and renderer processes, as emphasized in the usage notes, ensuring no error slips through the cracks in Electron's multi-process architecture.

Production-Ready Dialogs

Automatically presents user-friendly error dialogs in production environments, with an optional report button for GitHub issue creation, as shown in the screenshot and example code, improving UX without extra work.

Extensible Logging

Allows integration with external services like Sentry through a customizable logger function in the options, making it easy to add advanced error tracking with minimal configuration.

Manual Error Logging

Provides a logError function for manually logging caught errors with consistent formatting, ensuring uniformity in error reporting across the application, as detailed in the API section.

Cons

Electron Version Requirement

Requires Electron 30 or later, as stated in the README, which can exclude legacy projects or teams slow to upgrade, limiting adoption in older codebases.

Main Process Configuration Limitation

All options must be specified in the main process only, as noted in the API documentation, reducing flexibility for renderer-specific error handling setups and potentially complicating multi-window apps.

Basic Functionality

While effective for core error catching, it lacks advanced features such as error analytics, custom UI themes, or detailed error grouping, which might be needed for complex monitoring scenarios.

Frequently Asked Questions

Quick Stats

Stars465
Forks27
Contributors0
Open Issues9
Last commit2 years ago
CreatedSince 2017

Tags

#electron-module#developer-tools#desktop-apps#error-handling#javascript#node-js#crash-reporting#electron

Built With

J
JavaScript
N
Node.js

Included in

Electron27.1k
Auto-fetched 19 hours ago

Related Projects

rxdbrxdb

The local-first database that runs on every JS runtime and replicates with your existing backend - no vendor, no lock-in - https://rxdb.info/

Stars23,289
Forks1,169
Last commit22 hours ago
gotgot

🌐 Human-friendly and powerful HTTP request library for Node.js

Stars14,927
Forks992
Last commit7 days ago
electron-builderelectron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box

Stars14,628
Forks1,861
Last commit1 day ago
NeDBNeDB

The JavaScript Database, for Node.js, nw.js, electron and the browser

Stars13,541
Forks1,011
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub