Overview

Webroute is a suite of independent tools for building server-side apps and APIs, based on the WinterCG Minimum Common Web API.

Instead of a monolithic framework, Webroute provides a handful of independent packages. Boundaries between routing, middleware, validation, routing and client are clearly defined and separate. This means you're not tied down by framework or runtime.

Philosophy

When building new web tools, the following principles are followed.

ConceptDescription
Web StandardUse web standard interfaces over bespoke abstractions
ImmutableAvoiding mutating data, or if you must, doing so explicitly
PurePreferring basic input/output functions over side-effectful ones
AtomicStandalone functionality is better than requiring complex integration or orchestration
DeclarativeWhen useful, prefer declarative over imperative approaches, enabling introspection
No magicNo monkey-patching, wrapped Request/Response objects
ComposablePrefer composition over orchestration so pipelines are traceable and reasonable

On this page