惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
Recent Announcements
Recent Announcements
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
A
About on SuperTechFans
Vercel News
Vercel News
博客园 - 【当耐特】
爱范儿
爱范儿
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
D
Docker
博客园 - 叶小钗
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
I
InfoQ
博客园 - 三生石上(FineUI控件)
博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Deno

Deno 2.8 | Deno Claw Patrol: an open-source security firewall for agents | Deno Fresh 2.3: Zero JS by default, View Transitions, and Temporal support | Deno Deno 2.7: Temporal API, Windows ARM, and npm overrides | Deno Build a dinosaur runner game with Deno, pt. 6 | Deno Build a dinosaur runner game with Deno, pt. 5 | Deno Deno Deploy is Generally Available | Deno Introducing Deno Sandbox | Deno Build a dinosaur runner game with Deno, pt. 4 | Deno Build a dinosaur runner game with Deno, pt. 3 | Deno Build a dinosaur runner game with Deno, pt. 2 | Deno React / Next.js Denial-of-Service Vulnerability: Deno Deploy users protected | Deno Deno 2.6: dx is the new npx | Deno Build a dinosaur runner game with Deno, pt. 1 | Deno React Server Functions / Next.js Vulnerability: Deno Deploy users protected | Deno My highlights from the new Deno Deploy | Deno Deno's Other Open Source Projects | Deno How Deno protects against npm exploits | Deno Help Us Raise $200k to Free JavaScript from Oracle | Deno Deno 2.5: Permissions in the config file | Deno Fresh 2.0 Graduates to Beta, Adds Vite Support | Deno Deno 2.4: deno bundle is back | Deno JavaScript™ Trademark Update | Deno What's coming to JavaScript | Deno A brief history of JavaScript | Deno Reports of Deno's Demise Have Been Greatly Exaggerated | Deno An Update on Fresh | Deno How Plaid migrated 100 services to a new database platform 5x faster with Deno | Deno Deno 2.3: Improved deno compile, local npm packages, and more | Deno Add JSR packages with pnpm and Yarn | Deno
Announcing the Hookdeck SDK on JSR | Deno
Andy Jiang · 2024-04-23 · via Deno

JSR is a modern JavaScript registry intended to simplify publishing and consuming JavaScript and TypeScript modules, while also moving the ecosystem forward by supporting and promoting web standards. Since our launch, over 7.5k users have signed up to JSR.

Today, we’re thrilled to announce that the Hookdeck SDK is now available on JSR.

Hookdeck is an event gateway that simplifies managing events across a distributed and asynchronous architecture. You can reliably receive and send webhooks, route and transform event payloads between cloud services, and queue events all without managing infrastructure.

Using Hookdeck via JSR provides a better developer experience with auto-generated documentation and type definitions right in your text editor.

Installing Hookdeck

You can get started with the Hookdeck SDK using the deno add command:

Or with npm:

npx jsr add @hookdeck/sdk

The above command will generate a deno.json file, listing all your project dependencies:

{
  "imports": {
    "@hookdeck/sdk": "jsr:@hookdeck/sdk^0.1.7"
  }
}
Note the Hookdeck SDK is still in beta, and there may be breaking changes between versions without a major version update. We recommend pinning the package version to a specific version in your package.json file.

You can then import the Hookdeck SDK to your main.ts file:

import { Hookdeck, HookdeckClient } from "@hookdeck/sdk";

const hookdeck = new HookdeckClient({
  token: "YOUR_TOKEN_GOES_HERE",
});

const connection = await hookdeck.connection.upsert({
  name: "inbound-example",
  source: {
    name: "inbound",
  },
  destination: {
    name: "outbound",
    url: "https://mock.hookdeck.com",
  },
});

console.log(
  "Created or updated Connection. Source URL:",
  connection.source.url,
);
Learn more about getting started with Hookdeck in their documentation.

Finally, you can run the following command to execute:

What’s next?

Hookdeck, which simplifies managing events across a distributed asynchronous architecture, is now easier to use in multiple environments via JSR. Additionally, using Hookdeck via JSR provides type definitions and documentation in your text editor, making it easier to use.

🚨️ Read more about JSR 🚨️