How I built my portfolio
December 2, 2026
shivamtaneja.com is my portfolio. I'm a full stack developer in Bangalore, working as an Associate Consultant at KPMG. The site holds my experience, side projects, writing, and a chat that answers from the pages themselves. If you searched for Shivam Taneja full stack developer and landed here, this is how I built it.
Why I built this site
A bio copied into several places goes stale. This Next.js app is the source. Home covers about, experience, side projects, writing, mentorship, certificates, and open source. Separate pages cover projects, contact, socials, and stats. Project write-ups and these posts are MDX routes in the app.
The public URL list is one function, getAllSitePages(). The sitemap and llms.txt both read it. This post is in the blog list that function uses, so both files include the new URL.
What you can do
- Read the home page, then open a project write-up
- Read these build notes from the writing page
- Ask the on-site chat about the work
- Send a message from the contact page
- Switch between light, dark, and system theme
- Jump between pages with the command palette
How the portfolio is built
The front end is Next.js 15 and React 19, written in TypeScript. Styling is Tailwind CSS, with shadcn/ui for shared components. The typeface is Space Grotesk. next-themes sets light, dark, or system. GSAP fades each page in.
The chat is a route handler. Groq writes the reply with the openai/gpt-oss-20b model and streams it back. Mem0 supplies context taken from the site. MongoDB stores each conversation. In development, an ingest route reads the sitemap, hashes the text of each page, and refreshes Mem0 when that hash changes. Crawl metadata stays in MongoDB.
The contact form is a server action. Zod checks the fields, reCAPTCHA is verified, and Resend sends two React Email messages: a confirmation to the visitor and a note to me.
Open Graph images are generated for the home page, section pages, projects, and each blog post. PostHog records events after cookie consent. The stats page shows aggregate visits, project activity, and traffic sources from PostHog. Vercel Analytics is on the root layout. robots.txt allows the public site and disallows /api/.
Stack:
- Next.js 15
- React 19
- TypeScript
- Tailwind CSS
- MDX
- Groq
- Mem0
- MongoDB
- Resend
What I learned
One page list is easier to keep true. Blog posts and project pages feed it. The sitemap and llms.txt read that same list, so a new post does not need a second URL file.
The chat is only as fresh as the last ingest. A changed page gets a new content hash, the old memories for that URL are removed, and the new text is added.
Visit the site
The live site is at shivamtaneja.com. Project pages are listed under projects. The other build notes are on writing.
Built by Shivam Taneja.