Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
webserv
?Webserv's aim is to have a fast, simple way to provide a backend to your projects. We want to enable developers to start working on their experience immediately. Webserv is not, nor will ever be a production-ready server (for that we recommend Nestjs). Instead it is a quick and easy way to start serving your app with zero thought or investment.
Serve a folder right now without installing anything using npx
.
npx webserv
Webserv comes with standard server patterns. Start a proxy, CRUD server, upload, or log connections from the command-line. Have a more complex use case? webserv
supports JSON configs and has a fully-typed programmatic API so you will never be stuck.
Want to learn more? Look at our examples and read through our documentation.
Webserv allows you to quickly start a fully fledged development server from the command line without editing a single file.
Create a http
or https
server (defaults to http)
webserv -m https
https servers will auto-generate self-signed certificates
Log all requests to the console
webserv -l
Set the port to use (defaults to 8888)
webserv -p 8000
Start a basic CRUD server
webserv -t crud
This server keeps records in an internal store.
/
will list all of the records/
with a json object in the body with an id
to add a record/
with a json object in the body to update a record/id/:id
to view a single record/id/:id
to delete a recordServe the directory.
This is the default server type. If the directory
is omitted the current directory will be served.
webserv -t file ./dist
Create a log server that logs all request to the console and returns 200.
webserv -t log
Create a proxy server.
webserv -t proxy http://devpaul.com
Create an upload server.
directory
is the location where uploaded files will be stored
webserv -t upload ./files
/
provides an interface to upload files/
uploads the file(s)/list
lists files that have been uploadedWebserv supports more complex usage through config files. When a file named webserv.json
is present or when webserv
is launched using the -c <configPath>
option, webserv will launch using the provided configuration.
The available configurations match the server types (available with the -t
option): crud, file, log, proxy, and upload.
See the configuration documentation for all of the details.
For users that may need to create their own services or have complex use cases that are not served the configuration, webserv
offers a fully-typed programmatic API written in TypeScript. See the hello world example for example usage.
FAQs
a quick, flexible, fully typed development server
The npm package webserv receives a total of 5 weekly downloads. As such, webserv popularity was classified as not popular.
We found that webserv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.