Skip to content
forked from unjs/srvx

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

License

Notifications You must be signed in to change notification settings

iamandrewluca/srvx

ย 
ย 

Repository files navigation

๐Ÿ’ฅ 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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 93.5%
  • JavaScript 6.5%