What problem does it solve?
It eliminates common failures when writing JavaScript in n8n Code nodes—especially wrong return format, confusing $input mode usage, and incorrect webhook field access that causes workflows to break.
Core Features & Use Cases
- Mode selection clarity (All Items vs Each Item): Guides you to pick the right execution mode and access data correctly with $input.all(), $input.first(), and $input.item.
- Correct return format enforcement: Ensures your Code node returns data in the required array-of-items structure using the {json: {...}} wrapper.
- Built-in helper and function mastery: Covers $helpers.httpRequest(), DateTime (Luxon), $jmespath(), and safe access patterns for working with APIs, dates, and JSON.
- Production patterns & error prevention: Provides battle-tested transformation patterns and explains top Code node error scenarios with fixes, including null-checks and expression syntax confusion.
- Webhook data gotcha explained: Fixes the most frequent mistake by clarifying that webhook payloads live under $json.body (or $input.first().json.body).
Quick Start
Ask: "Show me the correct n8n Code node JavaScript to transform webhook POST data under $json.body into an output array of items, and point out any common pitfalls."