Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

Roilo: UGC Video Ads From a Few Product or Venue Photos

by Roilo-coversion 1.0.0i★ 0iRuns in the cloudOfficial site ↗
Registry nameio.github.roilo-co/ai-product-video-api

How to install

What it does

Turn a few product or venue photos into a usable UGC video ad: script, actor, voiceover, captions.

  • Connects Runs in the cloud
  • Account or key Needs Authorization
  • Category Design, images & audio

Use together with

Skills that teach the AI this kind of work; they work alongside this one

impeccable

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

by pbakaus★ 113,0421 skills

Skill · How-to guide

diagram-design

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

by cathrynlavery★ 68,2961 skills

Skill · How-to guide

frontend-slides

Create beautiful slides on the web using a coding agent's frontend skills

by zarazhangrui★ 32,5791 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering8/8The cloud endpoint answered at the last check
Usage score20/100

Quality: Passed 2/5 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Roilo: UGC Video Ads From a Few Product or Venue Photos. Follow https://mcp.popnx.com/i/roilo-co-ai-product-video-api.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 2/5 checks · What you ask goes through the maker’s server (roilo.co) · ✓ Commands checked Nov 20, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude · about 5 min

You need a Roilo: UGC Video Ads From a Few Product or Venue Photos key (create it on the maker’s site) · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1 · on Team/Enterprise an Owner adds it

  1. Sign up and create a Roilo: UGC Video Ads From a Few Product or Venue Photos key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Roilo: UGC Video Ads From a Few Product or Venue Photos site ↗

  2. Open Claude’s Connectors page

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  3. Click “Add” → “Custom” → “Web” and fill in these 2 fields

    Copy each value into the field with the same name in Claude, then click Continue

    Name · NameRoilo: UGC Video Ads From a Few Product or Venue Photos
    Remote MCP server URL · Addresshttps://roilo.co/api/mcp

    Under Request headers, add this name and value

    Header nameAuthorization
    ValueBearer <paste your key here>

    Paste the key only into the app’s field, never into a chat or to anyone

    Click Continue past the sign-in settings Claude detected · under Authentication choose what the maker says (Sign in now, Sign in when needed or No sign in), then click Add

  4. Turn it on in a chat

    +ConnectorsRoilo: UGC Video Ads From a Few Product or Venue Photos

  5. Try it

    Use Roilo: UGC Video Ads From a Few Product or Venue Photos and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Roilo: UGC Video Ads From a Few Product or Venue Photos or shows a Roilo: UGC Video Ads From a Few Product or Venue Photos tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Roilo: UGC Video Ads From a Few Product or Venue Photos yet

Roilo: UGC Video Ads From a Few Product or Venue Photos needs your own key to connect, but OpenAI’s help page only describes OAuth sign-in; there is no key option we could verify

What you can do instead

A · Use an app that can connect Roilo: UGC Video Ads From a Few Product or Venue Photos

  • You need a Roilo: UGC Video Ads From a Few Product or Venue Photos key (create it on the maker’s site) · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1 · on Team/Enterprise an Owner adds it
  • You need a Roilo: UGC Video Ads From a Few Product or Venue Photos key (create it on the maker’s site)
  • You need a Roilo: UGC Video Ads From a Few Product or Venue Photos key (create it on the maker’s site)
  • You need a Roilo: UGC Video Ads From a Few Product or Venue Photos key (create it on the maker’s site)

B · Others in Design, images & audio that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code · about 5 min

You need a Roilo: UGC Video Ads From a Few Product or Venue Photos key (create it on the maker’s site)

  1. Sign up and create a Roilo: UGC Video Ads From a Few Product or Venue Photos key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Roilo: UGC Video Ads From a Few Product or Venue Photos site ↗

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --transport http --scope user ai-product-video-api https://roilo.co/api/mcp --header 'Authorization: Bearer {api_key}'

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  4. Type /mcp in Claude Code

    You should see Roilo: UGC Video Ads From a Few Product or Venue Photos listed as connected

  5. Try it

    Use Roilo: UGC Video Ads From a Few Product or Venue Photos and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Roilo: UGC Video Ads From a Few Product or Venue Photos or shows a Roilo: UGC Video Ads From a Few Product or Venue Photos tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor · about 5 min

