Description
n8n-nodes-layerre
This is an n8n community node for Layerre – a platform for creating templates and variants from Canva designs.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Usage
Contributing
License
Installation
Follow the installation guide in the n8n community nodes documentation.
npm install n8n-nodes-layerre
Operations
Template
- Create – Create a new template from a Canva design URL
- Get – Get a template by ID with all its layers
- Get Many – List all templates for the current user
- Delete – Delete a template
- Create – Create a new variant with layer overrides (text, images, colors, positions, etc.)
- Create Bulk – Create many variants in one request, with optional combined PDF output
- Get – Get a variant by ID
- Get Many – List all variants for a template
- Delete – Delete a variant
Variant
Credentials
To use this node, you need a Layerre API key:
1. Log in to your Layerre account
2. Go to API Keys
3. Create a new API key
4. Copy the key (starts with lyr_)
In n8n:
1. Go to Credentials → Add Credential
2. Search for “Layerre API”
3. Paste your API key
Usage
Creating a Template from Canva
1. Add the Layerre node to your workflow
2. Select Template as the resource
3. Select Create as the operation
4. Paste your Canva share URL (e.g., https://www.canva.com/design/...)
5. Execute the node
The node will return the template with all extracted layers.
Creating a Variant with Overrides
1. Add the Layerre node to your workflow
2. Select Variant as the resource
3. Select Create as the operation
4. Choose a template from the dropdown (dynamically loaded from your account)
5. (Optional) Set page number for multi-page templates (0-based index)
6. (Optional) Set variant dimensions (width/height) to override the template size
7. Add layer overrides:
– Select a layer from the dropdown (dynamically loaded from the selected template)
– Configure override options:
– Text layers: text content, color, font name, font size, font weight, italic, underline, text align, letter spacing, line spacing
– Image layers: image URL, opacity, flip horizontal/vertical
– All layers: position (x, y), size (width, height), rotation, color
8. Execute the node
The node will render the variant and return the image URL.
Creating Variants in Bulk
1. Add the Layerre node to your workflow
2. Select Variant as the resource
3. Select Create Bulk as the operation
4. Choose a template and export type (PDF recommended for combined output)
5. (Optional) Enable Combine Into One PDF when export type is PDF
6. Add one or more items, each with optional page number, dimensions, and layer overrides
7. Execute the node
The response includes results, totalcreated, totalfailed, and when combinepdf is enabled, combinedpdf with url and a persisted variant record.
Example: Bulk Image Generation
[Spreadsheet] → [Loop Over Items] → [Layerre: Create Variant] → [Download Image]
Use data from a spreadsheet to create personalized images at scale by mapping columns to layer overrides.
Contributing
Contributions are welcome! Here’s how to get started:
Development Setup
1. Fork the repository on GitHub
2. Clone your fork:
git clone https://github.com/YOUR_USERNAME/n8n-nodes-layerre.git
cd n8n-nodes-layerre
3. Install dependencies:
npm install
4. Install n8n globally:
npm install n8n -g
5. Start development mode (runs n8n with the node loaded):
npm run dev
5. Make your changes and test in the n8n UI
Building
npm run build
Linting
npm run lint
npm run lint:fix # Auto-fix issues
Submitting Changes
1. Create a feature branch (git checkout -b feature/amazing-feature)
3. Commit your changes (git commit -m 'Add amazing feature')
4. Push to the branch (git push origin feature/amazing-feature)
5. Open a Pull Request