Blog
Software engineering and system architecture notes, from production experience.

Supabase RLS Policies: A Practical Guide to Secure User Data
Learn Supabase Row Level Security with a complete private-notes example, CRUD policies, USING vs WITH CHECK, and a two-user test plan.

How I Architect Production-Ready SaaS Apps with Next.js, Supabase & Stripe
A practical look at how I structure production-ready SaaS applications with Next.js, Supabase, and Stripe—from authentication and database security to subscriptions, APIs, and scalable architecture.

Building Production AI Features in Next.js: Streaming, RAG, Tool Calling & More
Adding AI to an application is more than connecting an API to a prompt. Here's how I approach production AI features in Next.js, including streaming, structured output, RAG, tool calling, security, usage limits, and failure handling.

Architecting My Developer Portfolio with Next.js & Supabase
Inside Ahsan DevHub: the Next.js and Supabase architecture behind my portfolio, admin dashboard, newsletter, and social sync—plus the security decisions, stale pages, and UI bugs that shaped it.