You need a Roilo: UGC Video Ads From a Few Product or Venue Photos key (create it on the maker’s site)

  1. Sign up and create a Roilo: UGC Video Ads From a Few Product or Venue Photos key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Roilo: UGC Video Ads From a Few Product or Venue Photos site ↗

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Fill in your key

    In the Roilo: UGC Video Ads From a Few Product or Venue Photos settings, Authorization is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  4. Open the AI chat in Cursor in Agent mode

  5. Try it

    Use Roilo: UGC Video Ads From a Few Product or Venue Photos and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Roilo: UGC Video Ads From a Few Product or Venue Photos or shows a Roilo: UGC Video Ads From a Few Product or Venue Photos tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code · about 5 min

You need a Roilo: UGC Video Ads From a Few Product or Venue Photos key (create it on the maker’s site)

  1. Sign up and create a Roilo: UGC Video Ads From a Few Product or Venue Photos key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Roilo: UGC Video Ads From a Few Product or Venue Photos site ↗

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Fill in your key

    In the Roilo: UGC Video Ads From a Few Product or Venue Photos settings, Authorization is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  4. Open the AI chat in VS Code in Agent mode

  5. Try it

    Use Roilo: UGC Video Ads From a Few Product or Venue Photos and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Roilo: UGC Video Ads From a Few Product or Venue Photos or shows a Roilo: UGC Video Ads From a Few Product or Venue Photos tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

Address for apps that connect over the web

Addresshttps://roilo.co/api/mcp

JSON settings are under “For developers” below

Stuck? Ask people who use Roilo: UGC Video Ads From a Few Product or Venue Photos💬 Discussion →
For developers: Terminal commands and JSON settings

Over the web

Claude Code

claude mcp add --transport http --scope user ai-product-video-api https://roilo.co/api/mcp --header 'Authorization: Bearer {api_key}'

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "ai-product-video-api": {
      "url": "https://roilo.co/api/mcp",
      "headers": {
        "Authorization": "Bearer {api_key}"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "ai-product-video-api": {
      "type": "http",
      "url": "https://roilo.co/api/mcp",
      "headers": {
        "Authorization": "Bearer {api_key}"
      }
    }
  }
}

Values you fill in

  • Authorization secret required HTTP header
    Your Roilo API key as a bearer token. Create a key at roilo.co/developers.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
Not on npm/PyPI
Licencei
No licence stated
Connection
Runs in the cloud
Transport
streamable-http
Latest versioni
1.0.0
Published to registryi
Nov 12, 2026
Code last changedi
Nov 13, 2026
Last checked
Nov 18, 2026
Maker
Roilo-co
Website
roilo.co
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Connect over the internet in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

All apps, with pros and cons →

Related guides

What it can do

