本文へスキップ

Cloudflare Workers Router

活発
tsndr/cloudflare-worker-router

gzip 後 1 KB の超軽量・依存関係ゼロの Cloudflare Workers 用ルーター。ミドルウェア中心の設計で、CORS や Bearer トークンのヘルパーを備えています。

GitHub で見る
スター
260
フォーク
28
ウォッチ
260
未解決の Issue
1

この紹介文は現在英語版のみです。

Overview

Cloudflare Workers Router is a super-lightweight router (1.0 KB gzipped) with middleware support and zero dependencies. The author built it to create a full API on Workers after finding no router that fit.

Features

  • Zero dependencies and fully written in TypeScript
  • Built around middleware
  • Debug mode, plus CORS and bearer-token helpers
  • Lets you read the request body multiple times

Install

npm install @tsndr/cloudflare-worker-router

Upgrading from v2? The repository includes a migration guide.

共通のカテゴリとタグで順位付けした、似たオープンソースプロジェクトです。

すべての Web フレームワークプロジェクト →