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-nodes-sabrhub

v1.0.7

Published

n8n node for Sabrhub SMS integration

Readme

n8n-nodes-sabrhub

npm version License: MIT

A custom n8n node for integrating with Sabrhub SMS API. This node allows you to send SMS messages through your n8n workflows using the Sabrhub messaging platform.

Features

  • Send SMS Messages: Send text messages to any phone number
  • Environment Support: Switch between production and development environments
  • API Key Authentication: Secure authentication using API keys
  • Error Handling: Comprehensive error handling and validation
  • Phone Number Validation: Automatic validation of phone number formats

Installation

From npm (Recommended)

npm install n8n-nodes-sabrhub

From source

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Build the project:
    npm run build

Usage

1. Add the Node to n8n

  1. In your n8n instance, go to Settings > Community Nodes
  2. Click "Install a community node"
  3. Enter the package name: n8n-nodes-sabrhub
  4. Click "Install"

Alternatively, if you have n8n installed locally:

npm install n8n-nodes-sabrhub

2. Configure Credentials

  1. Create a new workflow or open an existing one
  2. Add the "Sabrhub" node to your workflow
  3. Click on the node and go to the "Credentials" tab
  4. Create new credentials with the following information:
    • API Key: Your Sabrhub API key (e.g., mx_dffb6a98dc314076bbe590244f779ecd_1760608647631)
    • Environment: Choose between Production or Development
    • Production URL: https://context-sms.sabrhub.com (default)
    • Development URL: https://teams-dev-backend.sabrhub.com (default)

3. Configure the Node

  1. Select the "SMS" resource
  2. Choose the "Send" operation
  3. Fill in the required fields:
    • To Number: Recipient's phone number (e.g., +12067452650)
    • From Number: Sender's phone number (e.g., +17373138331)
    • Message Text: The SMS content

4. Example Workflow

Here's a simple example workflow that sends an SMS when triggered:

{
  "nodes": [
    {
      "parameters": {},
      "id": "webhook-trigger",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [240, 300]
    },
    {
      "parameters": {
        "resource": "sms",
        "operation": "send",
        "toNumber": "={{$json.phone}}",
        "fromNumber": "+17373138331",
        "messageText": "Hello! This is a test message from n8n."
      },
      "id": "sabrhub-sms",
      "name": "Send SMS",
      "type": "n8n-nodes-sabrhub.sabrhub",
      "typeVersion": 1,
      "position": [460, 300],
      "credentials": {
        "sabrhubApi": {
          "id": "your-credential-id",
          "name": "Sabrhub API"
        }
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Send SMS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

API Reference

Sabrhub SMS API

The node integrates with the Sabrhub SMS API endpoint:

  • Production: https://context-sms.sabrhub.com/outbound/send-sms
  • Development: https://teams-dev-backend.sabrhub.com/outbound/send-sms

Request Format

{
  "toNumber": "string",
  "messageText": "string",
  "fromNumber": "string"
}

Headers

  • Content-Type: application/json
  • X-API-Key: your-api-key

Development

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • n8n instance for testing

Setup

  1. Clone the repository:

    git clone https://github.com/sabrhub/n8n-nodes-sabrhub.git
    cd n8n-nodes-sabrhub
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build

Testing

  1. Start your n8n instance in development mode:

    n8n start --tunnel
  2. Install the node locally:

    npm run build
    # Copy the dist folder to your n8n community nodes directory
  3. Test the node in your n8n workflow

Scripts

  • npm run build - Build the TypeScript files
  • npm run dev - Watch mode for development
  • npm run lint - Run ESLint
  • npm run format - Format code with Prettier

Error Handling

The node includes comprehensive error handling:

  • Phone Number Validation: Ensures phone numbers start with +
  • Required Field Validation: Validates all required fields are provided
  • API Error Handling: Handles API errors gracefully
  • Continue on Fail: Option to continue workflow execution on errors

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add some amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For support and questions:

Changelog

1.0.0

  • Initial release
  • SMS sending functionality
  • Environment support (production/development)
  • API key authentication
  • Phone number validation