Blog
Articles & Insights
Notes on LLM integration, AI automation, full-stack development and running it all on your own servers.
Fix Invalid JSON from LLM API Responses
Why LLM APIs return invalid JSON and how to fix it for good: structured output modes, schema validation, and a safe parse-and-repair fallback in Node.js.
Node.js Worker Threads for CPU-Heavy Tasks
Learn how Node.js worker threads move CPU-intensive tasks off the event loop, with a working Express example and when to pick them over clustering.
React "Too Many Re-renders" Error Fix
Fix React's "Too many re-renders" error by finding the state update that runs during render. Real causes, code examples, and the debugging steps that work.
Husky Pre-Commit Hook Not Running: How to Fix
Husky pre-commit hook not running? Check core.hooksPath, the prepare script, hook file names, and Node paths in Git GUIs, with the exact fix for each.
Content Security Policy in Express With Helmet
Learn how to set up a Content Security Policy in Express with Helmet: nonces, report-only rollout, and the mistakes that weaken your XSS defense.
Docker Multi-Stage Builds for Node.js Apps
Learn how Docker multi-stage builds for Node.js shrink images from 1 GB to under 150 MB, with a production Dockerfile and CI caching tips you can copy.
Node.js RAG Pipeline: pgvector + OpenAI
Build a Node.js RAG pipeline with pgvector and OpenAI embeddings for grounded, source-backed AI answers without running a separate vector database.
Shopify Metafields: A Developer's Guide
A practical guide to Shopify metafields: definitions, GraphQL mutations, Liquid access, metaobjects, and the storefront-access bug that trips up most devs.
MySQL Composite Index Optimization Guide
Learn MySQL composite index optimization: leftmost-prefix rules, correct column ordering, covering indexes, and verifying gains with EXPLAIN plans.
REST API Idempotency Keys: A Guide
Learn how REST API idempotency keys prevent duplicate charges and orders, with a practical Node.js and Redis-backed implementation guide and code example.
Laravel Queue Retry Strategies With Redis
A practical guide to Laravel queue retry strategies: configuring exponential backoff, retryUntil deadlines, and failed-job handling that actually recovers.
Node.js Worker Threads for CPU-Bound Tasks
Learn how Node.js worker threads offload CPU-bound work from the event loop, with a real worker pool implementation and production best practices.
React List Virtualization Explained
Learn React list virtualization with react-window: render only visible rows, handle variable heights, and avoid the mistakes that break large lists.
Laravel Queue Retry Logic: A Practical Guide
A practical guide to configuring Laravel queue retry logic, backoff, and failed job handling so failures alert you instead of vanishing silently.