Blog — page 9
Technical writing on Web3, AI, Bitcoin, and building software. Written by Uvin Vindula.
150 articles
LangChain vs Building from Scratch: When to Use a Framework
An honest comparison of LangChain versus building custom AI pipelines from scratch using the Anthropic SDK. After shipping production apps both ways, I break down when LangChain genuinely helps, when it actively hurts, and why most production applications are better served by a thin custom layer over the Anthropic SDK. Includes code comparisons, a decision framework, and the maintenance reality nobody talks about.
The Sri Lanka Tech Scene in 2026: What You Need to Know
An insider perspective on Sri Lanka's tech industry in 2026 — from the growing developer talent pool and startup ecosystem to blockchain adoption, infrastructure challenges, and opportunities for international companies looking to build teams in South Asia.
ERC-721A: Gas-Efficient NFT Minting at Scale
A deep dive into ERC-721A — the gas-optimized NFT standard that makes batch minting dramatically cheaper than standard ERC-721. Real gas benchmarks, implementation guide with Merkle tree whitelists, delayed reveal mechanics, and common pitfalls from production drops I have shipped.
Building an AI Content Generation Pipeline
A practical guide to building production AI content pipelines using Claude API with structured prompts, quality control layers, and human review checkpoints. Covers prompt design for consistent output, template systems, automated quality checks, SEO optimization, cost analysis with real numbers, and honest assessment of when AI content works and when it doesn't. Based on pipelines I've built for clients generating blog posts, product descriptions, and SEO content at scale.
NFT Smart Contract Development: ERC-721 and ERC-1155 Guide
A complete guide to building NFT smart contracts with ERC-721 and ERC-1155. Covers on-chain SVG metadata, batch minting with ERC-721A, royalties with ERC-2981, gas optimization, security patterns, and deployment checklists.
Flash Loan Attacks: How They Work and How to Defend Against Them
A deep technical breakdown of flash loan attacks in DeFi — how attackers exploit atomic composability to manipulate prices, drain protocols, and hijack governance. Covers real exploits (Euler Finance, Beanstalk), oracle manipulation vectors, and battle-tested defense patterns with working Solidity code for TWAP oracles, timelocks, and circuit breakers.
Building a Decentralized Exchange (DEX) with Solidity
A complete guide to building a Uniswap V2 style automated market maker (AMM) DEX from scratch — factory, pair, and router contracts in Solidity. Covers constant product formula, liquidity provision, swap execution, fee collection, slippage protection, and comprehensive Foundry testing. Security-first approach based on real DeFi client work.
Vercel AI SDK: Streaming AI Responses in Next.js
A production guide to streaming AI responses in Next.js using the Vercel AI SDK with Claude as the provider. Covers useChat, useCompletion, streamText, tool calling, custom providers, error handling, token counting, and cost control. Based on real implementations where streaming cut perceived latency by 80% and tool calling replaced brittle prompt chains. Includes the exact patterns I use to ship AI features at iamuvin.com and in client projects.
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.
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.
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.
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.