IAMUVIN

Blog

Blog

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

130 articles

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
Sri Lanka Tech Scene10 min
IAMUVIN

Token 2049 Asia: What I Learned Representing Sri Lanka in Singapore

A first-person account of attending Token 2049 Asia in Singapore — the world's largest crypto conference — as a Web3 developer from Sri Lanka. What I saw, who I met, what surprised me, and what it means for the future of crypto in South Asia.

U
Uvin Vindula·October 28, 2024
Full-Stack Engineering11 min
IAMUVIN

Error Handling in TypeScript and Next.js: Patterns That Scale

The error handling patterns I use in every TypeScript and Next.js project to keep production apps alive. From structured error types and consistent API responses to React error boundaries, Next.js error.tsx files, Result types, and proper logging. Real patterns from uvin.lk and EuroParts Lanka that handle the failures most tutorials pretend don't exist. Never swallow errors, never return string messages, never ship a catch block that does nothing.

U
Uvin Vindula·October 21, 2024
Supabase & PostgreSQL10 min
IAMUVIN

Supabase Edge Functions: When and How to Use Them

A practical guide to Supabase Edge Functions — when they make sense over Next.js API routes, how to set them up, writing Deno-based serverless functions for webhooks, scheduled tasks, and custom backend logic, with real examples from production projects.

U
Uvin Vindula·October 14, 2024
DevOps & Deployment11 min
IAMUVIN

Deploying Next.js to Vercel: My Production Deployment Guide

A production-focused guide to deploying Next.js applications on Vercel, covering environment variable management, preview deployments, edge functions, analytics, CI/CD pipelines, performance monitoring, and cost optimization. Based on running four production sites — EuroParts Lanka, uvin.lk, FreshMart, and iamuvin.com — on a single Vercel account (uvindev). Includes real vercel.json configs, edge function patterns, and a deployment checklist I run before every production push.

U
Uvin Vindula·October 7, 2024