IAMUVIN

Blog

Blog

Technical writing on Web3, AI, and building things. Written by Uvin Vindula.

130 articles

UI/UX & Design Engineering11 min
IAMUVIN

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.

U
Uvin Vindula·March 17, 2025
Full-Stack Engineering13 min
IAMUVIN

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.

U
Uvin Vindula·March 17, 2025
Cybersecurity & Ethical Hacking13 min
IAMUVIN

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.

U
Uvin Vindula·March 10, 2025
DeFi Deep Dives13 min
IAMUVIN

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.

U
Uvin Vindula·March 10, 2025
Sri Lanka Tech Scene10 min
IAMUVIN

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.

U
Uvin Vindula·March 3, 2025
Supabase & PostgreSQL12 min
IAMUVIN

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.

U
Uvin Vindula·February 17, 2025
AI & Machine Learning12 min
IAMUVIN

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.

U
Uvin Vindula·February 10, 2025
SEO & Content Strategy12 min
IAMUVIN

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.

U
Uvin Vindula·February 10, 2025
Next.js & React12 min
IAMUVIN

Next.js Server Actions and Forms: The Complete Guide

How I handle every form in production with Next.js Server Actions. Covers Zod validation, useFormStatus loading states, useOptimistic updates, error handling, file uploads, and the architecture I use across EuroParts Lanka, iamuvin.com, and every client project.

U
Uvin Vindula·February 3, 2025
Blockchain Security12 min
IAMUVIN

Front-Running and MEV: How to Protect Your Smart Contracts

A security auditor's complete guide to front-running and MEV protection. Covers how MEV bots exploit transaction ordering, sandwich attacks on DEX swaps, and four battle-tested defenses: commit-reveal schemes, Flashbots Protect, slippage guards, and private mempools. Includes production Solidity code, testing strategies, and a look at the evolving MEV landscape in 2026.

U
Uvin Vindula·February 3, 2025
DevOps & Deployment10 min
IAMUVIN

GitHub Actions for Next.js: My CI/CD Pipeline Setup

A hands-on walkthrough of the CI/CD pipeline I run on every Next.js project using GitHub Actions. Covers the full sequence — lint, type-check, test, build, deploy verification — with real workflow files from production repos. Includes caching strategies that cut pipeline time by 60%, environment variable handling for preview deploys, branch protection rules, and the complete workflow YAML I copy into every new project. If your Next.js code goes straight from push to Vercel without any checks, this guide is for you.

U
Uvin Vindula·January 20, 2025
UI/UX & Design Engineering12 min
IAMUVIN

Tailwind CSS v4: Everything That Changed and How to Migrate

A hands-on guide to Tailwind CSS v4 from someone who migrated four production sites. Covers the CSS-first @theme configuration, design tokens as CSS variables, container queries, new utilities, and a step-by-step migration from v3. Based on real migrations of iamuvin.com, EuroParts Lanka, uvin.lk, and FreshMart — including the gotchas the docs don't warn you about.

U
Uvin Vindula·January 13, 2025