Blog — page 10
Technical writing on Web3, AI, Bitcoin, and building software. Written by Uvin Vindula.
170 articles
Authentication in Next.js with Supabase: Production Patterns
Production authentication patterns I use in every Next.js project with Supabase Auth. From email/password and OAuth flows to middleware-based session management, protected routes on both server and client, role-based access control, and the auth bugs that cost me hours. Real patterns from uvin.lk and EuroParts Lanka that handle expired sessions, OAuth callback races, and edge cases most tutorials skip.
On-Chain SVG NFTs: Building Dynamic Metadata That Lives on the Blockchain
A hands-on guide to building on-chain SVG NFTs with dynamic metadata that evolves based on blockchain state. Covers Solidity SVG generation, base64 encoding for tokenURI, gas optimization patterns, and comparison with IPFS-based approaches.
How to Build an MVP That Actually Works: A Developer's Guide
A practical guide to building MVPs that validate your idea and attract real users — with real budgets, timelines, and examples from building products like GemStore.lk and EuroParts Lanka. Stop overbuilding. Start shipping.
Streaming and Suspense in Next.js: Patterns for Fast Page Loads
Battle-tested streaming and Suspense patterns from production Next.js apps. Learn how to get LCP under 1.5 seconds by streaming expensive data fetches while showing an instant shell. Real examples from EuroParts Lanka and FreshMart.
Supabase Authentication: The Complete Guide for Next.js Apps
A hands-on guide to implementing Supabase Auth in Next.js 16 apps — email/password flows, OAuth providers, server-side middleware, Row Level Security, and the production gotchas I learned building uvin.lk, EuroParts Lanka, and FreshMart.
DeFi Lending Protocols: How Aave and Compound Actually Work
A deep dive into DeFi lending protocols — utilization rates, interest rate curves, health factors, liquidation mechanics, flash loans, and a Solidity lending pool implementation. How Aave V3 and Compound V3 actually work under the hood.
Zod Validation in Next.js: From Form Inputs to API Responses
A complete guide to using Zod v4 for runtime validation in Next.js applications. Covers form validation with Server Actions, API route validation, environment variable safety, external API response parsing, React Hook Form integration, custom error messages, and battle-tested validation patterns from production codebases.
The Graph Protocol: Indexing Blockchain Data for dApps
A practical guide to indexing on-chain data with The Graph Protocol — from subgraph definition and schema design to event handlers, deployment on Subgraph Studio, and querying with GraphQL. Covers hosted vs decentralized network, performance optimization, and real patterns from production DeFi and NFT indexing.
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.