npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-inject-license-sdk

v2.21.1

Published

Injected n8n License SDK that unlocks all features and quotas

Readme

n8n-inject-license-sdk

🚀 一个注入的n8n许可证SDK,用于解锁所有企业功能和配额限制

npm version License: MIT

概述

这个包提供了一个与原始 @n8n_io/license-sdk 完全兼容的API接口,但会自动解锁所有n8n企业功能和配额限制。它是开源社区为n8n项目贡献的工具,让用户能够体验n8n的完整功能。

✨ 特性

  • 🔓 解锁所有企业功能:LDAP、SAML、高级权限、工作流历史等
  • 📊 无限配额:用户数量、变量数量、AI积分等全部无限制
  • 🔄 完全兼容:与原始SDK API 100%兼容,无需修改现有代码
  • 🚀 即插即用:只需替换包名即可使用
  • 📝 TypeScript支持:完整的类型定义
  • 🛡️ 非侵入式:不修改n8n核心代码

📦 安装

npm install n8n-inject-license-sdk

🚀 使用方法

方法一:直接替换(推荐)

在你的 package.json 中将:

{
  "dependencies": {
    "@n8n_io/license-sdk": "^2.21.0"
  }
}

替换为:

{
  "dependencies": {
    "n8n-inject-license-sdk": "^2.21.0"
  }
}

然后在代码中修改import语句:

// 从:
import { LicenseManager } from '@n8n_io/license-sdk';

// 改为:
import { LicenseManager } from 'n8n-inject-license-sdk';

方法二:使用npm alias

使用npm的alias功能进行无缝替换:

npm install @n8n_io/license-sdk@npm:n8n-inject-license-sdk@^2.21.0

这样你的代码无需任何修改,原有的import语句仍然有效。

方法三:使用package.json的resolutions/overrides

package.json 中添加:

{
  "overrides": {
    "@n8n_io/license-sdk": "npm:n8n-inject-license-sdk@^2.21.0"
  }
}

或者对于yarn用户:

{
  "resolutions": {
    "@n8n_io/license-sdk": "n8n-inject-license-sdk@^2.21.0"
  }
}

🔧 API 兼容性

此包与原始 @n8n_io/license-sdk 保持100%的API兼容性,支持所有原有的方法和属性:

import { LicenseManager } from 'n8n-inject-license-sdk';

const licenseManager = new LicenseManager(config);

// 所有功能检查都会返回 true
licenseManager.hasFeatureEnabled('feat:sharing'); // ✅ true
licenseManager.hasFeatureEnabled('feat:ldap'); // ✅ true
licenseManager.hasFeatureEnabled('feat:saml'); // ✅ true

// 所有配额检查都会返回无限制
licenseManager.hasQuotaLeft('quota:users', 1000); // ✅ true
licenseManager.getFeatureValue('quota:users'); // ✅ -1 (无限制)

// 许可证状态始终有效
licenseManager.isValid(); // ✅ true
licenseManager.isTerminated(); // ✅ false

🎯 解锁的功能

布尔功能(全部启用)

  • ✅ 分享功能 (feat:sharing)
  • ✅ LDAP集成 (feat:ldap)
  • ✅ SAML单点登录 (feat:saml)
  • ✅ 日志流 (feat:logStreaming)
  • ✅ 高级执行过滤器 (feat:advancedExecutionFilters)
  • ✅ 变量管理 (feat:variables)
  • ✅ 源码控制 (feat:sourceControl)
  • ✅ 外部密钥 (feat:externalSecrets)
  • ✅ 工作流历史 (feat:workflowHistory)
  • ✅ 编辑器调试 (feat:debugInEditor)
  • ✅ S3二进制数据 (feat:binaryDataS3)
  • ✅ 多主实例 (feat:multipleMainInstances)
  • ✅ Worker视图 (feat:workerView)
  • ✅ 高级权限 (feat:advancedPermissions)
  • ✅ 项目角色管理 (feat:projectRole:*)
  • ✅ AI助手 (feat:aiAssistant)
  • ✅ Ask AI (feat:askAi)
  • ✅ 自定义npm注册表 (feat:communityNodes:customRegistry)
  • ✅ AI积分 (feat:aiCredits)
  • ✅ 文件夹 (feat:folders)
  • ✅ 洞察视图 (feat:insights:*)
  • ✅ API密钥作用域 (feat:apiKeyScopes)

配额功能(全部无限制)

  • ♾️ 用户数量 (quota:users)
  • ♾️ 活动工作流 (quota:activeWorkflows)
  • ♾️ 变量数量 (quota:maxVariables)
  • ♾️ 团队项目 (quota:maxTeamProjects)
  • ♾️ AI积分 (quota:aiCredits)
  • ♾️ 工作流历史 (quota:workflowHistoryPrune)
  • ♾️ 洞察数据保留 (quota:insights:*)
  • ♾️ 评估工作流 (quota:evaluations:maxWorkflows)

🔧 在n8n项目中使用

对于开发者

如果你正在开发n8n或基于n8n的项目:

  1. 克隆n8n仓库
  2. 在根目录的 package.json 中添加override:
{
  "overrides": {
    "@n8n_io/license-sdk": "npm:n8n-inject-license-sdk@^2.21.0"
  }
}
  1. 删除 node_modulespnpm-lock.yaml
  2. 重新安装依赖:pnpm install
  3. 启动开发服务器:pnpm dev

对于Docker部署

创建自定义的Dockerfile:

FROM n8nio/n8n:latest

USER root

# 安装注入的许可证SDK
RUN npm install -g n8n-inject-license-sdk@^2.21.0

# 替换原始SDK(需要根据实际路径调整)
RUN rm -rf /usr/local/lib/node_modules/n8n/node_modules/@n8n_io/license-sdk && \
    ln -s /usr/local/lib/node_modules/n8n-inject-license-sdk /usr/local/lib/node_modules/n8n/node_modules/@n8n_io/license-sdk

USER node

⚠️ 重要声明

  1. 仅用于学习和开发:此包仅供学习n8n架构和开发用途使用
  2. 尊重原项目:请尊重n8n团队的商业模式和许可证条款
  3. 生产环境注意:在生产环境中使用前请确认符合相关法律法规
  4. 社区贡献:这是开源社区的贡献,与n8n官方无关

🤝 贡献

欢迎提交Issue和Pull Request来改进这个项目。

📄 许可证

MIT License - 详见 LICENSE 文件

🔗 相关链接


免责声明:此项目与n8n GmbH无关,仅为开源社区贡献。使用者需自行承担使用风险和法律责任。