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

@vandevlinalfonso/n8n-nodes-cycode

v0.1.3

Published

n8n nodes for Cycode security platform integration

Downloads

14

Readme

n8n-nodes-cycode

This is an n8n community node for integrating with Cycode, a comprehensive security platform for detecting and preventing secrets, vulnerabilities, and security misconfigurations in your code.

n8n is a fair-code licensed workflow automation platform.

Features

  • Automatic Token Management: Handles JWT token generation and refresh automatically
  • Secure Credential Storage: Client ID and Secret are stored securely with password protection
  • Token Caching: Reuses valid tokens to reduce API calls
  • Configurable Base URL: Support for different Cycode instances or environments
  • Built-in Testing: Validates credentials during setup

Installation

Follow the installation guide in the n8n community nodes documentation.

Option 1: Install via npm (Recommended)

npm install @vandevlinalfonso/n8n-nodes-cycode

Option 2: Manual Installation (for development)

cd ~/.n8n/custom
git clone https://github.com/vandevlinalfonso/n8n-nodes-cycode.git
cd n8n-nodes-cycode
npm install
npm run build

Prerequisites

Before using this node, you need:

  1. A Cycode account
  2. API credentials (Client ID and Secret Key)

Getting Cycode API Credentials

  1. Log in to your Cycode dashboard
  2. Navigate to SettingsAPI Keys
  3. Click Create API Key
  4. Copy your Client ID and Secret Key
  5. Store them securely - the Secret Key is only shown once

Configuration

Setting up Credentials in n8n

  1. In n8n, go to CredentialsNew
  2. Search for "Cycode API"
  3. Enter your credentials:
    • Client ID: Your Cycode API Client ID
    • Secret Key: Your Cycode API Secret Key
    • API Base URL (optional): Default is https://api.cycode.com
  4. Click Save and Test

The credential will automatically:

  • Fetch a JWT token from Cycode
  • Store the token securely
  • Refresh the token automatically before expiry
  • Handle authentication for all Cycode API requests

Usage

Once credentials are configured, you can use Cycode with HTTP Request nodes in your workflows.

Example: Get Violations

Use the HTTP Request node with Cycode API credentials to fetch violations and other security data.

How It Works

Token Management

The credential implementation uses a sophisticated token management system:

  1. Initial Authentication: When first used, the node exchanges your Client ID and Secret for a JWT token
  2. Token Caching: The token is stored as a hidden field in the credential
  3. Auto-Refresh: Before each API call, the node checks if the token is still valid (with a 5-minute buffer)
  4. Seamless Renewal: If the token is expired or about to expire, it's automatically refreshed without user intervention

Security Features

  • Password Protection: Secret Key is masked in the UI
  • Hidden Token Storage: JWT tokens are stored as hidden fields
  • Encrypted at Rest: n8n encrypts all credential data
  • Automatic Rotation: Tokens are refreshed automatically

API Coverage

This package currently provides credentials for Cycode API authentication. You can use it with:

  • HTTP Request node with Cycode API endpoints
  • Custom Cycode operation nodes (when implemented)

Supported Cycode APIs

With these credentials, you can access:

  • Secrets Detection API: Scan for exposed secrets
  • SCA (Software Composition Analysis) API: Analyze dependencies
  • SAST (Static Application Security Testing) API: Scan code for vulnerabilities
  • IaC (Infrastructure as Code) API: Check infrastructure configurations
  • Violations API: Retrieve and manage security violations
  • Projects API: Manage Cycode projects
  • Users API: User management

Troubleshooting

"Authentication failed" error

Cause: Invalid Client ID or Secret Key

Solution:

  1. Verify your credentials in the Cycode dashboard
  2. Ensure you copied the entire Secret Key (it's long!)
  3. Check that the API key hasn't been revoked
  4. Try creating a new API key

Token refresh failures

Cause: Network issues or Cycode API downtime

Solution:

  1. Check your internet connection
  2. Verify Cycode API status
  3. Try saving the credential again to force a token refresh

"No token received" error

Cause: API response format changed or network issue

Solution:

  1. Update to the latest version of this package
  2. Check Cycode API documentation for changes
  3. Report the issue on GitHub

Development

Building from Source

git clone https://github.com/vandevlinalfonso/n8n-nodes-cycode.git
cd n8n-nodes-cycode
npm install
npm run build

File Structure

n8n-nodes-cycode/
├── credentials/
│   ├── CycodeApi.credentials.ts    # Main credential implementation
│   └── cycode.svg                   # Cycode logo
├── nodes/
│   └── Cycode/                      # Future node implementations
├── package.json
├── tsconfig.json
└── README.md

Compatibility

  • Minimum n8n version: 1.0.0
  • Node.js: >=20.15
  • Tested with: n8n 1.82.0+

Resources

License

MIT

Changelog

0.1.0 (Initial Release)

  • Cycode API credential support with automatic JWT token management
  • Token auto-refresh with 5-minute buffer
  • Configurable base URL for different Cycode instances
  • Built-in credential testing

Built with ❤️ for the n8n and Cycode communities