Zen Router is an HTTP API router designed for use with modern JavaScript runtimes such as Cloudflare Workers, Node.js, Bun, and Deno. Developed by Liveblocks, it is built to handle high volumes of requests and emphasizes an opinionated approach to API routing, with a focus on type safety, built-in validation, and structured authorization. The router is compatible with any environment supporting the Web Request and Response APIs, offering flexibility for deployment across a range of serverless and traditional platforms.
A defining characteristic of Zen Router is its type-safe handling of route parameters, query strings, and request bodies. Route handlers receive fully typed objects for these elements, which supports reliable request processing. Body validation is integrated and can be performed using any standard schema-compatible library, allowing developers to enforce data integrity. The router enforces mandatory authorization by default, requiring authentication logic for routes unless explicitly opted out for public endpoints. This approach ensures consistent security practices across APIs.
Zen Router also provides features for composing routers, enabling developers to isolate different parts of an API based on authentication strategy through the use of ZenRelay. Additional built-in capabilities include support for Cross-Origin Resource Sharing (CORS), customizable error handling with the ability to abort requests and define custom error shapes, and response helpers for returning JSON, HTML, or text streams. For observability, it integrates with OpenTelemetry, automatically adding span attributes for matched routes.
Installation is available via npm, pnpm, bun, or yarn. The router is intended for developers building APIs in JavaScript environments who require a type-safe, validated, and authorization-focused routing solution.
Zen Router is a Frameworks & SDKs product. It focuses on simplifying the creation of robust HTTP APIs with type safety and built-in validation for modern JavaScript runtimes. Zen Router is an open-source project aimed at javascript developers. The project is open source (Apache-2.0). Zen Router is available on the web, embeddable surfaces, the command line, and API, and it can be self-hosted.
Behind Zen Router is Liveblocks, and the product first shipped in 2026. The project is developed in the open on GitHub with 37 stars and 25 commits in the last 90 days. Among its 6 catalogued features are typed path params, body validation, and auth model. It exposes integrations via a public API.
Latest indexed changes and source events
Other apps tracked under the same category.