This project was built as part of the Devfolio Fullstack Tryouts. The task was to develop a fullstack Error Reporting Tool that collects, stores, and visualizes application errors through an SDK and an admin dashboard.


🔗 Links


🔐 Dashboard Credentials


🧩 Project Overview

The project consists of three main components:

  1. SDK (error-tracker-sdk-devfolio) – A lightweight logging package that can be imported into any Node.js or frontend project to send error data to the backend API.
  2. Backend (Express + MongoDB) – Receives and stores error logs, exposes API endpoints for fetching, filtering, and aggregating errors.
  3. Dashboard (Next.js + Tailwind + Chart.js) – Displays aggregated error data in a clean, visual format with filters and search.

⚙️ How It Works

  1. Developers install the SDK and initialize it in their app:

    import { initErrorTracker, captureError } from "error-tracker-sdk-devfolio";
    
    initErrorTracker({
      apiKey: "devfolio-demo",
      endpoint: "https://error-tracker-api.onrender.com/logs",
    });
    
    try {
      throw new Error("Demo error");
    } catch (e) {
      captureError(e);
    }