SkillAgentSearch skills...

Zenrouter

An opinionated HTTP router with typed path params, built-in body validation, and a clean auth model.

Install / Use

/learn @liveblocks/Zenrouter
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Zen Router

<p> <a href="https://npmjs.org/package/@liveblocks/zenrouter"><img src="https://img.shields.io/npm/v/@liveblocks/zenrouter?style=flat&label=npm&color=c33" alt="NPM" /></a> <a href="https://bundlejs.com/?q=%40liveblocks%2Fzenrouter%401.0.17&treeshake=%5B%7B+ZenRouter+%7D%5D"><img src="https://deno.bundlejs.com/badge?q=@liveblocks/zenrouter&treeshake=[{ZenRouter}]" /></a> <a href="https://github.com/liveblocks/zenrouter/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-apache2-green" alt="License: Apache 2.0" /></a> </p>

An opinionated API router with typed path params, built-in body validation, and a clean auth model. Built for Cloudflare Workers, Bun, Node.js, and every other modern JavaScript runtime.

Documentation

Installation

npm i @liveblocks/zenrouter

Quick start

import { object, string } from "decoders";
import { ZenRouter } from "@liveblocks/zenrouter";

const zen = new ZenRouter(/* ... */);

zen.route(
  "GET /greet/<name>",

  ({ p }) => ({ result: `Hi, ${p.name}!` })
);

zen.route(
  "POST /greet",

  object({ name: string }),

  ({ body }) => ({
    result: `Hi, ${body.name}!`,
  })
);

export default zen;

License

Licensed under the Apache License 2.0, Copyright © 2021-present Liveblocks.

See LICENSE for more information.

Related Skills

View on GitHub
GitHub Stars36
CategoryDevelopment
Updated20d ago
Forks0

Languages

TypeScript

Security Score

90/100

Audited on Mar 21, 2026

No findings