Blog — page 6
Technical writing on Web3, AI, Bitcoin, and building software. Written by Uvin Vindula.
150 articles
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.
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.
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.
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.
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.
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.
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.
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.
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.