ErrorMail
DocsPricing

Introduction

ErrorMail is an automatic error reporting service for React applications. Wrap your components and functions, and get instant email notifications when errors occur.

Features

  • React Error Boundaries - Catch component errors automatically
  • Function Wrappers - Wrap async and sync functions
  • Email Reports - Get detailed error reports in your inbox
  • Breadcrumbs - Track user actions leading up to errors
  • Severity Levels - Categorize errors as debug, info, warning, error, or fatal
  • Environment Info - Automatic browser, device, and runtime capture
  • Rate Limiting - Prevent duplicate error flooding
  • Simple API - One line of code to get started

Quick Start

import { configureErrorReporting, ErrorBoundary, errormail } from 'errormail';

// Configure once
configureErrorReporting({
  apiKey: 'your-api-key',
  emailTo: 'admin@example.com'
});

// Wrap components
<ErrorBoundary>
  <MyComponent />
</ErrorBoundary>

// Wrap functions
const safeFn = errormail('admin@example.com')(myFunction);