New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@bimetal/channel-webhook

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bimetal/channel-webhook

Generic HTTP-POST webhook adapter for @bimetal/channel. Posts the notification message as JSON to the recipient URL via the standard fetch (injectable). Zero external npm dependencies.

latest
npmnpm
Version
0.42.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@bimetal/channel-webhook

Scope — generic HTTP POST. Delivery semantics are the receiver's: no retry, no dedup, no ordering. fetch is injectable, so timeouts and auth headers stay the caller's decision.

Generic HTTP-POST webhook adapter for @bimetal/channel. send(url, message) POSTs the notification message as JSON to the recipient URL, built on the standard fetch (injectable for tests/runtimes). Zero external npm dependencies.

The recipient is the target URL; the message is the JSON body.

Installation

npm install @bimetal/channel-webhook @bimetal/channel

Usage

import { createWebhookChannel } from '@bimetal/channel-webhook';

const channel = createWebhookChannel({
  headers: { authorization: 'Bearer <token>' }, // optional, merged onto every request
});

await channel.send('https://hooks.example.com/incoming', {
  title: 'Deploy finished',
  body: 'v0.30.0 is live.',
});

Options (WebhookChannelOptions)

OptionPurpose
headers?Extra headers merged onto every request (e.g. an auth token). content-type: application/json is always set.
fetch?Injectable fetch — defaults to the global. Pass a fake in tests.
timeoutMs?Per-request timeout in ms. Default 10000.

Capabilities: { batch: false, retries: false } — one POST per send, no batching or retry logic (the host decides retry policy).

Keywords

channel

FAQs

Package last updated on 30 Oct 2026

Related posts