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

@relayfile/webhook-server

v0.1.0

Published

Thin Hono webhook receiver for relayfile adapters

Downloads

164

Readme

@relayfile/webhook-server

Thin Hono server for receiving provider webhooks, verifying signatures, and persisting normalized events into relayfile via RelayFileClient.

Install

npm install @relayfile/webhook-server hono

Usage

import { GitHubAdapter } from "@relayfile/adapter-github";
import { RelayFileClient } from "@relayfile/sdk";
import { createWebhookServer } from "@relayfile/webhook-server";

const client = new RelayFileClient({ token: process.env.RELAYFILE_TOKEN! });
const provider = { name: "nango", proxy: async () => ({ status: 200, headers: {}, data: {} }), healthCheck: async () => true };
const github = new GitHubAdapter(provider);
const server = createWebhookServer({ client, port: 3456, secrets: { github: process.env.GITHUB_WEBHOOK_SECRET } });
server.register("github", github);
await server.start();

POST /github/webhook now verifies x-hub-signature-256, normalizes the event, computes a VFS path from the registered adapter, and calls client.ingestWebhook(...).

Supported built-ins

  • github: HMAC-SHA256 verification via x-hub-signature-256
  • slack: signing secret verification via x-slack-signature and x-slack-request-timestamp

Adapters can also provide their own verifySignature or normalizeWebhook hooks.

API

createWebhookServer(options)

  • client: RelayFileClient used to persist webhook events
  • workspaceId: relayfile workspace ID, defaults to "default"
  • port: default port for server.start(), defaults to 3456
  • hostname: default hostname for server.start(), defaults to "0.0.0.0"
  • adapters: optional initial adapter map
  • secrets: provider-to-secret map for signature verification

server.register(name, adapter)

Registers an adapter by provider name. The adapter may expose:

  • computePath(objectType, objectId, payload?)
  • normalizeWebhook(payload, context)
  • verifySignature(context)
  • provider?: ConnectionProvider

Route

  • POST /:provider/webhook

The route returns 404 for unknown providers, 401 for signature failures, 400 for invalid payloads, and 200 with the queued relayfile operation IDs when the webhook is accepted.