AndrewUsher / AndrewUsher/andrewusher.dev

Add reactions and live presence on blog posts

Đang mở
#333 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
1
Fork
0
Merge trung bình
2 ngày 5 giờ
Pull request đã merge (30 ngày)
59

Mô tả

ViewCounter works but it only counts. Would be nice to see if anyone else is actually reading right now.

Extend src/pages/api/views/[slug].ts (currently Redis) to also handle reactions:
- four reactions max: fire, lightbulb, heart, hands-clap — keep it simple, no custom emoji picker
- one reaction per person per post (store a flag in localStorage, check server side too)
- show totals under the post, next to GiscusWrapper
- add "2 people reading now" using a short TTL key in Redis, increment on page view, expire after 2 minutes

Don't build a full comment-like system. Just counts. Rate limit the endpoint so someone can't spam it.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.