🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@lovable.dev/webhooks-js

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lovable.dev/webhooks-js

Lovable Webhooks JS

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
46K
-13.06%
Maintainers
3
Weekly downloads
 
Created
Source

@lovable.dev/webhooks-js

Webhook signature utilities for Lovable integrations.

Installation

npm install @lovable.dev/webhooks-js

Usage

import {
  verifyWebhookRequest,
  verifyWebhookSignature,
  type EmailWebhookPayload,
} from "@lovable.dev/webhooks-js";

const body = await req.text();
const signature = req.headers.get("x-lovable-signature");
const timestamp = req.headers.get("x-lovable-timestamp") ?? "";
const isValid = await verifyWebhookSignature({
  signedPayload: `${timestamp}.${body}`,
  signature,
  secret: Deno.env.get("LOVABLE_API_KEY") ?? "",
});

if (!isValid) {
  throw new Error("Invalid signature");
}

// Or verify the request and parse JSON in one step
const { payload } = await verifyWebhookRequest<EmailWebhookPayload>({
  req,
  secret: Deno.env.get("LOVABLE_API_KEY") ?? "",
});

// Or pass a custom parser
const { payload: rawPayload } = await verifyWebhookRequest({
  req,
  secret: Deno.env.get("LOVABLE_API_KEY") ?? "",
  parser: (body) => ({ raw: body }),
});

Keywords

lovable

FAQs

Package last updated on 13 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts