Blog
Latest Writing
Short notes, deep dives, and practical guides I'm publishing as I build and ship.

How to Stay Safe from Recent npm Package Attacks in 2026
Learn practical steps to protect your projects from recent npm supply chain attacks including chalk, axios, tanstack and Shai-Hulud. Master npm security best practices, lockfiles, ignore-scripts, and tools to keep your dependencies safe in 2026.
Read post
From Monolith to Modular: How to Refactor a MERN App Without Breaking Production
Refactor your MERN monolith safely with a strangler approach. Learn how to modularize by business capability, stabilize production, and protect revenue-critical flows.
Read post
The Complete Guide to Checkout Optimization (Technical Edition): Speed, UX, and Trust Signals
If you’ve ever seen a customer charged twice, two orders created for one checkout, or the same webhook processed multiple times, your system isn’t “buggy”, it’s missing **idempotency and a reliable event pipeline**. In this post I’ll show how I design order flows in MERN/Next.js
Read post
Webhooks Done Right: The Production-Safe Playbook (Queues, Retries, Signatures, Idempotency)
Make webhook ingestion safe and predictable. Learn how to verify signatures, use queues, enforce idempotency, and build replay tools for ecommerce and fintech apps.
Read post
Payment Failures Are a Hidden Conversion Killer: How to Debug Gateway Declines (Without Guesswork)
If your store has decent traffic but conversions feel “stuck,” there’s a good chance the issue isn’t your product or ads, it’s payments. I’ve seen stores lose 5–20% of paid checkout attempts due to avoidable payment failures: gateway timeouts, soft declines, 3DS friction, misconfigured currency, webhook gaps, or checkout scripts that break only on certain devices. This post is a practical, developer-first guide to finding the real reason payments fail, and fixing it with measurable impact.
Read post
Shopify vs Headless (Next.js) in 2026: Which Architecture Wins for Growth—and Why
Shopify or headless commerce? Learn how to choose between Shopify themes, headless-lite with Next.js, or full headless stacks—balancing growth, complexity, and checkout reliability.
Read post