StackKit

All Articles

41 articles

Next.js · November 11, 2026 · 8 min read

Log Search Engine and AI Crawlers in Next.js with proxy.ts and MongoDB

How this blog records Googlebot, the AdSense crawler and AI bots using the Next.js proxy file and MongoDB, without storing IP addresses or slowing pages down.

Security · November 11, 2026 · 7 min read

Verify Googlebot with Forward-Confirmed Reverse DNS in Node.js

A line-by-line look at the reverse DNS check used on this blog to tell real Googlebot traffic from spoofed user-agents, and the crawlers it cannot verify.

Security · November 11, 2026 · 7 min read

A Signed-Cookie Admin Login in Next.js Without a Database, and Its Limits

How the admin panel on this blog authenticates one user with HMAC and timingSafeEqual, plus the real weaknesses of the design and how to fix them.

SEO · November 11, 2026 · 6 min read

What 90 Days of Crawler Logs Showed Me About Google, AI Bots and AdSense

Real numbers from 90 days of crawler logs: GoogleOther outnumbered Googlebot seven to one, and 268 AdSense crawler visits still ended in a rejection.

SEO · November 11, 2026 · 6 min read

How I Unpublished 37 Low-Value Articles with One Config File

After an AdSense low-value rejection, an audit of 73 articles led to taking 37 offline through one reversible file instead of deleting database rows.

Database · November 2, 2026 · 7 min read

Migrating from MongoDB to Postgres with Feature Flags

How CodeForge AI moved from MongoDB to Supabase Postgres one module at a time, using a backend flag, dual-backend repositories and an ID-remapping backfill.

CSS · November 2, 2026 · 4 min read

CSS Grid vs Flexbox: When to Use Each

Flexbox lays out in one dimension and Grid in two. Learn the difference with side-by-side code, common layouts, and how to combine both.

JavaScript · November 2, 2026 · 4 min read

Debounce vs Throttle in JavaScript: Differences and Implementations

Debouncing waits for events to stop; throttling limits how often a function runs. See both implemented in JavaScript and when to use each.

Git · November 2, 2026 · 4 min read

How to Undo Mistakes in Git: reset, revert, restore and reflog

A practical guide to undoing Git mistakes safely: when to use restore, revert or reset, and how reflog can recover commits you thought you lost.

Backend · November 2, 2026 · 4 min read

HTTP Caching Explained: Cache-Control, ETag and 304 Responses

How browser and CDN caching works: what max-age, no-cache and immutable mean, how ETag revalidation returns 304, and a sensible strategy for assets and APIs.

JavaScript · November 2, 2026 · 4 min read

Promise.all, allSettled, race and any: Which One to Use

Four JavaScript Promise combinators look similar but fail in different ways. Learn what each returns, when it rejects, and how to choose.

Python · November 2, 2026 · 4 min read

Python asyncio in Practice: gather, Timeouts, Semaphores and TaskGroup

Run tasks concurrently with asyncio: gather, timeouts, a semaphore to limit concurrency, error handling and structured concurrency with TaskGroup.

Python · November 2, 2026 · 4 min read

Python dataclass vs NamedTuple vs TypedDict: Choosing a Data Container

Compare Python dataclasses, NamedTuple and TypedDict with runnable examples, so you can pick the right structure for records, configs and JSON.

JavaScript · November 2, 2026 · 4 min read

Regular Expressions for Developers: JavaScript and Python

Learn the regex features you use daily: groups, named captures, lazy matching and lookbehind, with tested examples in both JavaScript and Python.

Linux · November 2, 2026 · 4 min read

Writing Safer Bash Scripts: set -euo pipefail, Quoting and trap

Learn the habits that make Bash scripts fail loudly instead of silently: strict mode, quoting variables, argument checks and cleanup with trap.

Node.js · September 21, 2026 · 3 min read

Node.js worker threads for CPU-intensive tasks

Keep Node.js responsive during CPU-heavy work: move tasks to worker threads, share data efficiently and build a simple worker pool.

Linux · September 19, 2026 · 4 min read

Linux file permissions and chmod explained with examples

A practical guide to linux file permissions and chmod explained with examples.

Database · September 18, 2026 · 4 min read

Database transactions and ACID properties explained

A practical guide to database transactions and ACID properties explained.

Next.js · September 17, 2026 · 4 min read

Next.js Image component and image optimization in production

A practical guide to next.js Image component and image optimization in production.

Git · September 16, 2026 · 4 min read

Git worktrees: work on multiple branches without stashing

