n8n-as-code  by EtienneLescot

Empower AI agents with n8n workflow automation

Created 2 months ago
412 stars

Top 71.2% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

n8n-as-code provides an "AI Skill" to empower AI agents with deep n8n workflow understanding and manipulation capabilities. It embeds a comprehensive, pre-built knowledge base of n8n nodes, schemas, and templates, enabling AI agents to interact with n8n without latency or hallucinations. The project facilitates GitOps for workflow lifecycle management and offers TypeScript workflows for enhanced development, targeting developers and AI agents seeking robust automation.

How It Works

The core innovation is the "AI Skill" layer, which embeds 537 n8n nodes (including 104 AI/LangChain nodes) with 100% schema coverage and 7,702 workflow templates directly. This eliminates external API calls for AI understanding, ensuring zero latency and preventing hallucinations. It leverages a CLI (n8nac) and a VS Code extension for seamless integration, supporting GitOps for workflow lifecycle management and a transformer for bidirectional conversion between n8n JSON and type-safe TypeScript workflows.

Quick Start & Requirements

  • VS Code/Cursor/Windsurf: Install the extension from the VS Code Marketplace or Open VSX. Requires an n8n Host and API Key.
  • CLI: Use npx n8nac init for GitOps and scripting. No explicit installation needed. Requires an n8n Host and API Key.
  • Prerequisites: An active n8n instance. Node.js for CLI usage.
  • Documentation: 📖 Documentation, 🚀 Getting Started.

Highlighted Details

  • Extensive Knowledge Base: 537 n8n nodes, 100% schema coverage (10,209 properties), 1,243 documentation pages, and 7,702 workflow templates are embedded for instant AI access.
  • GitOps Workflow Management: Full lifecycle management (pull, push, conflict resolution) of n8n workflows via Git.
  • TypeScript Workflows: Bidirectional conversion between n8n JSON and type-safe TypeScript, enabling better diffs, IntelliSense, and AI readability.
  • VS Code Integration: Embedded n8n canvas, sidebar, and one-click push/pull sync directly within the IDE.

Maintenance & Community

The project utilizes GitHub Actions for CI and provides comprehensive documentation. Contribution guidelines are available, and community engagement is encouraged via GitHub stars.

Licensing & Compatibility

  • License: Apache 2.0.
  • Compatibility: Permissive license suitable for commercial use and integration with closed-source projects.

Limitations & Caveats

  • Claude Code integration is currently in progress.
  • The VS Code extension requires an active workspace to initialize and function correctly.
Health Check
Last Commit

20 hours ago

Responsiveness

Inactive

Pull Requests (30d)
134
Issues (30d)
18
Star History
406 stars in the last 30 days

Explore Similar Projects

Starred by Elvis Saravia Elvis Saravia(Founder of DAIR.AI), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
5 more.

activepieces by activepieces

0.4%
21k
Open-source Zapier alternative for AI workflow automation
Created 3 years ago
Updated 21 hours ago
Feedback? Help us improve.