AndrewUsher / AndrewUsher/andrewusher.dev
Add reactions and live presence on blog posts
- 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á.