HarshPatel
Navigation
Projects
My work & builds
Blog
Thoughts & tutorials
Services
What I offer
Contact
Let's work together
// Writing
Thoughts on web development, tutorials, and the occasional deep-dive into tech topics.
After building 10+ projects in 2026, I keep coming back to the same stack: Next.js App Router, Drizzle ORM, Neon Postgres, and Clerk Auth. Here's why, and how to set it up from scratch.
The Vercel AI SDK makes building streaming AI chat UIs surprisingly simple. In this tutorial you'll go from zero to a working chatbot with message history, streamed responses, and a clean UI.
Next.js middleware runs before every request at the edge. In this post, I show three real use cases — auth guards, A/B test routing, and country-based redirects — all in a single middleware.ts file.
Most Express tutorials stop at "Hello World". This one goes further — JWT auth, Zod validation, centralized error handling, and rate limiting so your API is actually ready for production.
React 19's useOptimistic hook lets you update the UI instantly while your async action runs in the background. Here's how to use it to build a like button, comment system, and todo list.
Both MySQL and PostgreSQL are battle-tested, but they're not interchangeable. I break down performance, JSON support, full-text search, and ecosystem to help you make the right call.
Slow Postgres queries are almost always an indexing problem. This guide covers B-Tree, GIN, partial, and composite indexes — with EXPLAIN ANALYZE breakdowns so you know exactly what to add.
Most Node.js developers load entire files into memory and wonder why their server crashes. Streams solve this. Here's how readable, writable, and transform streams actually work — with real examples.
Next.js 15 Server Actions let you handle form submissions directly in server components. This guide walks you through building a contact form that saves to a database — zero API routes needed.
I tested Claude 3.5, GPT-4o, and Gemini 1.5 Pro on real dev tasks — coding, debugging, and docs. Here's what actually surprised me, and which one I'm using daily.
A step-by-step walkthrough for pushing your Next.js project to GitHub and deploying it on Vercel with a custom subdomain — including environment variables, preview deployments, and production tips.
TypeScript is no longer optional in serious JavaScript projects. This post covers generics, utility types, discriminated unions, and the patterns I use daily as a full-stack developer.
A deep-dive into architecting my own developer portfolio — covering image hosting with Cloudinary, contact emails with Nodemailer, admin CRUD, and deploying everything on Vercel.
Learn how to combine Supabase (managed PostgreSQL) with Prisma ORM to build type-safe, scalable backends inside a Next.js 14 project — with zero DevOps headaches.
Next.js 14 introduces the stable App Router with Server Components, streaming, and nested layouts. In this guide I walk you through everything from project setup to deploying on Vercel.