Back to catalogue
Project
Portfolio CMS
I built a Next.js portfolio with server-rendered case-study routes and an embedded Sanity Studio. Tagged revalidation refreshes published changes, and the public routes use bundled content when Sanity is unavailable.
How it’s builtHow it’s built
Portfolio CMS · Next.js 16 portfolio with embedded Sanity Studio and an AI portfolio assistant
I built this portfolio as a Next.js 16 app with an embedded Sanity Studio at /cms, 7 content schemas, tag-based revalidation from a signed Sanity webhook, and a portfolio assistant that calls an NVIDIA-hosted model with 3 retrieval tools over my project records. It also syncs Kaggle notebooks into Sanity. All 74 commits are mine.
- commits, all mine
- 74
- API route handlers in 9 route files
- 13
- Sanity schema types
- 7
- catalogued projects, 11 long-form case studies
- 49
- lines of TS/TSX/JS/CSS
- ~17,100
Technology and what it does here
- Next.js 16 (App Router)
- Server-rendered home, project, research, catalogue and resume routes plus API routes
- Sanity v5 + next-sanity
- Embedded Studio at app/cms, GROQ fetches tagged for cache revalidation
- next-sanity/webhook
- ParseBody verifies webhook signature before revalidateTag in app/api/revalidate
- NVIDIA chat completions API
- Portfolio assistant with search_projects, read_project, read_portfolio tools
- MongoDB / Mongoose
- Testimonial model and admin testimonial routes
- Nodemailer
- Contact form delivery
- Kaggle API
- Admin sync-kaggle route pulls datasets and notebooks into Sanity project documents
- Tailwind CSS + Framer Motion
- Styling and page and section animations
- TypeScript
- Typed catalogue, case-study and architecture content modules
Implementation details
- sanityFetch disables time-based revalidation when tags are present so content refreshes only on webhook-triggered revalidateTag.
- The home page catches Sanity fetch failures and returns null so bundled content renders instead.
- The assistant's system prompt treats visitor text and tool output as data, not instructions.
Technologies
- Next.js
- Sanity
- TypeScript
