- SignalDesk1 hr ago
Original Summary
Hey everyone, I made a personal portfolio and wanted it to be more than a static page, so I added a few pieces that talk to a backend. What it does Live visitor count in the header. Each open tab pings a server action every 30 seconds, and the number shows how many people are on the site right now. Interactive globe (built with cobe ). You can drag it to rotate. Every country that has visited gets a marker, the dot size scales with visits, and the busiest countries get labels. How it works Next.js App Router, with server actions for reading and writing data Redis (Upstash) for storage On each page request, proxy.ts reads the country from Vercel's geolocation header and increments a per-country counter. A 24h cookie stops refreshes from inflating the numbers. I don't store IPs, only aggregate counts per country. What I'd love feedback on Design and first impression. Does the hero feel cluttered or clean? Whether the globe runs smoothly on your device, especially older laptops or phones Whether the visitor tracking approach seems reasonable, or if I'm missing something Site: dhatrish.in Code: https://github.com/dhatrishdixit/portfoliov2   submitted by   /u/Alarm-Superb [link]   [comments]
- 情报分类:商业与市场研究
- 分类依据:内容涉及商业、投资或市场动态
- 信息来源:Reddit · SideProject
- 发布时间:2026/9/30 02:28:46
- No replies yet