Ali nazari

Ali nazari @silentwatcher_95

About: Just a tech

Location:
Earth 🌍
Joined:
Jul 30, 2022

Ali nazari
articles - 37 total

Tired of Regex Gibberish? This CLI Tool Decodes It Like Magic. ✨

Let's be real. You're scrolling through a codebase, and you stumble upon...

Learn More 7 2Sep 10

From Terminal to Code: Automatically Convert Shell Commands to Node.js Scripts with shell2node 🍃

Have you ever found yourself staring at your terminal history, wondering how to turn that complex...

Learn More 5 3Sep 3

Unearth Your Code’s Hidden TODOs & Supercharge Your Workflow with comment-todo!

Ever lost track of those // TODO: refactor this or /* FIXME: edge case */ comments scattered across...

Learn More 5 1Aug 31

Build social features fast with mongoose-reactions — a tiny, production-ready Mongoose plugin for reactions

mongoose-reactions is a lightweight, TypeScript-first Mongoose plugin that adds Laravel-like...

Learn More 7 3Aug 24

Automatically Generate .env.example from Your Code—No More Guesswork!

If you’ve ever joined a new project and found yourself asking, “What environment variables do I...

Learn More 21 7Aug 15

Accelerate Your Node.js Startup with NODE_COMPILE_CACHE

At a glance: Learn how to harness Node.js’ NODE_COMPILE_CACHE feature to speed up module loading by...

Learn More 5 0Jul 8

Understanding Node.js ABI Version: What It Is and Why It Matters

“Ever encountered a cryptic 'Module version mismatch' error in Node.js when working with native...

Learn More 6 0Jul 2

The Silent Killers in Node.js: uncaughtException and unhandledRejection 🐦

Node.js is beloved for its non‑blocking, event‑driven architecture—but that same model can let...

Learn More 6 0Jun 27

Centralize Your Node.js Config: How to Leverage npm's config Key with cross-env

Environment variables are indispensable for configuring applications without hard‑coding sensitive or...

Learn More 8 1Jun 27

Why You Should Deep Copy Request Payloads in Node.js (Express & NestJS)

When building backend APIs with Node.js—especially with frameworks like Express or NestJS—you’ll...

Learn More 7 2Jun 17

Streamlining Image Moderation API Uploads in Node.js: From Native Fetch to Form‑Data and DNS Fixes ⚙

In this post, we’ll walk through our journey integrating the Sightengine image moderation API into a...

Learn More 13 11Jun 14

Content Moderation in Node.js: Building a Scalable Image Moderation Pipeline with MinIO, BullMQ, ClamAV, DeepStack & Hashing 🧬

Content moderation is critical in user-generated platforms. Whether you're running a social app,...

Learn More 6 2Jun 13

Save Hours on API Testing: Auto-Generate Postman Collections from Your Express.js App 🧪

Shipping a well-documented API can feel like a second job. You build your Express routes, then spend...

Learn More 16 4Jun 8

Securing Redis with ACLs and Integrating Redis Insight in Docker

Securing your Redis deployment is crucial once you begin relying on it for caching, messaging, or as...

Learn More 19 5May 31

Why You Should Delete jsonwebtoken in 2025 ⭐

For years, if you wanted to sign and verify JWTs in Node.js, your go-to library was jsonwebtoken....

Learn More 18 2May 30

Building a Scalable Base Repository with TypeScript & Mongoose 🔥

When you work on growing Node.js backends with MongoDB, every collection—Tags, Notes, Users,...

Learn More 9 0May 27

When a Single create() Call Becomes Two Writes: A Mongo + Mongoose Gotcha 😨

Picture this: you’ve just set up your MongoDB replica set, wired up Mongoose, and you call your...

Learn More 6 1May 25

Why Your MongoDB Transactions Aren’t Working in Docker — and How to Fix It 🚨

You’ve added startSession() and startTransaction() to your Mongoose code, only to be greeted...

Learn More 6 1May 22

Boost Your App Security with reCAPTCHA and IP-Based Fraud Detection 🛡

Hey folks! If you’re running any public-facing web app—think login screens, sign-up pages, and...

Learn More 17 9May 17

Fixing Race Conditions in Redis Counters: Why Lua Scripting Is the Key to Atomicity and Reliability

If you've ever built rate limiting or login throttling with Redis, chances are you've used INCR and...

Learn More 8 5May 17

Reliable Redis Connections in Node.js: Lazy Loading, Retry Logic & Circuit Breakers 🔦

If you’re using Redis in a Node.js application — especially in production — reliability isn’t...

Learn More 6 0May 7

Building Your Own HMAC-Signed Double-Submit CSRF

For years, Express apps have relied on the csurf middleware to defend against Cross-Site Request...

Learn More 7 1May 4

You Should Encrypt Your Environment Variables 🔑

Environment variables (.env files) are a popular way to manage configuration and secrets in modern...

Learn More 18 11May 4

Implementing API Header Versioning in node.js 🍗

API versioning via headers is a powerful way to evolve your API without breaking existing...

Learn More 12 5May 2

Derive TypeScript Types from Mongoose Schemas 🌿

When working with Mongoose and TypeScript, two helper types make your life much easier: /** *...

Learn More 6 0May 2

Race Conditions in JWT Refresh Token Rotation 🏃‍♀️‍➡️

Modern web apps often use JWTs for stateless authentication. Access tokens have short lifetimes...

Learn More 11 2May 2

Stress Testing in node.js 🧪

Stress testing is a form of performance testing where the application is pushed beyond its normal...

Learn More 22 1Apr 24

Timing Attacks in Node.js

Let’s start from the very beginning: What a timing attack is (CWE‑208), why it matters in Node.js,...

Learn More 29 15Apr 22

Express.js honeypot 🍯🐝

Hey there, fellow devs! In today’s fast-paced web world, keeping your admin routes locked down is...

Learn More 12 4Mar 26

GitHub Magic beans

Two Heads, One Commit The Commitizen Edition If you’re in a team that’s very particular...

Learn More 7 0Nov 25 '24