Blog — page 7
Technical writing on Web3, AI, Bitcoin, and building software. Written by Uvin Vindula.
170 articles
Docker for Next.js: Multi-Stage Builds and Production Deployment
A hands-on guide to containerizing Next.js applications with Docker multi-stage builds, standalone output mode, and production-ready deployment. Covers when Docker makes sense over Vercel, how to get image sizes under 150MB, environment variable handling at build and runtime, Docker Compose for local development, health checks, layer caching strategies, and the common mistakes that waste hours. Includes my complete production Dockerfile and docker-compose.yml that I use for enterprise client deployments.
Layer 2 Comparison 2026: Arbitrum vs Optimism vs Base vs zkSync
A hands-on layer 2 comparison from someone who deploys on all four. Real gas costs, developer experience breakdowns, and ecosystem analysis for Arbitrum, Optimism, Base, and zkSync in 2026 — with a clear recommendation.
Bundle Size Optimization in Next.js: Under 150KB Initial JS
How I cut initial JavaScript from 380KB to 120KB on a production Next.js e-commerce site. Covers @next/bundle-analyzer, dynamic imports, tree-shaking, Server Components, code splitting strategies, and heavy library alternatives — with real before/after numbers from FreshMart.
How to Build a Developer Portfolio That Actually Wins Clients
Most developer portfolios are glorified link dumps that impress no one. Uvin Vindula breaks down how he designed iamuvin.com to convert CTOs into paying clients for $15K-$80K projects — dark luxury aesthetics, case studies with real revenue numbers, transparent pricing, and a homepage that passes the 10-second test. Practical advice on what clients actually look at, why showing pricing filters out time-wasters, and the technical SEO that brings decision-makers to your site organically.
Framer Motion in Next.js: Animation Patterns That Don't Kill Performance
A practical guide to using Framer Motion in Next.js without destroying your Core Web Vitals. Covers scroll reveals, page transitions, layout animations, exit animations, staggered children, and Server Component compatibility — with real component code from iamuvin.com. My rule: CSS transitions for simple stuff, Framer Motion only when you need layout animations or orchestrated sequences.
Stripe Integration in Next.js: Payments, Subscriptions, and Webhooks
Everything I learned integrating Stripe into production Next.js apps: Checkout vs Elements, subscription billing with metered usage, webhook handling in Route Handlers, idempotency patterns, failed payment recovery, and the Customer Portal. Real patterns from FreshMart (UK grocery platform) and multiple client projects. Includes TypeScript code for every integration point, testing with Stripe CLI, and the architecture that handles thousands of transactions without losing a single one.
OWASP Top 10 for Next.js Developers: Practical Security Guide
A hands-on guide to defending Next.js applications against the OWASP Top 10 vulnerabilities. Each risk includes vulnerable code, the fixed version, and Next.js-specific middleware configurations. Covers security headers (CSP, HSTS, X-Frame-Options), server action validation, route handler auth guards, and production-ready patterns I use on every project and security audit.
Decentralized Exchange Architecture: How DEXs Actually Work
A technical deep-dive into DEX architecture — AMM vs order book models, Uniswap V2 and V3 internals, the constant product formula, concentrated liquidity math, router contracts, swap execution flow, slippage and MEV protection, fee tiers, LP economics, building a minimal DEX in Solidity, and how aggregators like 1inch route trades across protocols.
Bitcoin Education in Sri Lanka: The Challenges and Why I Keep Going
A deeply personal account of building uvin.lk — Sri Lanka's largest free Bitcoin education platform with 10,000+ learners. The misinformation, scam perception, regulatory gray areas, and the Sinhala content gap that make crypto education in Sri Lanka one of the hardest things I've ever done. And why I refuse to stop.
PostgreSQL Query Optimization in Supabase: Practical Patterns
A field guide to making PostgreSQL fly inside Supabase — EXPLAIN ANALYZE workflows, indexing strategies, N+1 prevention, cursor pagination, materialized views, and the exact optimization checklist I run on every project before it hits production.
MCP Servers: The New Standard for AI Tool Integration
A hands-on guide to building MCP (Model Context Protocol) servers that give AI models access to your tools, databases, and APIs. Covers the full architecture — tools, resources, transport layers — with a complete TypeScript implementation you can deploy today. Based on real MCP servers I've built and use daily through Claude Code. If you're integrating AI into your workflow or building AI-powered products, MCP is the protocol that makes tool use composable, testable, and production-ready.
Technical SEO for Next.js Developers: The Complete Guide
A developer-first guide to technical SEO in Next.js covering generateMetadata, JSON-LD structured data, dynamic sitemaps, robots.txt, llms.txt for Generative Engine Optimization, and Core Web Vitals. Every technique in this article is implemented on iamuvin.com — a site built to rank #1 for Web3 developer searches. Includes TypeScript code examples you can copy into your own Next.js project today.