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

cx-webhooks

v1.0.0

Published

TypeScript client and simple CLI for managing Carerix webhooks. The CLI loads configuration from a `.env` file and supports listing, creating, enabling, disabling, and deleting webhooks.

Readme

Carerix Webhooks Client + CLI

TypeScript client and simple CLI for managing Carerix webhooks. The CLI loads configuration from a .env file and supports listing, creating, enabling, disabling, and deleting webhooks.

Requirements

  • Node.js 18+ (uses built‑in fetch)

Install / Build

  • Install deps: npm install
  • Build: npm run build
  • Run CLI locally:
    • npm run cli -- <args>
    • or node dist/cli.js <args>

When published/linked, the binary name is cx-webhooks.

Prerequisites

  • OAuth2 Client with scope:urn:cx/webhooks:data:manage
  • Webhook application ID
  • Follow these instructions to create your OAuth2 client & application

Environment

Set these variables in a .env file:

# Carerix API base
CX_BASE_URL=https://api.carerix.io/webhooks/v1

# OAuth2 Client Credentials (Carerix Identity provider)
CX_AUTH_ENDPOINT=.../protocol/openid-connect/token
CX_CLIENT_ID=...
CX_CLIENT_SECRET=...
CX_SCOPES=urn:cx/webhooks:data:manage

# Target application (UUID)
CX_APPLICATION_ID=...

CLI Usage

Usage: cx-webhooks [--env <path>] <command> [options]

Commands:
  list                                   List all webhooks
  enable <id>                            Enable a webhook
  disable <id>                           Disable a webhook
  delete <id>                            Delete a webhook
  create --url <url> --event <type> [--event <type> ...] [--header key=value ...]
                                         Create a webhook (at least 1 --event required)

Options:
  --env <path>                           Path to .env file (default: .env)
  --help                                 Show help

Examples

  • List using .env.dev:
    • cx-webhooks --env .env.dev list
  • Enable/Disable/Delete:
    • cx-webhooks enable 12345
    • cx-webhooks disable 12345
    • cx-webhooks delete 12345
  • Create (requires at least one --event):
    • cx-webhooks create --url https://example/webhook --event cremployee:created --event crmatch:updated --header x-api-key=secret

Notes:

  • --event is repeatable; at least one is required.
  • --header is optional and repeatable (format: key=value).

Library Usage (TypeScript)

import CarerixWebhooksClient from 'cx-webhooks';

async function main() {
  // Load config from .env in project root
  const client = CarerixWebhooksClient.fromEnv('.env');

  // List
  const webhooks = await client.listWebhooks();
  console.log(webhooks);

  // Create
  const created = await client.createWebhook({
    url: 'https://example/webhook',
    filters: [{ eventType: 'cremployee:created' }],
    customHeaders: [{ name: 'x-api-key', value: 'secret' }], // optional
  });
  console.log('Created:', created.id);

  // Enable / Disable / Delete
  await client.enableWebhook(created.id);
  await client.disableWebhook(created.id);
  await client.deleteWebhook(created.id);
}

main().catch((e) => { console.error(e); process.exit(1); });

Development

  • Build: npm run build
  • Demo script: npm run demo (uses dist/demo.js and .env)

License and Warranty

No Maintenance Intended

This project is licensed under the ISC License. See LICENSE for details.

Provided as-is with no warranty or support. I publish this in case it’s useful to others, but I won’t invest work beyond my own needs. Issues and PRs may be ignored.