Skip to content

Cloudflare Workers Router

Active
tsndr/cloudflare-worker-router

A super-lightweight (1 KB gzipped), zero-dependency router for Cloudflare Workers, built around middleware, with CORS and bearer-token helpers.

View on GitHub
Stars
260
Forks
28
Watchers
260
Open issues
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.

Similar open-source projects, ranked by shared categories and tags.

All Web Framework projects →