Activepieces vs n8nPublished 9 min read
Activepieces vs n8n: what changes when you build your own connectors
Most comparisons stop at integration counts and pricing pages. When the connector you need does not exist, other questions decide: what the license lets you do, how authentication and polling are written, and how a private connector reaches your instance. I have built Activepieces pieces that run in production, including one for a portal with no API. The n8n side of this comparison comes from its official documentation and source code.
Short answer
- Licensing: Activepieces is MIT, except its enterprise folders, which need a paid license in production. n8n uses the Sustainable Use License: you can run it for your own business and charge clients to build workflows, but not host it so clients build their own.
- Self-hosting: both run with Docker Compose and scale with workers that take jobs from Redis. Governance features such as SSO, Git sync and projects are paid in both.
- Custom connectors: both are TypeScript npm packages. Activepieces adds a polling helper that deduplicates for you; an n8n polling trigger keeps its own state.
- If the target has no API at all, the pattern matters more than the tool: queue the work and let a browser extension run it in the user’s own session.
At a glance
- License
- ActivepiecesMIT, except
packages/ee(commercial license in production) - n8nSustainable Use License;
.ee.files under the n8n Enterprise License - Default database
- ActivepiecesPostgres in the Docker Compose setup
- n8nSQLite; Postgres recommended in production
- Scaling
- ActivepiecesWorkers take jobs from Redis
- n8nQueue mode: Redis broker and
n8n workerprocesses - Custom connector
- ActivepiecesA piece: TypeScript npm package built with
createPiece - n8nA node: TypeScript npm package named
n8n-nodes-*, declarative or programmatic - Polling triggers
- Activepieces
pollingHelperwithTIMEBASEDorLAST_ITEMdeduplication - n8nA
poll()method; state and deduplication written by hand - Code step
- ActivepiecesTypeScript, with npm packages declared per step
- n8nJavaScript and Python; external npm modules on self-hosted only
- Integrations (official count)
- Activepieces770+ pieces
- n8n500+ native integrations
- Cloud billing unit
- ActivepiecesCredits: one run is one credit, AI steps cost more
- n8nWorkflow executions per month
| Activepieces | n8n | |
|---|---|---|
| License | MIT, except packages/ee (commercial license in production) | Sustainable Use License; .ee. files under the n8n Enterprise License |
| Default database | Postgres in the Docker Compose setup | SQLite; Postgres recommended in production |
| Scaling | Workers take jobs from Redis | Queue mode: Redis broker and n8n worker processes |
| Custom connector | A piece: TypeScript npm package built with createPiece | A node: TypeScript npm package named n8n-nodes-*, declarative or programmatic |
| Polling triggers | pollingHelper with TIMEBASED or LAST_ITEM deduplication | A poll() method; state and deduplication written by hand |
| Code step | TypeScript, with npm packages declared per step | JavaScript and Python; external npm modules on self-hosted only |
| Integrations (official count) | 770+ pieces | 500+ native integrations |
| Cloud billing unit | Credits: one run is one credit, AI steps cost more | Workflow executions per month |
Figures and features as stated by each project on the date at the end of this article. Integration counts are each vendor’s own and are not counted the same way.
Licensing: an MIT core vs the Sustainable Use License
The Activepieces license is split by folder. Everything under packages/ee and packages/server/api/src/app/ee falls under a separate enterprise license; everything else is MIT. The enterprise license allows development and testing without a subscription, but production use needs a valid license for the number of seats. Those folders hold, among others, SSO, audit logs, API keys, the embedding SDK and custom branding.
Several comparisons say the MIT license lets you embed and white-label Activepieces for free. The embedding SDK and custom branding sit in the enterprise part, so check the license before you plan a product around them.
n8n describes itself as fair-code rather than open source. Its Sustainable Use License limits use to your own internal business purposes, or to non-commercial and personal use. Files with .ee. in their name need the n8n Enterprise License. The official license FAQ is more concrete than the license text:
- Allowed: charging clients for workflow creation, setup and maintenance, and using n8n behind the scenes in your own product.
- Not allowed: hosting n8n as a service where your clients build workflows, or white-labeling n8n.
- The test n8n gives is who controls the workflow logic. Clients triggering workflows you built, through an API or a webhook, is fine.
For a team automating its own work, or a freelancer building and maintaining client workflows, both licenses work. The difference shows up when end users build the automations themselves: that needs a commercial agreement with n8n, and the embedding features of Activepieces are in its paid part too. For edge cases, n8n asks you to write to license@n8n.io.
Self-hosting and what stays paid
Activepieces recommends Docker Compose. It also offers an install script, and a Helm chart if you already run a Kubernetes cluster. The Compose setup has four containers: the app, a worker that runs flows, Postgres and Redis. Code steps run unsandboxed by default (AP_EXECUTION_MODE=UNSANDBOXED). The docs present SANDBOX_CODE_ONLY as the only mode that is both safe for multiple tenants and able to run in an unprivileged container.
n8n uses SQLite by default. Its Docker Compose guide has no database service and tells you to switch to Postgres for production. To scale, queue mode (EXECUTIONS_MODE=queue) puts executions in Redis and lets n8n worker processes pick them up. The docs advise against queue mode on SQLite, and multi-main setups are an Enterprise feature.
Both keep team and governance features behind a license. The n8n Community edition has no SSO, environments, external secrets, log streaming, projects, sharing or Git version control. The Activepieces license key unlocks projects, SSO, roles, audit logs, secret managers, piece management, Git sync, worker groups and embedding. List the features you actually need before you compare prices.
Custom connectors: pieces vs nodes
In Activepieces, npm run cli pieces create scaffolds a piece, then npm run cli actions create and npm run cli triggers create add the parts. A piece is one createPiece call that lists its authentication, actions and triggers. Inputs are typed properties: text, dropdowns, files. Dropdowns can load their options from the API and refresh when another field changes. That is how the EDOF piece only asks for a certification type when the offer prepares for a certification.
In n8n, npm create @n8n/node@latest scaffolds a node package. Declarative style, where requests are described as JSON routing, is the default for new nodes. Trigger nodes must use the programmatic style. Credentials live in their own class that implements ICredentialType, with an authenticate block that injects the secret into headers, body or query string, and a test request. The package name must start with n8n-nodes-.
Installing a private connector on your own instance works very differently. Activepieces states that private piece installation needs its paid edition, published with npm run publish-piece-to-api or a CI sync. My pieces were developed in a checkout of the Activepieces repository, under packages/pieces/custom. n8n loads private nodes from ~/.n8n/custom or the N8N_CUSTOM_EXTENSIONS path. Owners can install public community nodes from the interface, but queue mode and private npm packages require a manual install, and unverified community nodes are not available on n8n Cloud.
Defining authentication once, for every flow
In Activepieces, a piece declares its authentication once with PieceAuth, and every action and trigger of the piece reuses it. SecretText covers the common case of a single API key, shown as a masked field. CustomAuth groups several fields when one key is not enough.
The CFA Convergence API needs both: an API key sent in a header and an OAuth client-credentials pair to get a bearer token. So the piece asks for three fields in one CustomAuth, and its HTTP helper requests a token before each call. Here is the shape, simplified:
export const portalAuth = PieceAuth.CustomAuth({
required: true,
props: {
apiKey: PieceAuth.SecretText({ displayName: 'API key', required: true }),
clientId: Property.ShortText({ displayName: 'Client ID', required: true }),
clientSecret: PieceAuth.SecretText({ displayName: 'Client secret', required: true }),
},
// Runs when the user saves the connection: one cheap authenticated call.
validate: async ({ auth }) => {
try {
await fetchApi('v1/dossiers', 'GET', auth);
return { valid: true };
} catch {
return { valid: false, error: 'Invalid credentials' };
}
},
});SecretText inside CustomAuth so they are masked, and await the test call in validate. Without the await, the error is caught too late and every connection looks valid.For the EDOF piece, a single SecretText was enough: the key authenticates against our own API, and validate checks it there before the connection is saved.
Polling triggers when the API has no events
Many business APIs have no webhooks, so “a contract was validated” has to be detected by asking again and again. Activepieces ships a polling helper in @activepieces/pieces-common with two deduplication strategies. DedupeStrategy.LAST_ITEM remembers the ID of the newest item. DedupeStrategy.TIMEBASED stores the time of the last poll and only emits items whose epochMilliSeconds is later.
TIMEBASED assumes the API gives you a reliable date for each item. The CFA Convergence endpoint I polled returns the apprenticeship files currently in a given state, with no date for the state change. My trigger therefore keeps the IDs it has already seen in the piece store, emits only the new ones, and stamps them with the current time so the helper lets them through:
const polling: Polling<AuthValue, Record<string, never>> = {
strategy: DedupeStrategy.TIMEBASED,
items: async ({ auth, store }) => {
const current = await listFilesInState(auth, 'ENGAGE');
// Default scope: this flow only.
const seen = (await store.get<string[]>('seen')) ?? [];
const fresh = current.filter((f) => !seen.includes(f.id));
await store.put('seen', current.map((f) => f.id));
// No change date in the API: the diff above deduplicates,
// and "now" is always later than the last poll.
return fresh.map((f) => ({ epochMilliSeconds: Date.now(), data: f }));
},
};
export const fileValidated = createTrigger({
auth: portalAuth,
name: 'file_validated',
displayName: 'File validated',
type: TriggerStrategy.POLLING,
props: {},
sampleData: {},
onEnable: (ctx) => pollingHelper.onEnable(polling, ctx),
onDisable: (ctx) => pollingHelper.onDisable(polling, ctx),
run: (ctx) => pollingHelper.poll(polling, ctx),
});Watch the store scope. It defaults to the flow, and StoreScope.PROJECT is shared by every flow in the project. My production trigger keeps its list in project scope, which works while one flow uses it. With two flows, the first one to poll would record the new file and the second would never fire for it.
n8n has no shared helper for this. A polling trigger node sets polling: true and implements poll(). The official Airtable trigger, for example, saves lastTimeChecked with this.getWorkflowStaticData('node') and filters records by it. The node building guides do not document poll(), so the existing trigger nodes are the reference, and deduplication is your own code.
When the target has no API: queue the work
EDOF, the French portal where training providers publish CPF-funded offers, had no official API for the actions we needed. The only way in was the user’s own logged-in session in the browser. A connector running on a server cannot use that session, so the EDOF piece does not call EDOF at all.
- Each action (create, update, archive or delete an offer, create a session, open recruitment) sends a task to our API: a type such as
edof-archive-trainingand a JSON payload, tagged with the Activepieces project ID. - The team’s Chrome extension receives tasks as server-sent events through Mercure, and fetches any pending ones when it starts.
- If the user is connected to EDOF, the extension marks the task as started, runs it inside that session, and deletes it once it succeeds.
- The extension also mirrors EDOF reference data, such as addresses and contacts, back to the API. The piece’s dropdowns read that mirror, so users pick real EDOF records in the flow builder.
The design choice that matters is reporting what actually happened. The action succeeds once the task is queued, and its output says so: the offer will be archived at the next sync through the extension. A flow should never treat “queued” as “done in EDOF”.
Nothing in this pattern depends on Activepieces. In n8n, the same actions would be a custom node, or HTTP Request nodes, that write tasks to the same API. The extension and the queue do the hard part, whichever tool sits in front.
Which one should you choose?
- n8n if your team wants Python in code steps, already knows n8n, or if you sell workflow setup and maintenance to clients who will not edit the workflows themselves.
- Activepieces if you will write and maintain several connectors yourself: authentication, dynamic dropdowns and polling deduplication come with the framework, and the core is MIT. Budget for the paid edition if you need private pieces, SSO or embedding.
- Neither, if the integration is part of what you sell, or must handle volume and edge cases precisely. Then it belongs in your own code, as with the DATEV integration.
In both tools, the connector takes most of the work: the API’s authentication, its missing events, and sometimes its complete absence. That is why the integrations I build start from the target API, not from the tool.
Sources
Product facts checked against the official documentation and repositories. Last checked on .
- Activepieces: LICENSE (MIT and enterprise folders)
- Activepieces: enterprise license (packages/ee)
- Activepieces docs: features unlocked by the license key
- Activepieces docs: Docker Compose
- Activepieces docs: environment variables
- Activepieces docs: sandboxing
- Activepieces docs: piece authentication
- Activepieces docs: polling triggers
- Activepieces docs: private fork and private pieces
- Activepieces docs: publish a piece to your instance
- Activepieces docs: MCP tools (Code step npm packages)
- Activepieces: homepage (770+ pieces)
- Activepieces: pricing
- n8n: LICENSE.md
- n8n docs: Sustainable Use License
- n8n docs: license FAQ
- n8n docs: Community edition features
- n8n docs: Docker Compose
- n8n docs: queue mode
- n8n docs: choose a node building style
- n8n docs: the n8n-node tool
- n8n docs: credentials files
- n8n docs: building community nodes
- n8n docs: installing community nodes
- n8n docs: installing private nodes
- n8n source: Airtable polling trigger
- n8n docs: Code node
- n8n: homepage (500+ integrations)
- n8n: pricing