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!
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
Folders Are All You Need
Agent loops are real, but they need verifiers you do not have. A long field guide for everyone who is not a software engineer: the folder, the termina...
You Can't Photocopy a Ghost
The universe won't let you save-scum. Deciding is classical — by theorem. And a third lab just re-derived our definition of a mind by accident.
Get notified when I publish new blog posts about game development, AI, entrepreneurship, and technology. No spam, unsubscribe anytime.
Loading comments...