██╗ ██╗███████╗███╗ ██╗ █████╗ ███╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗██████╗
██║ ██╔╝██╔════╝████╗ ██║██╔══██╗████╗ ██║ ██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔══██╗
█████╔╝ █████╗ ██╔██╗ ██║╚█████╔╝██╔██╗ ██║ ██║ ██║ ██║██║ ██║█████╗ ██████╔╝
██╔═██╗ ██╔══╝ ██║╚██╗██║██╔══██╗██║╚██╗██║ ██║ ██║ ██║██║ ██║██╔══╝ ██╔══██╗
██║ ██╗███████╗██║ ╚████║╚█████╔╝██║ ╚████║ ╚██████╗╚██████╔╝██████╔╝███████╗██║ ██║
╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝ ╚════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝
AI-powered n8n workflow creation agent, built for the terminal.
Transform your n8n workflow building from manual node configuration to natural language descriptions. Built by Ken Kai who specializes in AI automation.
ken8n-coder bridges the gap between natural language workflow descriptions and production-ready n8n automations. Instead of manually configuring nodes and connections, you describe what you want in plain English and get working JavaScript code for n8n's Super Code nodes.
Perfect for:
- Automation engineers building complex JavaScript-based workflows
- Teams standardizing on AI-assisted workflow development
- Rapid prototyping of automation ideas
# Install globally via npm (works on Windows, Mac, and Linux)
npm i -g ken8n-coder@latest
# Launch the terminal interface
ken8n-coder| Feature | Description | Benefit |
|---|---|---|
| Super Code Specialization | Optimized for n8n's Super Code node with 46+ JavaScript libraries | Generate complex automation logic without manual library management |
| Multi-Provider AI | OpenAI, Anthropic Claude, and other models | Choose the best AI for your workflow complexity |
| Terminal TUI | Clean, keyboard-driven interface | Stay in your development flow without context switching |
| Rapid Iteration | Generate, test, and refine workflows quickly | Accelerate development from idea to production |
| Library-Rich Environment | Pre-loaded with utilities, data processing, crypto, and more | Build sophisticated workflows without dependency management |
ken8n-coder specializes in generating JavaScript for n8n's Super Code node environment with these pre-loaded libraries:
lodash, axios, cheerio, dayjs, moment, uuid, nanoid, bytes joi/Joi, validator, Ajv, yup, csvParse, papaparse/Papa, xml2js, XMLParser, YAML, ini, toml, qs Handlebars, stringSimilarity, slug, pluralize, fuzzy CryptoJS, forge, jwt, bcrypt, bcryptjs XLSX, pdfLib, archiver, Jimp, QRCode FormData, phoneNumber, iban ethers, web3 ytdl, ffmpeg, ffmpegStaticInstall ken8n-coder globally using npm. This universal method works on Windows, Mac, and Linux:
# Install with npm (recommended)
npm i -g ken8n-coder@latest
# Alternative package managers also work
bun add -g ken8n-coder@latest
pnpm add -g ken8n-coder@latest
yarn global add ken8n-coder@latestken8n-coder
/new
</pattern>
<pattern name="session-management">
```bash
# Save current work
/sessions
# Resume previous session
/sessions
# Select from list of saved sessions
# Continue iterating on workflow
Input: "Process CSV uploads, validate email fields with joi, transform data using lodash, and export to XLSX"
Output: Complete n8n workflow with Super Code nodes containing:
- CSV parsing with papaparse
- Email validation with joi
- Data transformation with lodash utilities
Input: "Fetch data from REST API, handle authentication with JWT, process responses, and store in database"
Output: n8n workflow featuring:
- axios HTTP client configuration
- JWT token handling
- Data validation and processing
Input: "Monitor webhook for events, filter based on criteria, format messages with templates, send via multiple channels"
Output: Workflow with:
- Webhook trigger configuration
- Event filtering logic
- Handlebars template processing
- Multi-channel notification delivery
ken8n-coder uses a configuration file at ken8n-coder.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/sse"
}
}
}ken8n-coder welcomes contributions focused on n8n workflow excellence:
-
Super Code enhancements - New library integrations or code patterns
-
Workflow templates - Common automation patterns for the community
-
n8n node support - Expanding beyond Super Code to other node types
-
AI model optimization - Better prompts and model configurations
-
Documentation - Usage guides and best practices
git clone https://github.com/kenkaiii/ken8n-coder.git
cd ken8n-coder
bun install
bun devRequirements:
- Bun (package manager)
- Golang 1.24.x
- n8n instance (for testing workflows)
| Traditional n8n | ken8n-coder |
|---|
| Manual node configuration | Natural language descriptions | | Copy/paste code snippets | AI-generated, optimized JavaScript | | Trial and error with libraries | 46+ libraries pre-configured | | Individual workflow building | Consistent, shareable patterns | | Context switching between docs | Terminal-focused development |
- GitHub Discussions: Share workflows and get help
- Issues: Report bugs or request features
- Wiki: Documentation and guides
Built by Ken Kai • Specialized in AI automation • MIT Licensed