n8n-nodes-licensekit
v0.1.0
Published
n8n community node for LicenseKit runtime operations
Maintainers
Readme
n8n-nodes-licensekit
This is an n8n community node that provides LicenseKit runtime operations for workflow automation.
n8n is a fair-code licensed workflow automation platform.
LicenseKit is a modern licensing API for software vendors.
Installation
Community Nodes (Recommended)
- Go to Settings > Community Nodes in n8n
- Select Install
- Enter
n8n-nodes-licensekitin the npm Package Name field - Click Install
Manual Installation
npm install n8n-nodes-licensekitOperations
License Operations
- Activate: Bind license to a device and activate it
- Validate: Validate license status and refresh timestamps
- Check: Check entitlements without updating timestamps (lightweight)
- Consume: Record metered feature usage with idempotency
- Deactivate: Release device binding
- Offline: Issue encrypted offline license envelope
Floating License Operations
- Checkout: Acquire a floating license lease
- Checkin: Release a floating license lease
- Heartbeat: Refresh floating license lease to extend expiry
Credentials
To use this node, you need:
- License Key: Your LicenseKit runtime license key (starts with
lsk_orLK-) - Base URL: Your LicenseKit API endpoint (default:
https://api.licensekit.dev)
Get your license key from your LicenseKit dashboard or by creating a license via the management API.
Example Workflows
Basic License Validation
- Add the LicenseKit node to your workflow
- Configure credentials with your license key
- Select License resource and Validate operation
- Provide device fingerprint (e.g., hardware ID)
- The node returns license status, features, and entitlements
Access response data in subsequent nodes:
{{$json["data"]["status"]}} # License status (e.g., "active")
{{$json["data"]["device_id"]}} # Device ID
{{$json["data"]["features"]}} # Array of feature entitlements
{{$json["data"]["expires_at"]}} # Expiration timestamp
{{$json["meta"]["request_id"]}} # Request ID for debuggingMetered Usage Tracking
Track API calls or feature consumption:
- Add LicenseKit node with Consume operation
- Set Feature Code to your metered feature (e.g.,
api_calls) - Set Event ID to a unique identifier for idempotency
- Set Amount to the quantity consumed (default: 1)
- The response includes updated
consumedandremainingcounts
Example Event ID expression:
evt_{{$json["request_id"]}}Floating License Workflow
Manage concurrent license leases:
- Checkout: Acquire a lease and get
lease_token - Heartbeat: Periodically refresh the lease
- Checkin: Release the lease when done
Lease token reference:
{{$json["data"]["lease_token"]}}Response Format
All runtime operations return signed responses with this structure:
{
"data": {
"license_id": "lic_...",
"status": "active",
"device_id": "dev_...",
"features": [
{
"code": "api_access",
"enabled": true
},
{
"code": "api_calls",
"quota": 10000,
"consumed": 42,
"remaining": 9958
}
],
"issued_at": "2026-03-25T10:30:00Z",
"next_check_at": "2026-03-26T10:30:00Z"
},
"signature": {
"alg": "Ed25519",
"kid": "key_...",
"value": "base64-encoded-signature"
},
"meta": {
"request_id": "req_...",
"timestamp": "2026-03-25T10:30:00Z"
}
}Error Handling
The node provides detailed error messages for common scenarios:
- 401 UNAUTHORIZED_LICENSE: Invalid license key
- 403 FORBIDDEN_RUNTIME: License suspended, expired, or limit reached
- 404 NOT_FOUND: License or device not found
- 409 CONFLICT: Duplicate event_id in consume operation
- 422 VALIDATION_ERROR: Invalid request parameters
Enable Continue On Fail in node settings to handle errors gracefully in your workflow.
Use Cases
- License Validation: Verify software licenses before granting access
- Metering: Track API calls, processing time, or resource consumption
- Device Management: Activate/deactivate licenses on specific devices
- Floating Licenses: Manage concurrent user sessions
- Offline Licensing: Issue time-limited offline licenses
- Feature Gating: Check entitlements for premium features
Resources
Support
For issues or questions:
- GitHub Issues: https://github.com/drmain1/n8n-nodes-licensekit/issues
- LicenseKit Support: [email protected]
License
MIT
Version
Current version: 0.1.0
This is an early release. The API is stable, but additional features may be added based on community feedback.
