The `web` package, also known as `node-web` and authored by `creationix`, is an extremely early-stage (v0.0.2) web/HTTP library for Node.js, last published over a decade ago in January 2013. It was conceived as a lightweight and fast alternative intended to entirely replace Node.js's built-in `http` module and offer a more streamlined approach to web application development than contemporary middleware systems like `connect` or `stack`. Its design was heavily influenced by interface patterns found in `wsgi`, `rack`, `jsgi`, and `strata.js`, emphasizing simple module composition where any function implementing a `(request, respond)` or `(req, res, next)` interface could serve as a valid web application layer. Given its very low version number and the lack of updates for over a decade, this project is considered abandoned and is highly unlikely to be compatible with modern Node.js runtimes or best practices, including native ESM support. Its historical significance lies in exploring alternative HTTP server paradigms during Node.js's formative years.
npm install webVerified import paths — ran on the pinned version, not inferred.
Demonstrates creating a basic HTTP server that responds to the root path and passes other requests to the next middleware.
Do not use this package in new projects. For existing projects, significant refactoring to use modern HTTP frameworks (e.g., Express, Koa, Fastify) or Node.js's native `http` module is required.
Modern Node.js web applications should use the native `http` module directly or popular frameworks that abstract it, rather than a full replacement library from this era.
Migrate to actively maintained and modern HTTP server solutions or frameworks.
Use `const web = require('web')` and then access methods like `web.createServer`.This package is not compatible with ES Modules. You would need to either run your application in a CommonJS context or rewrite the application using a modern, ESM-compatible HTTP library.
No dependency data recorded yet.