How I solve real problems in the products I build
Short, practical breakdowns of the decisions behind my projects: architecture, trade-offs and what worked. Each one links to the full case study.

Taking AI-Built MVPs (Cursor, Lovable, Bolt) to Production-Ready Architecture
Built a prototype with Cursor, Lovable, Bolt or Claude that started breaking under real users? How I audit, refactor, secure and scale AI-generated Next.js, Node.js, Python and Laravel codebases for production.
Read write-up →
Building a Multi-Tenant E-Commerce Platform with Next.js and NestJS
How I designed tenant isolation, instant store routing, POS-synced inventory and Cash-on-Delivery risk checks for MiniMart, a multi-vendor e-commerce platform built with Next.js, NestJS, PostgreSQL and Redis.
Read write-up →
Building a Sub-Second Voice AI Booking Assistant with FastAPI and Groq
How I built AquaShine, a voice receptionist that takes car wash bookings in real time using FastAPI async endpoints, Groq's Llama 3.3 70B model, the Web Speech API and persistent session recordings.
Read write-up →
Printing Sinhala Unicode Receipts on Thermal Printers with html2canvas
Why thermal printers break Sinhala text, and how I solved it in Agro Ledger by rendering receipts as bitmaps with html2canvas and waiting for fonts to load before printing over ESC/POS.
Read write-up →
Parsing PDF Resumes into Structured JSON with Gemini and FastAPI
How I built a resume analyzer that extracts structured data from PDFs with Gemini 2.5 Flash, enforces a JSON schema, and highlights keywords inside the PDF using PyMuPDF.
Read write-up →
Architecting Next.js and FastAPI for Production AI Apps: SSE Streaming, Auth, and Cost Control
How to connect a Next.js App Router frontend to a Python FastAPI AI backend in production—covering Cookie-to-Bearer authentication, Nginx-safe Server-Sent Events (SSE) streaming, client disconnect cancellation, and multi-model fallbacks.
Read write-up →
Building an AI Programmatic SEO, Pinterest Pin & Video Reel Engine with FastAPI, Gemini 2.5 and Google Veo
How I built FoodyMuse (foodymuse.com) to reach 900+ Google Search impressions in two weeks using a Trends Intelligence keyword engine, archive-aware Gemini 2.5 recipe generation, 5-language localization, automated 1000x1500 WebP Pinterest pins, and Google Veo 2.0 / Runway 9:16 video reels.
Read write-up →
Building a Zero-Dependency Phonetic Sinhala (Singlish) Transliteration NPM Library for React, Next.js and Vue
How I engineered Singlish Pro—an ultra-lightweight (<40KB), zero-latency JavaScript/TypeScript NPM package that brings real-time phonetic Sinhala Unicode typing to React, Next.js, Vue, and Angular applications.
Read write-up →
Real-Time Drone Fleet Telemetry and Autonomous Polygon Geofencing with Mapbox GL JS and Turf.js
How I built Aurora Drone Ops to render 60FPS multi-drone telemetry, interactive patrol zone drawing, and autonomous Turf.js spatial boundary enforcement in the browser.
Read write-up →
Architecting an Automated Fleet Lifecycle & Weekly Driver Settlement Engine with NestJS 11, Prisma v8 and Next.js 16
How I built Saleto Fleet Management to automate weekly driver payouts, reserve installment deductions, short-rental penalties, and contract-first PostgreSQL 17 migrations using NestJS 11, Prisma v8, and Next.js 16.
Read write-up →
Designing a Multi-Country Vehicle Trading, Container/RoRo Shipping & Polymorphic Payment ERP in Laravel
How I architected Trans Auto Hub—a multi-branch automotive procurement and ocean freight ERP connecting Japan headquarters with regional branches in Sri Lanka, Dubai, and India using Laravel, MySQL, and Redis.
Read write-up →