A practical guide to git worktrees: work on multiple branches without stashing.

React · September 14, 2026 · 4 min read

React Context API vs Redux: when you actually need state management

A practical guide to react Context API vs Redux: when you actually need state management.

Python · September 12, 2026 · 3 min read

Python type hints and mypy for safer code

Add type hints to Python code and check them with mypy: basics, typing collections, protocols instead of inheritance, and common mistakes.

Linux · May 22, 2026 · 5 min read

Vim keybindings every developer should know

Learn the Vim keybindings that save the most time: navigation, editing, visual mode, registers and macros, with two worked examples.

Database · May 22, 2026 · 4 min read

MongoDB aggregation pipeline practical guide

Learn MongoDB aggregation pipelines with worked examples using $match, $group, $addFields and $sort, plus common mistakes to avoid.

Linux · May 22, 2026 · 4 min read

Linux cron jobs: scheduling tasks the right way

Learn cron syntax, environment variable pitfalls, logging and error handling, and when a systemd timer is a better choice for scheduled jobs.

CSS · May 22, 2026 · 3 min read

Tailwind CSS tips that save hours of styling

Practical Tailwind CSS v4 tips: theme variables, @apply, dynamic class name pitfalls, class-based dark mode, custom utilities and tidy class lists.

DevOps · May 22, 2026 · 4 min read

Nginx configuration for Node.js production apps

Set up Nginx as a reverse proxy for a Node.js app, with SSL termination using Let's Encrypt, load balancing and caching, plus example configs.

Database · May 22, 2026 · 4 min read

PostgreSQL indexing strategies for faster queries

A practical guide to PostgreSQL indexing strategies for faster queries.

Git · May 22, 2026 · 4 min read

Git rebase vs merge: when to use each

Learn how git rebase and git merge differ, when to choose each one, and how to avoid rewriting history that other people depend on.

DevOps · May 22, 2026 · 4 min read

Kubernetes pods and deployments for beginners

Understand Kubernetes Pods and Deployments from scratch: how they relate, how to create, scale and update them, and mistakes beginners make.

Node.js · May 22, 2026 · 4 min read

Node.js streams for handling large files

Process large files in Node.js without loading them into memory, using readable, writable and transform streams, with common mistakes to avoid.

Backend · May 22, 2026 · 5 min read

Redis caching patterns for Node.js apps

Compare Redis caching patterns for Node.js, including cache-aside and read-through, with setup steps, code examples and common mistakes.

Backend · May 22, 2026 · 4 min read

WebSockets vs Server-Sent Events: pick the right one

A practical guide to WebSockets vs Server-Sent Events: pick the right one.

Docker · May 22, 2026 · 5 min read

Docker multi-stage builds for smaller images

Shrink Docker images with multi-stage builds: separate build and runtime stages, use smaller base images, and avoid common mistakes.

Next.js · May 18, 2026 · 3 min read

Next.js middleware: authentication and redirects

A comprehensive guide to Next.js middleware: authentication and redirects.

TypeScript · May 12, 2026 · 3 min read

Type-safe API calls with TypeScript and Zod

Validate API responses at runtime with Zod and infer TypeScript types from the same schema, so fetched data is both checked and typed.

Security · May 14, 2025 · 9 min read

API Authentication: JWT, OAuth 2.0, and API Keys Explained

Understand the three main API authentication methods — API keys, JWT, and OAuth 2.0 — when to use each, and how to implement them securely.

Git · May 6, 2025 · 8 min read

Git Branching Strategies Explained: GitFlow, Trunk-Based, and GitHub Flow

Compare the most popular Git branching strategies — GitFlow, GitHub Flow, and trunk-based development — and learn which one fits your team's workflow.

Database · May 1, 2025 · 8 min read

SQL JOINs Explained: INNER, LEFT, RIGHT, and FULL with Real Examples

Master SQL JOINs once and for all. Learn the difference between INNER, LEFT, RIGHT, and FULL OUTER JOINs with clear diagrams and practical examples.

Developer Tools · March 30, 2025 · 7 min read

15 VS Code Tips That Will Double Your Productivity

Power user tips for VS Code: multi-cursor editing, keyboard shortcuts, terminal integration, extensions, and debugging tricks that save hours every week.

Developer Tools · March 9, 2025 · 7 min read

Browser DevTools: 12 Tricks Most Developers Don't Know

Level up your debugging with advanced Chrome DevTools techniques: console tricks, network throttling, CSS editing, performance profiling, and more.