IAMUVIN

Blog — page 8

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

170 articles

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
NFT & Digital Assets11 min
IAMUVIN

Building an NFT Marketplace Frontend with React and wagmi

A hands-on guide to building a production NFT marketplace frontend with React, wagmi, viem, and RainbowKit. Covers wallet connection, NFT metadata fetching, collection displays, listing and buying flows with transaction confirmation UX, real-time activity feeds, search and filtering, mobile responsiveness, and performance patterns for large collections.

U
Uvin Vindula·January 13, 2025
Full-Stack Engineering12 min
IAMUVIN

Database Schema Design for Production Applications

The PostgreSQL schema design patterns I use in every production application I build through Supabase. From naming conventions and data type decisions to indexing strategy, UUID vs serial IDs, soft deletes, and migration workflows. Real schemas from EuroParts Lanka (products, orders, users, parts), uvin.lk (modules, lessons, progress tracking), and FreshMart (products, orders, carts). These aren't textbook patterns — they're battle-tested designs running in production right now, serving real users across Sri Lanka, the UK, and beyond.

U
Uvin Vindula·January 6, 2025
Performance & Optimization10 min
IAMUVIN

Image Optimization in Next.js: The Complete Performance Guide

A complete guide to image optimization in Next.js using next/image — covering WebP and AVIF format selection, blur placeholders, responsive sizing, priority loading, external image sources like Sanity and Cloudinary, CLS prevention, and the exact component patterns I use to hit PageSpeed 95+ on every project.

U
Uvin Vindula·January 6, 2025
Blockchain Security12 min
IAMUVIN

Oracle Manipulation Attacks: How Price Feeds Get Exploited

A security auditor's deep dive into oracle manipulation — the most common DeFi exploit vector. Covers how spot price oracles get manipulated through flash loans, real attack case studies (Mango Markets, Cream Finance), and battle-tested defenses: Chainlink price feeds, TWAP oracles, multi-oracle strategies, and circuit breakers. Includes production Solidity code and a complete audit checklist.

U
Uvin Vindula·December 9, 2024
DeFi Deep Dives12 min
IAMUVIN

Tokenomics Design: A Developer's Guide to Token Economics

A technical guide to designing token economics that actually work — supply mechanics, emission curves, vesting schedules in Solidity, staking incentive math, governance token power dynamics, fee distribution models, and how to distinguish sustainable tokenomics from ponzi mechanics.

U
Uvin Vindula·November 18, 2024
Sri Lanka Tech Scene11 min
IAMUVIN

Hiring a Developer from Sri Lanka: What International Companies Should Know

A practical guide for CTOs and hiring managers considering Sri Lankan developers — covering skill levels, pricing, time zones, payment methods, legal considerations, and how to avoid common mistakes. Written by a developer who works both sides of this equation.

U
Uvin Vindula·November 18, 2024
Next.js & React10 min
IAMUVIN

Next.js Image Component Deep Dive: Beyond the Basics

Everything I have learned about next/image after shipping dozens of production sites. Covers the sizes prop most developers get wrong, external domain configuration, blur placeholders, priority loading, responsive srcSet, Sanity CMS integration, and real performance numbers.

U
Uvin Vindula·November 4, 2024
Web3 Development10 min
IAMUVIN

Web3 Development Cost: How Much Does It Really Cost in 2026

Honest breakdown of Web3 development costs in 2026. From smart contracts to full-stack dApps, DeFi protocols to NFT platforms — real dollar ranges from a developer who builds them.

U
Uvin Vindula·November 4, 2024