λ srvx

Universal Server based on web standards. Works with Deno, Bun and Node.js.
Quick start
export default {
fetch(req: Request) {
return Response.json({ hello: "world!" });
},
};
Then, run the server using your favorite runtime:
$ npx srvx
$ pnpx srvx
$ yarn dlx srvx
$ deno -A npm:srvx
$ bunx --bun srvx
👉 Visit the 📖 Documentation to learn more.
Starter Examples
➤ Online Playground
Contribution
- Clone this repository
- Install the latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Prepare stub mode using
pnpm build --stub
- Run interactive tests using
pnpm dev
License
Published under the MIT license.
Made by @pi0 and community 💛
🤖 auto updated with automd