liveblocks

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

32
0
100% credibility
Found Feb 26, 2026 at 23 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

ZenRouter is a toolkit for building web request handlers with safe path matching, data checks, and visitor verification in JavaScript projects.

How It Works

1
🕵️ Discover ZenRouter

You hear about ZenRouter, a simple tool that makes handling different visitor requests on your website feel effortless and safe.

2
📥 Bring it into your project

You easily add ZenRouter to your existing work, ready to start defining how your site responds to people.

3
✏️ Map out your paths

You describe friendly paths like a greeting spot for names, telling the tool exactly what message to send back.

4
Check data and visitors

You add simple rules to ensure incoming info is correct and only welcome guests get through, feeling secure.

5
🚀 Put it online

With one go, your setup goes live on the web, handling real visits just as you planned.

🎉 Visitors love it

Your website now smoothly greets people, processes requests perfectly, and keeps everything running happily.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 23 to 32 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is zenrouter?

Zenrouter is a TypeScript HTTP router for building APIs on Cloudflare Workers, Bun, or Node.js. It lets you define opinionated routes like "GET /greet/" with typed path params, built-in body validation via schemas, and a clean auth model that runs before handlers. Developers get type-safe params, query strings, and JSON bodies without manual parsing, plus automatic CORS and error responses.

Why is it gaining traction?

Its Rails-like opinionated blueprints cut boilerplate—path params type-check at compile time, body validation fails fast with clear errors, and auth integrates seamlessly without custom middleware. Unlike generic routers, it enforces a clean model for auth, validation, and responses, making APIs feel like "10 books full of Rails" in TS. The relay feature chains sub-routers by path prefix, ideal for microservices.

Who should use this?

TypeScript backend devs deploying to edge runtimes who want typed APIs without Zod or tRPC overhead. Perfect for Liveblocks-style collaborative apps needing quick auth-gated endpoints, or solo devs prototyping HTTP services with validation. Skip if you need Flutter or pub.dev ports—it's JS/TS only.

Verdict

Try it for small TS API projects craving opinionated simplicity; 18 stars and 1.0% credibility signal early maturity, but solid docs and tests make it low-risk to eval. Not production-ready for high-scale yet—watch for growth.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.