// server.ts import {Router} from "@b9g/router"; const router = new Router(); router.route("/kv/:key") .get(async (req, ctx) => { const cache = await self.caches.open("kv"); const cached = await cache.match(ctx.params.key); return cached ?? new Response(null, {status: 404}); }) .put(async (req, ctx) => { const cache = await self.caches.open("kv"); await cache.put(ctx.params.key, new Response(await
Infrastructure as TypeScript Deploy to Cloudflare, AWS, and more with pure TypeScript. Generate support for any API in minutes with AI. const database = await Database("my-database"); const website = await Worker("website", { bindings: { DB: database, }, }); const price = await Price("basic-license", { currency: "usd", unitAmount: 2999, // $29.99 product: "prod_xyz" }); const database = await Data
OpenNext OpenNext started in 2023 as an open-source initiative to make Next.js truly portable — deployable on any platform, not just Vercel. What began as a serverless adapter for AWS Lambda by the SST (opens in a new tab) community has grown into a multi-platform effort backed by Cloudflare (opens in a new tab), Netlify (opens in a new tab), and a broader community of contributors. Where we are t
A full-stack toolkit for Cloudflare Workers. The best parts of D1, R2, Queues, and more—all in one place.
ブラウザだけでなく、非ブラウザなJavaScript(JS)処理系も増えてきたので、「主要ブラウザ、Node.js、Cloudflare Workersでも動くDenoファーストなTypeScript/JavaScriptモジュール開発&CI/CD」をやってみました。一事例として共有します。 はじめに 最近、TypeScriptで hpke-js というモジュールをつくりました。 HPKE (Hybrid Public Key Encryption) というのは、ざっくり言うと、公開鍵を交換しあって共有鍵をつくり、安全にEnd-to-End暗号化をおこなうための規格です。これを Web Cryptography API 上に実装し、このAPIをサポートする複数のJS処理系(主要なWebブラウザ、Node.js、Deno、Cloudflare Workers)で動作保証する(ちゃんと全環境で
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く