@hookieai/node 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/README.md +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# @hookieai/node changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.1.2 — 2026-11-29
|
|
4
|
+
|
|
5
|
+
The package's repository and StackBlitz links point at the docs repository's new home, Cusack-Enterprise-Software/Hookie-Docs. No code changes.
|
|
6
|
+
|
|
7
|
+
## 0.1.1
|
|
4
8
|
|
|
5
9
|
The first release provides event ingestion, webhook signature verification and workspace management for Node 22+ and compatible runtimes. Receivers can use an atomic replay store to reject concurrent retries of a signed delivery.
|
|
6
10
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Browser forms have their own client: [`@hookieai/forms`](https://www.npmjs.com/p
|
|
|
10
10
|
|
|
11
11
|
## Verify a webhook Hookie sent you
|
|
12
12
|
|
|
13
|
-
**Worker receiver** · [Try it in StackBlitz](https://stackblitz.com/github/
|
|
13
|
+
**Worker receiver** · [Try it in StackBlitz](https://stackblitz.com/github/Cusack-Enterprise-Software/Hookie-Docs/tree/main/examples?startScript=worker&file=worker/receiver.mjs). Its preview signs a sample with a fresh local key. Send a valid or modified sample to see Standard Webhooks verification in action.
|
|
14
14
|
|
|
15
15
|
Hookie signs every delivery twice over one timestamp, and this package checks either: `Hookie-Signature` (`t=<unix>,v1=<hex>`) and the [Standard Webhooks](https://www.standardwebhooks.com) headers (`webhook-id`, `webhook-timestamp`, `webhook-signature`). Use the destination's `whsec_...` secret (console: destination, signing secret, or `admin.destinations.getSecret(id)`).
|
|
16
16
|
|
|
@@ -57,7 +57,7 @@ signature or replay, 400 for signed invalid JSON and 413 for an oversized body.
|
|
|
57
57
|
Exceptions from the callback go to the framework's normal error handler.
|
|
58
58
|
|
|
59
59
|
**Express** — mount this route before global JSON middleware so the handler gets a
|
|
60
|
-
Buffer. Set the parser's limit to match the adapter's byte limit. [Try the Express receiver in StackBlitz](https://stackblitz.com/github/
|
|
60
|
+
Buffer. Set the parser's limit to match the adapter's byte limit. [Try the Express receiver in StackBlitz](https://stackblitz.com/github/Cusack-Enterprise-Software/Hookie-Docs/tree/main/receiver-examples?startScript=express&file=express.mjs)
|
|
61
61
|
|
|
62
62
|
```js
|
|
63
63
|
import express from "express";
|
|
@@ -73,7 +73,7 @@ app.use(express.json());
|
|
|
73
73
|
|
|
74
74
|
**Hono** — the handler reads the original `c.req.raw` request. Mount it before
|
|
75
75
|
middleware that consumes the body. On Workers, read the secret from the request's
|
|
76
|
-
environment. [Try the Hono receiver in StackBlitz](https://stackblitz.com/github/
|
|
76
|
+
environment. [Try the Hono receiver in StackBlitz](https://stackblitz.com/github/Cusack-Enterprise-Software/Hookie-Docs/tree/main/receiver-examples?startScript=hono&file=hono.mjs)
|
|
77
77
|
|
|
78
78
|
```js
|
|
79
79
|
import { Hono } from "hono";
|
|
@@ -88,7 +88,7 @@ export default app;
|
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
**Next.js App Router** — export the handler directly from a route file. Next passes
|
|
91
|
-
the unread Fetch Request to the handler. [Try the Next.js receiver in StackBlitz](https://stackblitz.com/github/
|
|
91
|
+
the unread Fetch Request to the handler. [Try the Next.js receiver in StackBlitz](https://stackblitz.com/github/Cusack-Enterprise-Software/Hookie-Docs/tree/main/receiver-examples?startScript=next&file=next/app/api/hooks/hookie/route.js)
|
|
92
92
|
|
|
93
93
|
```js
|
|
94
94
|
// app/api/hooks/hookie/route.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hookieai/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Send events to Hookie, verify the webhooks it delivers (Hookie-Signature and Standard Webhooks) and manage your workspace. Zero dependencies; Node 22+, Cloudflare Workers, Deno and Bun.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
],
|
|
77
77
|
"repository": {
|
|
78
78
|
"type": "git",
|
|
79
|
-
"url": "git+https://github.com/
|
|
79
|
+
"url": "git+https://github.com/Cusack-Enterprise-Software/Hookie-Docs.git"
|
|
80
80
|
},
|
|
81
81
|
"bugs": "https://hookie.ai/contact",
|
|
82
82
|
"scripts": {
|