my-n8n-node

Custom n8n node: my-n8n-node

Package Information

Released: 10 mo ago
Downloads: 2 weekly / 85 monthly
Latest Version: 0.1.4

Documentation

my-n8n-node

Custom n8n node scaffolded manually (without the official npm create @n8n/node generator).

Structure

  • src/MyN8nNode.node.ts – simple example node that adds a text field to each incoming item.
  • src/index.ts – exports the node so n8n can load it.
  • dist/ – compiled JavaScript output after running the build.

Scripts

  • npm run build – compile TypeScript to dist/.
  • npm run dev – compile in watch mode.

Usage

  1. Install dependencies:

    npm install
    
  2. Build:

    npm run build
    
  3. Link into your n8n instance (from this directory):

    npm link
    

    Then, from within your n8n installation directory:

    npm link n8n-nodes-my-n8n-node
    
  4. Restart n8n and look for My N8n Node in the node list.

Discussion