JSPM

  • Created
  • Published
  • Downloads 1120825
  • Score
    100M100P100Q179233F
  • License MIT

Universal Server API based on web platform standards. Works seamlessly with Deno, Bun and Node.js.

Package Exports

  • srvx
  • srvx/node-utils
  • srvx/types

Readme

💥 srvx

npm version npm downloads

Universal Server API based on web platform standards. Works with Deno, Bun and Node.js.

Quick start

import { serve } from "srvx";

const server = serve({
  port: 3000,
  fetch(request) {
    return new Response("👋 Hello there!");
  },
});

await server.ready();

console.log(`🚀 Server ready at ${server.url}`);

👉 Visit the 📖 Documentation to learn more.

Development

local development
  • Clone this repository
  • Install the latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Published under the MIT license. Made by @pi0 and community 💛


🤖 auto updated with automd