All Posts
Practical tutorials and guides on JavaScript, CSS, Git, SEO, and AI. Written for web developers who want clear, actionable explanations.
Friday 20/02/2026
· 12 min readBuild a Multi-Step AI Agent with Tool Use in TypeScript
Build a TypeScript AI agent that calls tools, chains decisions, and solves multi-step tasks using Claude's tool_use API — full working agent loop included.
Wednesday 18/02/2026
· 12 min readHow to Handle AI API Rate Limits and Errors in Production (TypeScript)
Production-ready TypeScript patterns for handling AI API rate limits — exponential backoff, request queues, token budgets, and graceful degradation you can copy-paste.
Tuesday 17/02/2026
· 8 min readBuilding an AI Code Review Bot with Claude and GitHub Actions
Build a GitHub Action that automatically reviews pull requests using Claude — complete working workflow YAML and TypeScript script you can add to any repo.
Friday 13/02/2026
· 8 min readHow to Add AI Search to Any Website with Embeddings and Supabase
Add AI-powered semantic search to your website using OpenAI embeddings and Supabase pgvector — full working TypeScript example with a React frontend.
Wednesday 11/02/2026
· 11 min readClaude vs OpenAI API: A Practical Comparison for JavaScript Developers
A side-by-side code comparison of the Claude API vs OpenAI API for JavaScript developers — streaming, tool use, vision, and pricing math with real TypeScript examples.
Monday 09/02/2026
· 8 min readHow to Stream Claude API Responses in a Next.js App (With Full Code)
Learn how to stream Claude API responses token-by-token in a Next.js app using the Anthropic TypeScript SDK and Server-Sent Events. Full working code included.
Monday 09/02/2026
· 9 min readBuild a RAG Chatbot in 100 Lines of TypeScript
Build a RAG chatbot in TypeScript that answers questions about your own documents using the Anthropic SDK and a vector database — no LangChain, no bloated frameworks.
Tuesday 09/08/2022
· 1 min readHow to remove element from array
we can change the length of the array Array.pop() will remove the last element and return it Array.shift() will remove the first element and return it Array....
Monday 08/08/2022
· 1 min readCons of using React context
The biggest con when using React context is it may lead to performance issues. It is rerendering all the components that under the context provider each time...
Sunday 07/08/2022
· 1 min readWhat are JS data types
These are the JS data types: Number String Boolean Object Undefined
Saturday 06/08/2022
· 1 min readAccess to element with ID
If you set ID on html element, you can access it inside your script directly The output in the console will be: It makes the code more complex if you use thi...
Tuesday 02/08/2022
· 1 min readHow to return tuple in typescript
We can do something like this:
Monday 01/08/2022
· 1 min readSimple object validation
You can use Proxy to add simple validation to your objects. Example: This is very basic implementation but you can go pretty wild with it.
Sunday 31/07/2022
· 1 min readWhy to use pnpm
NPM / YARN are great package managers BUT PNPM is better. PNPM is faster than NPM / YARN PNPM uses symlinks instead of copying the dependencies security pnpm...
Wednesday 27/07/2022
· 1 min readHow to implement map function
For implementing arr.map() we will have to create new function on the Array.prototype. Then we will loop over array that the method was called on and finally...
Tuesday 26/07/2022
· 1 min readMeta tags for SEO
Charset Specifies the character encoding Description One of the most important meta tags for SEO. This tag should summarize the webpage. You should keep it u...
Monday 25/07/2022
· 1 min readHow to center a div
This code will center "myDiv" at the middle of the screen:
Sunday 24/07/2022
· 1 min readImplement isPalindrome in JS
To implement isPalindrome function we can achieve it by implementing another helper function reverseStr(). split('') will separate every char to array elemen...
Saturday 23/07/2022
· 1 min readConnect google analytics to Next.js App
I assume that you already create your google analytics property and now you want to connect it to your Next.js app. Let's open \app file and Then we will get...
Saturday 23/07/2022
· 1 min readGit restore to remote version
Sometimes I want to reset my git branch to the remote version. This is how it's done:
Friday 22/07/2022
· 1 min readServe app on port 80 using Nginx
This example was tested on ubuntu machine but should work the same on any linux distribution. First of all you need to install nginx: Then we need to remove ...
Friday 22/07/2022
· 2 min readCreate-nextjs-pwa
This are the steps to create pwa with nextjs install next-pwa create manifest.json this file tells the progressive web app how to behave on dektop or mobile....