A minimalist office space with a computer

About InsightWatch

Privacy-First Analytics

This project, InsightWatch, was created to fulfill a specific user request: a page view counter that is fast, unobtrusive, and respects user privacy.

Here are the core principles and features implemented:

  • Anonymous Tracking: No cookies, IP addresses, or personal data are stored. Each view is just a number.
  • Real-time Feel: While not using websockets, the counter fetches and updates on page load, with a gentle animation to make it feel dynamic.
  • Performance First: A 5-second debounce mechanism using `localStorage` prevents a single user from spamming reloads and affecting the count or server performance.
  • Modern Tech Stack: Built with Next.js App Router, Server Actions, and Tailwind CSS for a highly performant and maintainable application.

The view counter in the footer is unique to this page. You can see it has a different count than the home page, demonstrating the path-specific nature of the tracking. This showcases a practical application of modern web development techniques to solve a common need in a responsible way.