
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
Universal Server based on web standards. Works with Deno, Bun and Node.js.
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.
corepack enablepnpm installpnpm build --stubpnpm devPublished under the MIT license.
Made by @pi0 and community 💛
🤖 auto updated with automd
FAQs
Universal Server.
The npm package srvx receives a total of 29,630,785 weekly downloads. As such, srvx popularity was classified as popular.
We found that srvx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.