Skip to content

Various worker-related packages I use for routing, inspired by itty-router

Notifications You must be signed in to change notification settings

mewhhaha/little-worker

Repository files navigation

Little Worker

Little worker is a bundle of small packages to more easily create Cloudflare Workers.

Documentation

These are all experimental packages, the API may be updated regularly. Expect breaking changes.

Packages

little-router

Documentation

Little router is a Cloudflare Workers router with a focus on type safety. For simple use cases this will be all you need. Allows you to create routing structures with a builder pattern.

This also includes the ability to create your own plugin.

little-fetcher

Documentation

This is a fetch wrapper that consumes routes created by little-router. It can either be a wrapper around the fetch API or any object with the shape { fetch: Fetch }. The latter is for example the shape of a Durable Object stub.

little-router/plugin-data

Documentation

A Little Router plugin that allows you to type body data on the request handlers.

little-router/plugin-query

Documentation

A Little Router plugin that allows you to type query data from the request URL.

About

Various worker-related packages I use for routing, inspired by itty-router

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published