The server asks you to sign in before it lists its tools.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account roilo-co, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 7 days ago

  • ✕ Fail

    Has a licence

    No licence file found in the repo

  • ! Caution

    Endpoint responds

    Refused access (HTTP 401) without offering OAuth sign-in. It may need a key, or it may be blocking bots; not confirmed.

  • ! Caution

    Sign-in with OAuth

    Needs a key or token that you copy and paste yourself

  • … Not checked yet

    No hidden instructions in tool descriptions

    Not checked yet; we read the tool list when we check the endpoint

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/roilo-co-ai-product-video-api.svg)](https://mcp.popnx.com/en/servers/roilo-co-ai-product-video-api)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Design, images & audioi

  • More stars than 0% of the other 3322 servers in this category
  • Published to the registry more recently than 81% of the other 3322 servers in this category
  • Basic checks equal to or better than 8% of the other 3322 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Roilo: UGC Video Ads From a Few Product or Venue Photos safe?

It passed 2 of 5 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: Authorization

Does it run on my computer or in the cloud?

It runs in the maker’s cloud. Connect over the internet with nothing to install, but what you send passes through the maker’s servers.

Is it still maintained?

The GitHub repo last changed 7 days ago, and the latest version (1.0.0) reached the registry 8 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT on the web (full MCP on Business and above; Pro read-only).

What can I use instead?

In the same category: HyperFrames by HeyGen, Pascal 3D Editor, draw.io, Figma MCP Server, Remocn: Remotion MCP server

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

HyperFrames by HeyGen

Official HyperFrames by HeyGen: the best AI video editor in chat. Captions, motion graphics, MP4.

by heygen-comWidely used★ 86.8K Stars for the whole repoUpdated 2 days ago

Runs in the cloud✓ heygen.com

Pascal 3D Editor

Create, inspect, validate, and save editable 3D building scenes with Pascal's MCP server.

by pascalorgWidely used↓ 1K/wk★ 25.6K Stars for the whole repoUpdated 2 days ago

Computer or cloud✓ service owner · pascal.app

draw.io

Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.

by jgraphWidely used★ 5.9KUpdated 3 days ago

Runs in the cloud✓ service owner · draw.ioTried by the PopNx team

Figma MCP Server

Figma’s official server gives AI your design data so it can turn designs into code or describe them accurately. Connects to Figma’s cloud.

by figmaWidely used★ 2.2KUpdated 13 months ago

Runs in the cloud✓ service owner · mcp.figma.com
Compared with similar ones
This one
Roilo: UGC Video Ads From a Few Product or Venue Photos
HyperFrames by HeyGenPascal 3D Editordraw.ioFigma MCP ServerRemocn: Remotion MCP server
Runs whereRuns in the cloud, nothing to installRuns in the cloud, nothing to installCloud or install on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyYesNoNoNoNoNo
Add with + in ClaudeNoYesNoNoYesNo
Basic checks2/54/45/54/44/44/4
License–Apache-2.0MITApache-2.0–MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Roilo API: AI UGC Video Ads From a Few Product or Venue Photos

Send a few product or venue photos. Get back a usable UGC video ad.

Roilo makes AI UGC video ads. It writes the script and generates the scenes with your product and presenter. It records the voiceover, burns in captions and makes the cuts.

The video comes in 9:16, 1:1 or 16:9. Make videos from your own app with the API, or by chat in Claude through the Roilo MCP server.

Website · Developer reference · Use Roilo in Claude · How it works · Pricing

This repo is the quickstart. It holds no code.

The full, current API reference is at [roilo.co/developers](https://roilo.co/developers). If this README and that page ever differ, the page is right.

Contents

  • What Roilo makes: AI UGC video ads
  • How a video gets made
  • Quickstart: REST API
  • Endpoints
  • Video statuses and fields
  • Webhooks
  • Use Roilo as a video creator in Claude (MCP)
  • Errors, retries and limits
  • Use cases
  • FAQ

What Roilo makes: AI UGC video ads

Roilo turns a product or a service into a video ad that is ready to post. You upload photos of your product and a presenter. The presenter can be you, or someone from Roilo's library. Roilo does the rest.

  • It works out what to say first. Before anything renders, Roilo reads your product. It finds the target buyer, the problem they want solved, what makes the product different, the dream outcome and the time to result.
  • Your product. Your presenter. Your place. Scenes stay true to the photos you sent. For service businesses, that includes your real venue. Every scene is checked against your photos. A scene that doesn't match is rejected and made again.
  • It arrives finished. The voiceover is recorded, captions are burned in and the cuts are made. Nothing is left to edit.
  • The shape your platform wants. You get 9:16 vertical (the default), 1:1 square or 16:9 widescreen. Quality is 480p, 720p or 1080p.
  • You pay only for delivered videos. Credits are held when a video starts. They are charged when the video is delivered and refunded if it fails.

The API makes the same videos as the website. You don't book a creator, rerun scenes one by one or fight with prompts.

How a video gets made

POST /v1/videos

│ ▼ queued ──(review: true)──► awaiting_review ──► approve, or it continues at review_expires_at │ │ ▼ │ processing ◄──────────────────────────────────────┘ │ ├──► completed output.video_url is ready to download └──► failed error.code says why; held credits are refunded

Generation runs in the background. The create call returns 202 straight away. Then you wait for a webhook, or you poll the video.

Quickstart: REST API

Base URL: https://roilo.co/api/v1. Requests and responses are JSON over HTTPS. Uploads are multipart. Timestamps are ISO 8601 in UTC.

1. Create an API key

Sign up for free. You need a verified email. Then open the account menu, choose API keys (/settings/api-keys) and click Create key. Keys start with rk_live_ and are shown only once. You can give each key a monthly credit limit.

export ROILO_API_KEY="rk_live_..."
2. Check the key
curl https://roilo.co/api/v1/me \

-H "Authorization: Bearer $ROILO_API_KEY"

This returns your available credits and how much this key has spent this month. A missing, malformed or revoked key returns 401 invalid_api_key.

3. Pick a mode and a presenter
# Video modes: credit cost, photo limits, aspect ratios, qualities

curl -s https://roilo.co/api/v1/modes \ -H "Authorization: Bearer $ROILO_API_KEY" | jq '.data[] | {id, name, credit_cost}'

Your own presenters plus stock presenters

curl -s https://roilo.co/api/v1/actors \ -H "Authorization: Bearer $ROILO_API_KEY" | jq '.data[] | {id, name, is_stock}'

/v1/voices and /v1/caption-styles work the same way.

4. Upload photos (optional)

You can skip this step and send public https links to your photos instead.

curl https://roilo.co/api/v1/files \

-H "Authorization: Bearer $ROILO_API_KEY" \ -F "file=@tumbler-front.jpg"

→ { "id": "file_...", "expires_at": "..." }

Uploads can be JPEG, PNG or WebP. You can reuse a file ID across videos until it expires.

5. Create the video
IDEMPOTENCY_KEY=$(uuidgen)   # reuse this same value if you retry

curl https://roilo.co/api/v1/videos \ -H "Authorization: Bearer $ROILO_API_KEY" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ -H "Content-Type: application/json" \ -d '{ "mode": "MODE_ID", "actor_id": "ACTOR_ID", "product_images": [ "file_...", "https://cdn.example.com/tumbler-side.jpg" ], "aspect_ratio": "9:16", "product": { "name": "Insulated tumbler", "category": "home" }, "webhook_url": "https://example.com/webhooks/roilo", "metadata": { "sku": "TMB-001" } }'

Replace MODE_ID and ACTOR_ID with IDs from step 3. A few notes:

  • Choose a presenter. Send actor_id, or send your own presenter photos in actor_images. Without actor_id, a product video needs at least the number of presenter photos its mode sets.
  • Photo counts vary by mode. Each mode sets its own minimum and maximum number of photos.
  • You can say more about the product. Add target_audience, pain_point, dream_outcome, competitive_advantage, social_proof and result to the product object.
  • Other settings. voice_id, caption_style_id and quality are also available.
  • `metadata` comes back unchanged on the video object.
  • `"review": true` pauses the video so you can check the brief first. See Review before generation.

The call returns 202 with the video object, in status queued.

6. Get the finished video

The recommended way is to listen for the video.completed webhook. You can also poll:

// Node 18+

const BASE = "https://roilo.co/api/v1"; const headers = { Authorization: Bearer ${process.env.ROILO_API_KEY} };

export async function waitForVideo(id, everyMs = 15_000) { for (;;) { const res = await fetch(${BASE}/videos/${id}, { headers }); if (!res.ok) throw new Error(Roilo responded ${res.status}); const video = await res.json(); if (video.status === "completed") return video.output; // video_url, thumbnail_url, ... if (video.status === "failed") throw new Error(video.error.code); await new Promise((r) => setTimeout(r, everyMs)); } }

Download links are signed and expire after one hour (see output.url_expires_at). To get fresh links, fetch the video again.

Endpoints

MethodPathWhat it does
GET/v1/meCheck the key; read credits and this key's spend
GET/v1/modesVideo modes, credit cost, photo limits, aspect ratios, qualities
GET/v1/actorsYour presenters and stock presenters
GET/v1/voicesYour voices and stock voices
GET/v1/caption-stylesCaption styles
POST/v1/filesUpload one image (201)
POST/v1/videosStart a video (202)
GET/v1/videosList videos, newest first (limit, cursor)
GET/v1/videos/:idRead one video
POST/v1/videos/:id/approveRelease a video held for review
DELETE/v1/videos/:idDelete a video (204)

For every field, limit and example, see roilo.co/developers.

Video statuses and fields

statusMeaning
queuedAccepted. Inputs are being prepared.
awaiting_reviewPaused for you (review: true). Approve it, or it continues on its own when review_expires_at passes.
processingThe video is being generated.
completedoutput is set.
failederror says why. Held credits are refunded.

Write your code against status and error.code.

The fields you will use most:

FieldWhat it holds
idThe video ID, starting with vid_
outputnull until the video is completed. Then it holds video_url, thumbnail_url, duration_sec, aspect_ratio, quality and url_expires_at
errorcode, message and, sometimes, param (the field at fault)
briefThe drafted brief, while the video is awaiting review
credits_held, credits_chargedCredits held for the video, and credits charged on delivery
metadataYour own object, returned unchanged
Review before generation

If you send "review": true, Roilo first analyzes your photos, then stops at awaiting_review. Fetch the video to read the drafted brief. Then approve it:

curl -X POST https://roilo.co/api/v1/videos/vid_.../approve \

-H "Authorization: Bearer $ROILO_API_KEY"

The request body is optional. To change the brief, send a brief that holds only the fields you want to change. If the video isn't waiting for review, approving it returns 409 not_awaiting_review.

Webhooks

Set webhook_url on a video. Roilo then POSTs JSON to that URL for three events:

EventWhen it fires
video.awaiting_reviewThe brief is ready for you to check
video.completedThe video is ready
video.failedThe video failed, and its credits were refunded

The body holds the event id, type and created_at, plus the full video object under data.

  • Reply fast. Return any 2xx within 10 seconds. Redirects are not followed.
  • Failed deliveries are retried. The gaps grow longer between tries, up to six attempts in total.
  • Expect duplicates. An event can arrive more than once. De-duplicate on the Roilo-Event-Id header, or on the body id.
  • Links can go stale. The links in a webhook may expire before a retry arrives. Fetch the video for fresh ones.
Verify the signature

Each webhook carries this header: Roilo-Signature: t= ,v1=

  • What is signed: the HMAC covers ${t}.${rawBody}.
  • The secret: your key's webhook secret. It starts with whsec_, is shown once, and can be rotated on the API keys page.
  • Freshness: reject any t more than 300 seconds from now.
  • Comparison: compare signatures in constant time.
  • Raw body: always verify against the raw request body, before you parse the JSON.

Sample code: Node.js and Python

Node.js (Express)

import express from "express";

import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyRoiloSignature(secret, rawBody, header = "", toleranceSec = 300) { const { t = "", v1 = "" } = Object.fromEntries( header.split(",").map((part) => part.trim().split("=")) ); if (!/^\d+$/.test(t) || Math.abs(Date.now() / 1000 - Number(t)) > toleranceSec) return false; const expected = createHmac("sha256", secret).update(${t}.).update(rawBody).digest(); const given = Buffer.from(v1, "hex"); return given.length === expected.length && timingSafeEqual(given, expected); }

const app = express(); const seen = new Set(); // use a shared store in production

app.post("/webhooks/roilo", express.raw({ type: "*/*" }), (req, res) => { const ok = ve

Only the beginning is shown; read the rest in the repo