You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

srvx

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

srvx

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

0.8.6
latest
Source
npmnpm
Version published
Weekly downloads
10K
32.54%
Maintainers
1
Weekly downloads
 
Created
Source

λ srvx

npm version npm downloads install size

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

  • ✅ Zero dependency
  • ✅ Full featured CLI with watcher, error handler, serve static and logger
  • ✅ Seamless runtime integration with same API (handler and instance).
  • Node.js compatibility with up to ~96.98% native performance.
  • ✅ Zero overhead Deno and Bun support.

Quick start

export default {
  fetch(req: Request) {
    return Response.json({ hello: "world!" });
  },
};

Then, run the server using your favorite runtime:

# Node.js
$ npx srvx       # npm
$ pnpx srvx      # pnpm
$ yarn dlx srvx  # yarn

# Deno
$ deno -A npm:srvx

# Bun
$ bunx --bun srvx

👉 Visit the 📖 Documentation to learn more.

Starter Examples

➤ Online Playground

ExampleSourceTry
elysiaexamples/elysianpx giget gh:h3js/srvx/examples/elysia srvx-elysia
expressexamples/expressnpx giget gh:h3js/srvx/examples/express srvx-express
h3examples/h3npx giget gh:h3js/srvx/examples/h3 srvx-h3
hello-worldexamples/hello-worldnpx giget gh:h3js/srvx/examples/hello-world srvx-hello-world
honoexamples/hononpx giget gh:h3js/srvx/examples/hono srvx-hono
jsxexamples/jsxnpx giget gh:h3js/srvx/examples/jsx srvx-jsx
node-handlerexamples/node-handlernpx giget gh:h3js/srvx/examples/node-handler srvx-node-handler
service-workerexamples/service-workernpx giget gh:h3js/srvx/examples/service-worker srvx-service-worker
websocketexamples/websocketnpx giget gh:h3js/srvx/examples/websocket srvx-websocket

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

FAQs

Package last updated on 06 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.