PingBack is a decoupled Single-Page Application (SPA) that serves as the presentation layer for a server-side email tracking service. It manages the client-side authentication lifecycle by orchestrating the Google OAuth 2.0 authorization code flow, securely persisting JSON Web Tokens (JWTs) in client storage to authorize subsequent API requests. The application implements a declarative route protection strategy using React Router, ensuring that state-dependent dashboard views are accessible only to authenticated principals. Its primary interface facilitates the composition and dispatch of emails via authenticated requests to the backend API, which is responsible for injecting the 1x1 tracking pixel. The dashboard then provides a dynamic view of analytics by asynchronously fetching and rendering email open-count data. Built with React and TypeScript, the application is architected as a modular, component-based system that leverages custom hooks for state management and side-effect isolation.
GitHub repositories:

<img> tag into the email's HTML. The src of this image points to a unique endpoint on the server (e.g., https://api.pingback.com/track/email123).GET request to the tracking URL.GET request. It logs the event, including the timestamp and the specific email ID, and updates the corresponding record in PostgreSQL database.