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

@velocity-bpa/n8n-nodes-segment-cdp

v1.0.0

Published

n8n community node for Segment CDP - Customer Data Platform for data collection, unification, and activation

Readme

n8n-nodes-segment-cdp

[Velocity BPA Licensing Notice]

This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).

Use of this node by for-profit organizations in production environments requires a commercial license from Velocity BPA.

For licensing information, visit https://velobpa.com/licensing or contact [email protected].

This n8n community node provides comprehensive integration with Segment CDP (Customer Data Platform), offering 7 core resources for complete customer data management. Automate workspace configuration, source and destination management, tracking plan implementation, user data operations, privacy compliance through deletion and suppression controls, and event tracking workflows.

n8n Community Node License TypeScript Segment CDP Customer Data Platform Privacy Compliance

Features

  • Workspace Management - Create, configure, and manage Segment workspaces with full access control
  • Source Integration - Connect and manage data sources including web, mobile, server, and cloud apps
  • Destination Orchestration - Configure and control data flow to marketing, analytics, and storage destinations
  • Tracking Plan Enforcement - Implement and validate event schemas for consistent data governance
  • User Data Operations - Comprehensive user profile management and segmentation capabilities
  • Privacy Compliance - Automated deletion and suppression workflows for GDPR, CCPA compliance
  • Event Tracking - Real-time event collection, validation, and routing across your data stack
  • API Key Authentication - Secure access using Segment API tokens with workspace-level permissions

Installation

Community Nodes (Recommended)

  1. Open n8n
  2. Go to SettingsCommunity Nodes
  3. Click Install a community node
  4. Enter n8n-nodes-segment-cdp
  5. Click Install

Manual Installation

cd ~/.n8n
npm install n8n-nodes-segment-cdp

Development Installation

git clone https://github.com/Velocity-BPA/n8n-nodes-segment-cdp.git
cd n8n-nodes-segment-cdp
npm install
npm run build
mkdir -p ~/.n8n/custom
ln -s $(pwd) ~/.n8n/custom/n8n-nodes-segment-cdp
n8n start

Credentials Setup

| Field | Description | Required | |-------|-------------|----------| | API Token | Segment Public API token with workspace permissions | ✅ | | Workspace ID | Target workspace identifier for operations | ✅ | | Environment | API environment (production/development) | ✅ |

Resources & Operations

1. Workspace

| Operation | Description | |-----------|-------------| | Get | Retrieve workspace details and configuration | | Update | Modify workspace settings and permissions | | List Users | Get all users with workspace access | | Invite User | Send workspace invitation to new users | | Remove User | Revoke user access from workspace |

2. Source

| Operation | Description | |-----------|-------------| | Create | Create new data source (web, mobile, server, cloud) | | Get | Retrieve source configuration and metadata | | Update | Modify source settings and collection parameters | | Delete | Remove source and stop data collection | | List | Get all sources in workspace | | Get Schema | Retrieve source event schema and tracking plan |

3. Destination

| Operation | Description | |-----------|-------------| | Create | Create new destination connection | | Get | Retrieve destination configuration and status | | Update | Modify destination settings and mappings | | Delete | Remove destination and stop data flow | | List | Get all destinations in workspace | | Toggle | Enable or disable destination data flow |

4. Tracking Plan

| Operation | Description | |-----------|-------------| | Create | Create new tracking plan with event schema | | Get | Retrieve tracking plan details and rules | | Update | Modify tracking plan schema and validation rules | | Delete | Remove tracking plan and validation | | List | Get all tracking plans in workspace | | Validate | Validate events against tracking plan schema |

5. User

| Operation | Description | |-----------|-------------| | Get Profile | Retrieve user profile and computed traits | | Update Traits | Modify user traits and attributes | | Delete | Remove user profile and associated data | | List Segments | Get user segment memberships | | Track Event | Send user event to Segment | | Get Events | Retrieve user event history |

6. Deletion and Suppression

| Operation | Description | |-----------|-------------| | Create Request | Submit user data deletion request | | Get Request | Check deletion request status | | List Requests | Get all deletion requests | | Suppress User | Add user to suppression list | | Unsuppress User | Remove user from suppression list | | List Suppressed | Get all suppressed users |

7. Event

| Operation | Description | |-----------|-------------| | Track | Send track event with properties | | Page | Send page view event | | Screen | Send mobile screen view event | | Identify | Send user identification event | | Group | Send group membership event | | Alias | Create user identity alias |

Usage Examples

// Track user signup event
{
  "userId": "user_12345",
  "event": "User Signed Up",
  "properties": {
    "plan": "premium",
    "source": "landing_page",
    "campaign": "summer_2024"
  },
  "context": {
    "ip": "192.168.1.1",
    "userAgent": "Mozilla/5.0..."
  }
}
// Create marketing destination
{
  "name": "Facebook Conversions API",
  "sourceId": "js_abc123",
  "config": {
    "pixelId": "1234567890",
    "accessToken": "EAABwzLixnjy...",
    "testEvents": false
  },
  "enabled": true
}
// Submit GDPR deletion request
{
  "userId": "user_12345",
  "regulation": "gdpr",
  "attributes": {
    "email": "[email protected]",
    "phone": "+1234567890"
  },
  "workspace": "workspace_abc123"
}
// Update user traits
{
  "userId": "user_12345",
  "traits": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "[email protected]",
    "plan": "enterprise",
    "lastLogin": "2024-01-15T10:30:00Z"
  }
}

Error Handling

| Error | Description | Solution | |-------|-------------|----------| | 401 Unauthorized | Invalid API token or expired credentials | Verify API token and workspace permissions | | 404 Not Found | Resource doesn't exist or insufficient permissions | Check resource ID and access level | | 429 Rate Limited | Too many requests to Segment API | Implement exponential backoff and retry logic | | 422 Unprocessable Entity | Invalid event schema or missing required fields | Validate event structure against tracking plan | | 500 Internal Server Error | Segment service temporarily unavailable | Retry request after delay | | Network Timeout | Request exceeded timeout limit | Check network connectivity and increase timeout |

Development

npm install
npm run build
npm test
npm run lint
npm run dev

Author

Velocity BPA

Licensing

This n8n community node is licensed under the Business Source License 1.1.

Free Use

Permitted for personal, educational, research, and internal business use.

Commercial Use

Use of this node within any SaaS, PaaS, hosted platform, managed service, or paid automation offering requires a commercial license.

For licensing inquiries: [email protected]

See LICENSE, COMMERCIAL_LICENSE.md, and LICENSING_FAQ.md for details.

Contributing

Contributions are welcome! Please ensure:

  1. Code follows existing style conventions
  2. All tests pass (npm test)
  3. Linting passes (npm run lint)
  4. Documentation is updated for new features
  5. Commit messages are descriptive

Support