12/3/2024
Share this post:
Export:

🎉 Exciting update! Comments are now live on this blog using Giscus - powered by GitHub Discussions!

All-in-all, it took under 60 minutes ⏱️ to code, tweak, clean lint errors, and deploy 🚀 Including the time it took to write this blog post. That's the power of modern tooling ✨
After 42 years of coding, I'm still amazed by how modern tools and AI can make development such a joyful experience. Today, I'm thrilled to share how I added comments to my blog using Giscus, with some help from Cursor.AI!
Giscus is a comments system powered by GitHub Discussions. It's:
The implementation was surprisingly straightforward:
npm install @giscus/react
import { Box } from '@mui/joy';
import { Giscus } from '@giscus/react';
export function Comments() {
return (
<Box sx={{ mt: 4 }}>
<Giscus
repo="yourusername/repo"
repoId="your-repo-id"
category="Announcements"
categoryId="your-category-id"
mapping="pathname"
reactionsEnabled="1"
emitMetadata="0"
inputPosition="top"
theme="preferred_color_scheme"
lang="en"
/>
</Box>
);
}
Pro Tip: Giscus automatically handles dark/light mode switching when you set theme to "preferred_color_scheme"!
What amazes me most is how seamlessly everything came together:
And the best part? You can see it in action right below this post! Feel free to leave a comment and join the discussion.
Special thanks to the Cursor.AI team for making development such a delightful experience. The future of coding is here, and it's more exciting than ever!
Zero to Hero: Building with Claude Code
A complete beginner's guide to setting up your development environment and building your first project with Claude Code. Covers Mac and Windows, ...
Claude Code as My GitHub Project Manager: 35 Issues Triaged in Minutes
How Claude Code helped me triage 35 GitHub issues, close 9 completed features, create app labels, and build a ghetto newsletter system - all while shi...
Building an AI Survey with SST v3, Next.js, and Claude
From concept to production in 37 minutes: Building a full-stack survey application with SST v3, Next.js, and AI pair programming
Get notified when I publish new blog posts about game development, AI, entrepreneurship, and technology. No spam, unsubscribe anytime.