Shubhra Developer (@shubhra_dev) header
Shubhra Developer (@shubhra_dev) profile picture

Full-stack dev | Next.js, React, Tailwind, Node.js Crafting clean, simple & user-friendly digital products.

Joined June 2022
Photo by Shubhra Developer (@shubhra_dev)Photo by Shubhra Developer (@shubhra_dev)Photo by Shubhra Developer (@shubhra_dev)Photo by Shubhra Developer (@shubhra_dev)Photo by Shubhra Developer (@shubhra_dev)Photo by Shubhra Developer (@shubhra_dev)Photo by Shubhra Developer (@shubhra_dev)Photo by Shubhra Developer (@shubhra_dev)Photo by Shubhra Developer (@shubhra_dev)Photo by Shubhra Developer (@shubhra_dev)
Most coding tutorials stop at "Hello World." Real projects don't. That's why I built shubhra.dev—a place for developers who want to build production-ready React & Next.js applications. Here's what you'll find 👇
1
2
129
Same Node.js graceful shutdown code. On Node 22, 7 requests failed with a pooled client, about 200 with a fresh connection per request. Tested on 4 servers at 200 req/s. server.close() alone wasn't enough. shubhra.dev/blog/nodejs-grac…
2
On Next.js 16.4.4, use cache returned alice.pdf's cached result for bob.pdf. Same bytes, different names. I ran 54 input pairs on 16.4.4, 16.4.5 and 16.4.6. The fix landed in 16.4.5. Write-up and repo here. shubhra.dev/tutorials/nextjs…
1
1
1
22
12 abandoned queries waiting on a row lock kept a 4-connection pool busy. The first healthy query waited ~5.7 s. In Node.js, pg, mysql2 and mariadb ignored AbortSignal. postgres.js 4.0.0 reads it, with a limitation. Tests and code dev.to/shubhradev/does-abort…
1
1
30
I took a Hono scaffold to a live API on Prisma Compute in three commands, with its own database. One real bug, DRIVER.ALREADY_CONNECTED, traced and fixed. Commissioned by Prisma, opinions mine. dev.to/shubhradev/hono-on-pr…
1
1
31
I fired 20 requests at a Node.js handler. Every client left after 100 ms, but the server still ran all 100 steps. With a disconnect check: 0 of 100. pg 8.23.1 accepts { signal } but ignores it. dev.to/shubhradev/aborting-a…
1
1
29
My article on Node.js request cancellation has been featured in @ThePracticalDev's Top 7 Featured Posts of the Week. Thank you to the DEV team and everyone who read and joined the discussion. I really appreciate it. 🩷 dev.to/devteam/top-7-feature…
1
28
What happens when an AI agent reads a document and decides to take action? 👀 I built a small Next.js agent to find out. Here’s what I learned about securing its actions 👇 dev.to/shubhradev/your-auth-…
1
2
74
I built Garden Trials, a local AI gardening app that asks me to put the laptop down and observe my plants. 🌱 The AI can suggest what to look at. The garden gives the answer. dev.to/shubhradev/i-built-an…
1
1
1
52
7 React 19 Suspense production mistakes: • Expecting it to fetch • useEffect suspension • Recreating Promises on render • 1 global boundary • Too many tiny boundaries • Misunderstanding Transitions • Using it for error handling Read Deep Dive 👇 shubhra.dev/tutorials/react-…
2
28
20 clients left after 100 ms. My Node server still finished 100 of 100 steps for them. pg 8.23.1 accepts { signal } but doesn't cancel it Node 22.22.2 has no req.signal, Node 24.21.0 does A cancel through the same pool can hang dev.to/shubhradev/aborting-a… #NodeJS #PostgreSQL
1
3
47
1/3 You don't always need a 20-minute tutorial. Sometimes you just need the rule you're trying to remember right now. So I compressed everything about React 19 Suspense into a quick-reference cheatsheet. 🧵👇 shubhra.dev/resources/react-…
1
2
33
2/3 It covers: ⚡ What activates (and DOES NOT activate) a boundary ⚡ Reading Promises with use() ⚡ Boundary ownership & 300ms reveal rule ⚡ Suspense + Transitions & View Transitions ⚡ Error Boundaries, Streaming SSR & Accessibility ⚡ TypeScript types & common mistakes
1
2
21
Suspense doesn't fetch your data It doesn't know what network request is It watches for suspension during render and decides what user sees while that work isn't ready That distinction explains a lot of confusing Suspense behavior Read the deep dive shubhra.dev/tutorials/react-…
2
18
Building auth in Next.js 16 without third-party vendor lock-in? Here’s a clean visual blueprint for a minimal, production-ready foundation using standard JWTs, httpOnly cookies, proxy middleware, and PostgreSQL. Free & MIT Licensed 👇 shubhra.dev/products/nextjs-…
2
27
What if your Next.js cache tags were type-safe? Instead of scattering string literals everywhere: "posts" "users" "dashboard" You can work with a central tag registry. That's one of the ideas behind Cache Pro Kit. Check it out at 👇 shubhra.dev/snippets/nextjs-…
1
17
Stop making users wait for server roundtrips ⏳ Optimistic UI updates instantly: 1️⃣ User clicks 2️⃣ UI updates immediately 3️⃣ Server processes 4️⃣ Confirmed (✓) or rolled back (↩) Here's Next.js useOptimistic full implementation guide: shubhra.dev/tutorials/nextjs…
1
20
What happens when generateStaticParams() meets uncached data in Next.js 16? With Cache Components enabled, it fails the build. Knowing route params doesn't mean Next.js can prerender data. The fix depends on whether data is cached or dynamic: shubhra.dev/tutorials/nextjs…
1
11
Cache invalidation gets messy fast. When cache tags are scattered across your Next.js app, it becomes easy to mistype one or forget which tag belongs where. I built a small toolkit to make this easier. shubhra.dev/snippets/nextjs-…
1
1
1
44
@WebDevHyper Thank you for your repost!😄
1
1
20
One easy mistake with Next.js 16 Assuming generateStaticParams() makes a route static It doesn't It tells Next.js which dynamic routes are known at build time What happens to data inside those routes is separate question I tested with Cache Components shubhra.dev/tutorials/nextjs…
3
1
3
46