Skip to main content

Tame Edge Complexity with Structure and Scale

A lightweight microframework purpose-built for edge environments. Manage complex Cloudflare Workers applications with structured routing, built-in interceptors, and zero dependencies.

โšก ~14 KB๐Ÿ“ฆ Zero Dependencies๐Ÿ›ก๏ธ 94.65% Coverage๐Ÿ’Ž TypeScript
import { EdgeController, RouteHandler, Task, json } from 'edge-master';

const app = new EdgeController();
app.GET('/hello', new RouteHandler(new Task({
do: async () => json({ message: 'Hello World!' })
})));
โšก

Zero Dependencies

Only ~14 KB bundle size with zero production dependencies. Fast cold starts and minimal overhead.

๐ŸŽฏ

HTTP Method Helpers

Clean, expressive routing with GET, POST, PUT, DELETE, PATCH, HEAD, and OPTIONS helpers.

๐Ÿ”„

Built-in Interceptors

Production-ready middleware: JWT auth, CORS, rate limiting, caching, and logging out of the box.

๐Ÿ“ฆ

Route Grouping

Organize large applications with hierarchical route grouping and nested prefixes.

๐Ÿ’Ž

Full Type Safety

Complete TypeScript support with strict typing and intelligent IDE autocompletion.

๐ŸŽญ

Context State

Share data between interceptors and handlers with built-in state management.

๐Ÿงฉ

Task Composition

Reusable, composable units of work with conditional execution and error handling.

๐Ÿ›ก๏ธ

Production Ready

Built-in error handling, validation helpers, and 94.65% test coverage.

Deploy in 60 Seconds

From zero to production in three simple steps

1

Install

npm install edge-master
2

Write

app.GET('/api', handler);
3

Deploy

npx wrangler deploy

Built for Production

Enterprise-grade features out of the box

๐Ÿ”’

Authentication

JWT and API key interceptors with exclude patterns and custom error handling.

๐Ÿšฆ

Rate Limiting

Memory or KV-backed storage with per-IP or custom key generation.

โšก

Caching

Cloudflare Cache API integration with configurable TTL and cache keys.

๐Ÿ“

Logging

Request/response logging with timing, headers, and body options.

๐Ÿ”„

CORS

Full CORS support with automatic OPTIONS handling and credentials.

๐Ÿ›ก๏ธ

Error Handling

Built-in error boundaries with custom 404 and 500 handlers.

Why Choose EdgeMaster?

Purpose-built for edge complexity management

FeatureEdgeMasterExpress.jsHonoitty-router
Bundle Size~14 KB~200 KB~12 KB~450 bytes
Dependencies0Many00
Cold Start<1msSlower<1ms<1ms
Built-in Authโœ… JWT & API KeyโŒ Requires packagesโŒ Basic onlyโŒ
Rate Limitingโœ… Built-inโŒ Requires packagesโŒโŒ
Route Groupingโœ…โœ…โœ…โŒ
TypeScriptโœ… Full supportโš ๏ธ Partialโœ… Full supportโœ… Full support
Best ForComplex appsNode.js serversSimple edge appsMinimal routing

Ready to Build Amazing Edge Applications?

Get started in 60 seconds or explore the documentation