n8n is a fair-code licensed, node-based workflow automation platform with native AI capabilities. With over 181K GitHub stars, it is the #1 JavaScript Rising Stars project of 2025, enabling technical teams to combine visual no-code building with custom JavaScript code across 400+ integrations.
automation workflow javascript ai-agents self-hosted low-code
n8n (pronounced “n-eight-n”, short for “nodemation”) was launched in 2019 and has grown into the leading open-source alternative to proprietary automation tools like Zapier. What distinguishes n8n is its hybrid approach: a drag-and-drop visual interface for rapid prototyping combined with full JavaScript code access in Function nodes for custom logic. In 2024-2025, n8n added native AI agent capabilities, making it a powerful platform for building LLM-powered automation workflows. Backed by Sequoia and Highland Capital ($55M Series B), n8n has surpassed 100M Docker pulls.
n8n uses a node-based architecture where workflows are directed graphs of connected nodes:
Infrastructure:
Each node processes JSON data streams with support for parallel execution, branching logic, and error boundaries. The platform runs on Postgres for state persistence and Redis for caching and queue management.
Example of an AI agent workflow using n8n's JavaScript Function node:
# Python script to trigger an n8n webhook-based AI workflow import requests webhook_url = "https://your-n8n.example.com/webhook/ai-agent" payload = { "query": "Summarize the latest news about AI agents", "context": { "max_tokens": 500, "model": "gpt-4o" } } response = requests.post(webhook_url, json=payload) result = response.json() print(f"Agent response: {result['output']}")
| Method | Description |
|---|---|
| Docker | docker run -it –rm -p 5678:5678 n8nio/n8n |
| Docker Compose | Full stack with Postgres + Redis for production |
| Kubernetes | Helm charts for scalable deployment |
| Node.js | npx n8n for quick local development |
| n8n Cloud | Managed hosting for convenience |
n8n topped the JavaScript Rising Stars 2025 rankings due to: