Blog — page 9
Technical writing on Web3, AI, Bitcoin, and building software. Written by Uvin Vindula.
170 articles
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.
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.
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.
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.
NFT Royalties with ERC-2981: Implementation and Marketplace Support
A practical guide to implementing ERC-2981 royalty standard in NFT smart contracts. Covers the standard explained, custom royalty splits, marketplace support reality, on-chain enforcement strategies, the Operator Filter Registry, and the future of creator compensation on Ethereum.
Core Web Vitals for Next.js: How I Hit 95+ on Every Project
A hands-on guide to achieving 95+ Lighthouse scores in Next.js — covering LCP, INP, CLS, bundle optimization, image strategy, font loading, and Server Components. Based on real production numbers from FreshMart and other projects I have shipped.
How to Price Software Development Services: What I've Learned
A transparent breakdown of how I price software development services from $8K to $80K per project and $5K/month retainers — including real numbers, the mistakes I made, and why I stopped competing on price from Sri Lanka. A guide for developers and clients alike.
Yield Farming Explained: A Developer's Technical Guide
A technical deep dive into yield farming — LP token staking mechanics, reward distribution math, auto-compounding vaults with ERC-4626, multi-pool farming architecture, APR vs APY calculations with code, and building farm contracts that don't collapse.
Next.js Middleware Patterns for Production Applications
Battle-tested Next.js middleware patterns I use on every production app — authentication redirects, rate limiting at the edge, geo-based routing, bot detection, A/B testing, and a complete middleware.ts template you can drop into any project.
Working as a Remote Developer from Sri Lanka with Global Clients
A practical guide to working as a remote developer from Sri Lanka with clients in the UK, USA, Canada, and Europe. Uvin Vindula shares real numbers on pricing ($8K-$80K projects), time zone management across IST and GMT, payment solutions that actually work for Sri Lankan developers, and the common mistakes that keep talented developers undercharging. Based on years of experience running Terra Labz and building production software for international clients from Colombo and London.
Access Control in Smart Contracts: Patterns That Prevent Exploits
A security auditor's guide to smart contract access control — from simple Ownable to role-based AccessControl, multi-sig patterns, timelocks, and emergency pauses. Includes real anonymized audit findings, vulnerable vs fixed code, and Foundry tests that catch access control bugs before attackers do.
Supabase Row Level Security: The Patterns That Actually Work
A battle-tested guide to Supabase Row Level Security policies — SELECT, INSERT, UPDATE, DELETE patterns, auth-based policies, role-based access, multi-tenant RLS, performance tuning, and the mistakes I have made so you do not have to.