🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

srvx

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

srvx

Universal Server.

Source
npmnpm
Version
0.11.20
Version published
Weekly downloads
35M
22.37%
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.

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

You can also use srvx fetch to directly call your server handler without starting a server:

$ npx srvx fetch /api/users

See CLI documentation for more options.

👉 Visit the 📖 Documentation to learn more.

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 02 Jul 2026

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