blog.coolhead.inDraw Japan Flag Using TSL - Threejs Shading languageLearn More about the japanese Flag → https://en.wikipedia.org/wiki/Flag_of_Japan import "./style.css" import * as THREE from 'three/webgpu'; import { abs, color, convertColorSpace, float, Fn, If, positionLocal, texture, rotateUV, time, vec2, fract, v...Dec 19, 2025·1 min read
blog.coolhead.inImprove Your Website Web VitalsCore Web Vitals metrics → Largest Contentful Paint → Frist Improving the Largest Contentful Paint (LCP) metric. Using a CDN reduces server response times, minimizing third-party scripts lowers JavaScript execution delays, optimizing images and vide...Dec 16, 2025·4 min read
blog.coolhead.inUnderstanding npm link and Its Better Alternative in pnpmIf you’ve ever built multiple JavaScript packages that depend on each other, you’ve probably used — or at least heard of — npm link. It’s a handy tool that lets you work on a library and an app at the same time without constantly reinstalling or publ...Oct 26, 2025·3 min read
blog.coolhead.inFriends as Mentors - Making Mistakes in adulthoodIrrespective of your age. You will make mistakes. As a serious person, who really regrets when something goes wrong. Like I would have nightmares of my mistakes. This has become an obstacle in my path of learning.Sometimes it is the embarrassment of ...Oct 7, 2025·2 min read
blog.coolhead.inCreating Vector Search with TiDB Serverless and DrizzleVector Search has become highly popular with RAG Systems. In this blog we will learn how we can use the TiDB serverless library to connect with our Database, create schema in drizzle, and use the vector search ability of the build in vector search in...Sep 29, 2025·8 min read