DEV Community

Ecaterina Sevciuc
Ecaterina Sevciuc

Posted on

Error Logger & Viewer — tiny SPA for tracking JS errors

TL;DR: Tiny SPA to capture and group browser JS errors — filters, charts, demo and server modes. Try the "Create test error" button on the demo: https://kate8382.github.io/error-logger-viewer/

Why I built it

What happens when a small idea turns into a few months of late‑night debugging? I wanted a lightweight tool that helps developers see runtime problems quickly, group similar errors, and track fix progress. The app runs in two modes: demo (localStorage) for quick tests and server (Node.js + Express + LowDB) for persistent storage.

What it does

  • Captures global JS errors (window.onerror, onunhandledrejection), resource load errors, and fetch failures.
  • Groups and deduplicates errors by message/stack to reduce noise.
  • Searchable, sortable error table with status tracking (new / in progress / fixed / ignored) and comments.
  • Charts for error dynamics (day/week/month), visual filters and quick actions.
  • Supports light/dark themes and i18n (EN/RU).
  • Accessibility features: ARIA labels and keyboard navigation.
  • Tests: Jest (unit) and Cypress (E2E). CI via GitHub Actions.

Quick architecture

Frontend: vanilla ES6 + Webpack, modular components for table, charts and modals.
Backend (optional): Node/Express + LowDB for a simple REST API. Client switches between demo (localStorage) and server modes via a small adapter.

Demo & source

Screenshots
Dashboard — overview, quick stats and theme example.
Dashboard view

Error table — search, sorting, status and actions.
Table and filters

Charts — error dynamics by period (week/month/year).
Error charts

Lessons learned

  • Grouping errors across browsers and minified stacks is tricky — tests and careful matching rules help a lot.
  • Small UX details (filters, inline status change) make the tool useful for teams.
  • Next steps: add a project registration flow (projectKey + drop‑in client snippet) and a lightweight admin to manage multiple projects.

Feedback welcome — what metrics would you add to a simple error dashboard?

Top comments (1)

Collapse
 
kate8382 profile image
Ecaterina Sevciuc

Thanks for checking this out! If you try the demo, please share one small thing you’d change — your feedback will help shape the next improvements. ❤️