Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
9 questionsHow do you enable gzip/Brotli compression for HTTP responses?
Backend ยท 1.2k views ยท nodejs, http, compression
What does the Node.js --watch flag do and how does it replace nodemon?
Backend ยท 957 views ยท nodejs, tooling, dx
What is npx and how does it differ from a global install?
Backend ยท 653 views ยท nodejs, npm, npx
What does NODE_ENV=production actually change and why does it matter?
Backend ยท 620 views ยท nodejs, ops, node-env
What is structuredClone and when is it useful in Node.js?
Backend ยท 550 views ยท nodejs, cloning, structuredclone
How do you replicate __dirname in ES Modules using import.meta.url?
Backend ยท 476 views ยท nodejs, esm, import-meta
What is semantic versioning and how do ^, ~, and exact versions behave?
Backend ยท 282 views ยท nodejs, npm, semver
What is the node:util parseArgs helper for building CLIs?
Backend ยท 226 views ยท nodejs, cli, parseargs
Medium
31 questionsWhat is AbortSignal.timeout and how do you cancel async work cleanly?
Backend ยท 1.2k views ยท nodejs, async, abortcontroller
How do you mock modules, timers, and network calls in Node.js tests?
Backend ยท 1.2k views ยท nodejs, testing, mocking
How do you implement a custom Transform stream?
Backend ยท 1.1k views ยท nodejs, streams, transform
What are npm workspaces and how do you manage a monorepo with them?
Backend ยท 1.1k views ยท nodejs, npm, monorepo
What is a background job queue (BullMQ/Redis) and when do you need one?
System Design ยท 1.1k views ยท nodejs, queue, bullmq
What is the 12-factor app methodology as applied to Node.js services?
System Design ยท 989 views ยท nodejs, architecture, 12-factor
What is Helmet and which HTTP security headers should a Node.js API set?
Backend ยท 951 views ยท nodejs, security, helmet
What is the difference between "type": "module", .mjs, and .cjs?
Backend ยท 934 views ยท nodejs, esm, commonjs
Hard
17 questionsHow do you profile CPU usage with --prof, 0x, or clinic.js flame graphs?
Backend ยท 1.2k views ยท nodejs, performance, profiling
What is a ReDoS (Regular Expression Denial of Service) attack and how do you avoid it?
Backend ยท 1.0k views ยท nodejs, security, redos
What is diagnostics_channel and when would you use it?
Backend ยท 1.0k views ยท nodejs, observability, diagnostics
How do you implement a circuit breaker for unreliable downstream services?
System Design ยท 977 views ยท nodejs, resilience, circuit-breaker
What is SSRF and how do you mitigate it in a Node.js backend?
Backend ยท 835 views ยท nodejs, security, ssrf
What are Single Executable Applications (SEA) in Node.js?
Backend ยท 647 views ยท nodejs, distribution, sea
How does HTTP/2 support work in Node.js and how does it differ from HTTP/1.1?
Backend ยท 489 views ยท nodejs, http2, networking
What are the Web Streams API (ReadableStream/WritableStream) in Node.js and how do they differ from node:stream?
Backend ยท 479 views ยท nodejs, streams, web-streams
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question