How to Build Custom n8n Nodes (Full Dev Setup + Deploy)

Опубликовано: 20 Май 2026
на канале: Roland Lopez
299
2

Find me here: rolandsoftwares.com

n8n doesn't have a random number generator. So I built one — and I'll show you exactly how.

In this tutorial, you'll learn how to create custom n8n nodes from scratch, test them locally with Docker, and deploy them to production using Kamal.

🔗 GitHub repo with starter code: https://github.com/letItCurl/n8n-cust...

⏱️ Timestamps:
0:00 - Why build custom nodes?
0:45 - Random number generator demo
2:00 - Project structure walkthrough
3:30 - Understanding node code (TypeScript)
5:30 - Node properties and display options
7:00 - Execute function and error handling
8:30 - Local development with Docker
10:00 - Deploy with Kamal (setup server)
14:00 - Custom credentials
15:30 - Final demo in production

📌 What you'll build:
Random integer generator
Random float generator
Multiple random numbers (unique series)

📌 Tools used:
Docker + Docker Compose
pnpm (package manager)
Kamal (deployment)
Digital Ocean (hosting)
CloudFlare (DNS)

This is for developers who want to extend n8n beyond the built-in nodes. If you can read TypeScript, you can build custom nodes.

#n8n #customnode #automation #typescript #kamal