> Site index for LLMs: https://www.nandan.fyi/llms.txt

# nandan.fyi

> The website you're looking at - built with Astro, projects authored in MDX, with analytics and session recording to understand how it's actually used.

- Published: 2023-03-28
- Source: https://github.com/nandan-varma/portfolio
- Live: https://www.nandan.fyi
- Canonical: https://www.nandan.fyi/projects/portfolio

A portfolio that's just a collection of links isn't useful to anyone. I wanted one where each project has its own page with context - why I built it, what decisions I made, what I'd do differently. So I built this site from scratch and write the project pages in MDX.

![nandan.fyi](https://raw.githubusercontent.com/nandan-varma/portfolio/main/public/og.png)

## Features

- Projects and blog posts authored in MDX, rendered at build time
- Dynamically generated OG images for each project
- SEO-optimised with proper metadata
- Dark mode
- [PostHog](https://posthog.com) analytics to see which projects people actually read
- [RRWeb](https://github.com/rrweb-io/rrweb) session recording to understand how people navigate

## Key decisions

- **Astro over Next.js for a content site** — Astro ships zero JavaScript by default; a portfolio with MDX content doesn't need client-side hydration and shouldn't pay the bundle cost for it
- **PostHog and RRWeb together** — analytics shows which projects get read; session recording shows where people drop off and why; the combination makes changes testable rather than speculative
- **Dynamic OG images at build time** — each project page gets a unique social image without manual work when content is added or updated

## Built with

- [Astro](https://astro.build)
- [tailwindcss](https://tailwindcss.com)
- [PostHog](https://posthog.com) - analytics
- Deployed on [Vercel](https://vercel.com)
