IAMUVIN

Blog

Blog

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

130 articles

DeFi Deep Dives10 min
IAMUVIN

Impermanent Loss Explained with Real Numbers and Math

Impermanent loss explained with actual dollar amounts, step-by-step math, and worked ETH/USDC examples. Learn exactly how much you lose, when IL gets dangerous, and strategies to minimize it as a liquidity provider.

U
Uvin Vindula·May 20, 2024
Web3 Development10 min
IAMUVIN

Token Vesting Contracts: Implementation Guide

A complete guide to building token vesting contracts in Solidity — cliff vesting, linear vesting, multi-beneficiary schedules, and revocable vs irrevocable designs. Covers OpenZeppelin VestingWallet, custom extensions, Foundry testing, and frontend integration with wagmi. Based on real token launch work.

U
Uvin Vindula·May 20, 2024
AI & Machine Learning11 min
IAMUVIN

How to Build a Document Analysis System with Claude

A practical guide to building production document analysis with Claude — from PDF text extraction and vision-based OCR for scanned documents, to structured data extraction for invoices and contracts. Covers chunking strategies for large documents, confidence scoring, and the Next.js API architecture that ties it all together.

U
Uvin Vindula·May 13, 2024
Next.js & React12 min
IAMUVIN

React Server Components: A Practical Guide for Real Projects

A hands-on guide to React Server Components from someone who uses them on every project. Covers the Server vs Client decision tree, data fetching patterns, composition strategies, streaming, and real performance numbers from EuroParts Lanka and iamuvin.com.

U
Uvin Vindula·May 13, 2024
Web3 Development11 min
IAMUVIN

How to Build a Multi-Sig Wallet Smart Contract

A complete guide to building a production-grade multi-signature wallet smart contract in Solidity — from architecture and approval flows to execution logic and owner management. Includes a full working contract, Foundry test scenarios, and honest guidance on when to use Gnosis Safe instead of rolling your own.

U
Uvin Vindula·May 13, 2024
AI & Machine Learning11 min
IAMUVIN

Building AI-Powered Search for E-commerce Applications

How I built AI search systems that understand what customers actually mean — not just what they type. From EuroParts Lanka where customers describe car problems in plain language to FreshMart where shoppers search by recipe instead of ingredient. Semantic search, hybrid ranking, and the architecture that makes it work at production scale.

U
Uvin Vindula·May 6, 2024
DeFi Deep Dives13 min
IAMUVIN

Automated Market Makers Explained: How AMMs Actually Work

A deep dive into automated market makers — the constant product formula, concentrated liquidity, impermanent loss with real numbers, and a Solidity AMM implementation from scratch.

U
Uvin Vindula·May 6, 2024
Web3 Development10 min
IAMUVIN

wagmi and viem: The Modern Web3 Frontend Stack

A hands-on guide to building Web3 frontends with wagmi and viem — why I switched from ethers.js, how to set up wallet connections with RainbowKit, read and write contract data with full type safety, handle multi-chain configurations, and the real patterns I use on every client dApp. Based on production projects shipping on Ethereum, Arbitrum, Base, and Optimism.

U
Uvin Vindula·May 6, 2024
AI & Machine Learning9 min
IAMUVIN

The Real Cost of AI Integration in 2026

A transparent breakdown of what AI integration actually costs in 2026 — from API spend and development hours to infrastructure and ongoing maintenance. Based on real projects I've shipped, including the EuroParts Lanka AI Part Finder. No vague estimates. Real numbers from $15K to $50K engagements.

U
Uvin Vindula·April 22, 2024
Blockchain Security12 min
IAMUVIN

Reentrancy Attacks Explained: How They Work and How to Prevent Them

A complete breakdown of reentrancy attacks in smart contracts — from the 2016 DAO hack to modern cross-function and read-only reentrancy variants. Includes working vulnerable code, a full attack contract, defense patterns (Checks-Effects-Interactions and ReentrancyGuard), and Foundry fuzz tests.

U
Uvin Vindula·April 22, 2024
Web3 Development11 min
IAMUVIN

Upgradeable Smart Contracts: Proxy Patterns Explained

A deep dive into upgradeable smart contract patterns — Transparent Proxy, UUPS, and Beacon Proxy — with real Solidity code, storage layout rules, and honest guidance on when upgradeability adds risk instead of value. Based on production deployments for clients who need post-deployment flexibility.

U
Uvin Vindula·April 22, 2024
AI & Machine Learning12 min
IAMUVIN

Implementing Semantic Search in Next.js with Supabase pgvector

A complete implementation guide for building semantic search with pgvector in Supabase. Covers embedding generation, vector storage, hybrid search combining vector and full-text queries, and a production-ready Next.js API route with a React search component. Real code from real projects.

U
Uvin Vindula·April 15, 2024