🚀 GitHub API + Next.js: Live Project Data on Your Portfolio
When we started building our team portfolio, we didn't just want a beautiful website—we wanted something that lives. That's when we decided to connect it directly to our GitHub profiles. By using the GitHub API and Next.js API routes, we built a dynamic section that fetches and displays our latest public repositories, stars, forks, and descriptions in real time.
We wrote a custom API route in /pages/api/ that securely handles our GitHub access token and fetches repo data. On the frontend, we used useEffect and fetch (or SWR for better caching) to display that data. This integration ensures our site always reflects our latest work, whether it's a personal side project or a team collaboration. It's a real-time resume that updates itself—and we think that's pretty cool.