Post

🎊 srvx has reached v1.0 🎊 Two years ago, I went on an ambitious quest. My dream was to make export default { fetch } a universal consistent format for servers. srvx has been adopted and battle-tested by Nitro, H3, Elysia, TanStack, and many others projects 🖤

Congrats! I'm a huge fan of the Request/Response API. I've looked at srvx a few times to see whether it could be used in Mastro, but have always come up empty. Feel free to convince me :) The long list of zero-config providers Nitro lists is definitely cool though. Will have to look into that more.

How you run web standard servers on node?

0 reposts1 like

nice! so I could use the srvx CLI, or directly `import { serve } from "srvx"` in the Mastro node template. And for Deno and Bun, I'd probably not use it, because their serve implementation differences don't seem enough to justify the srvx dependency for Mastro?

Differences of Bun and Deno completely depends on your usage. If you want people for example to have an easy way to access req ip, or server options (configuring https etc) srvx is a cheap dep. Maybe not if you don't need these.