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

@better-webhook/recall

v0.2.4

Published

Recall.ai module for better-webhook

Readme

@better-webhook/recall

npm npm monthly

Handle Recall.ai webhooks with type-safe payload validation and built-in request verification.

Installation

npm install @better-webhook/recall @better-webhook/core
# or
pnpm add @better-webhook/recall @better-webhook/core
# or
yarn add @better-webhook/recall @better-webhook/core

Install one adapter package too:

# Pick one:
npm install @better-webhook/nextjs        # Next.js App Router
npm install @better-webhook/express       # Express.js
npm install @better-webhook/nestjs        # NestJS
npm install @better-webhook/hono          # Hono (Node/Workers/Bun/Deno)
npm install @better-webhook/gcp-functions # GCP Cloud Functions

Quick Start

import { recall } from "@better-webhook/recall";
import {
  participant_events_join,
  transcript_data,
  bot_done,
} from "@better-webhook/recall/events";
import { toNextJS } from "@better-webhook/nextjs";

const webhook = recall({
  secret: process.env.RECALL_WEBHOOK_SECRET,
})
  .event(participant_events_join, async (payload) => {
    console.log("participant joined:", payload.data.participant.name);
  })
  .event(transcript_data, async (payload) => {
    console.log("transcript words:", payload.data.words.length);
  })
  .event(bot_done, async (payload) => {
    console.log("bot status:", payload.data.code);
  });

export const POST = toNextJS(webhook);

Supported Events

Participant Events

  • participant_events_join (participant_events.join)
  • participant_events_leave (participant_events.leave)
  • participant_events_update (participant_events.update)
  • participant_events_speech_on (participant_events.speech_on)
  • participant_events_speech_off (participant_events.speech_off)
  • participant_events_webcam_on (participant_events.webcam_on)
  • participant_events_webcam_off (participant_events.webcam_off)
  • participant_events_screenshare_on (participant_events.screenshare_on)
  • participant_events_screenshare_off (participant_events.screenshare_off)
  • participant_events_chat_message (participant_events.chat_message)

Transcript Events

  • transcript_data (transcript.data)
  • transcript_partial_data (transcript.partial_data)

Bot Events

  • bot_joining_call (bot.joining_call)
  • bot_in_waiting_room (bot.in_waiting_room)
  • bot_in_call_not_recording (bot.in_call_not_recording)
  • bot_recording_permission_allowed (bot.recording_permission_allowed)
  • bot_recording_permission_denied (bot.recording_permission_denied)
  • bot_in_call_recording (bot.in_call_recording)
  • bot_call_ended (bot.call_ended)
  • bot_done (bot.done)
  • bot_fatal (bot.fatal)
  • bot_breakout_room_entered (bot.breakout_room_entered)
  • bot_breakout_room_left (bot.breakout_room_left)
  • bot_breakout_room_opened (bot.breakout_room_opened)
  • bot_breakout_room_closed (bot.breakout_room_closed)

Signature Verification

Recall webhook verification is enabled by default. Provide a workspace secret with the whsec_ prefix. The provider verifies:

  • webhook-id / svix-id
  • webhook-timestamp / svix-timestamp
  • webhook-signature / svix-signature

using HMAC-SHA256 over ${id}.${timestamp}.${rawBody}. Requests with stale timestamps are rejected to limit replay attacks.

Replay Protection and Idempotency

Recall exposes the delivery identifier as context.deliveryId from webhook-id/svix-id. The SDK also validates request timestamps, but duplicate delivery blocking is enforced only when replay protection is enabled:

import { createInMemoryReplayStore } from "@better-webhook/core";

const webhook = recall({ secret: process.env.RECALL_WEBHOOK_SECRET })
  .withReplayProtection({
    store: createInMemoryReplayStore(),
  })
  .event(bot_done, async (payload) => {
    await handleBotDone(payload);
  });

With replay protection enabled, duplicate deliveries return 409 by default. The provider already validates signed timestamps during verification; you can also configure core timestampToleranceSeconds as an additional replay guard. For production deduplication, use a shared replay store with atomic reservation semantics (reserve/commit/release).

License

MIT