🔍 What is this?
This is a live, transparency-focused analytics dashboard for samnet.dev. It reveals
real-time visitor patterns and system performance without compromising user privacy.
⚙️ How it works
- 🐍 Log Collector: A Python script scans Nginx logs
every 60 seconds (with 10s updates), filtering out >99.8% of traffic (bots, scanners, attacks)
to capture only genuine human interactions.
- 🗄️ SQLite Analytics: Data is aggregated into
privacy-safe buckets (counts per day/hour) with no IP storage.
- 🚀 FastAPI Backend: Serves high-performance JSON
endpoints, utilizing smart caching for low-latency updates.
🛡️ Privacy First
This system is built to prove you can have analytics without surveillance:
- No Cookies / No Trackers
- No Persistent IP Storage
- Zero Third-Party Scripts
📊 Tech Stack
Built completely from scratch using:
- Backend: Python, FastAPI, SQLite WAL
- Frontend: Vanilla JS, Chart.js, Glassmorphism CSS
- Infrastructure: Raspberry Pi, Nginx, Systemd