restify/node-restify ? reverse-engineered prompt

Reverse engineered prompt

Build me a Node.js library for creating REST APIs with a simple, familiar middleware style.

I want to be able to create a server, register plugins for things like parsing headers, query strings, and request bodies, and define routes like GET endpoints that can read URL params and return JSON. It should also support a small client helper for calling those endpoints from another app. Please make it work with modern Node versions, keep the API clean and easy to use, and include a basic example app that shows how someone would start the server and hit an echo route.

If you need to check current best practices or docs while wiring it up, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab