0http is a high-performance HTTP request router and server framework for Node.js, designed for high throughput and minimal overhead. Currently stable at version 4.4.0, the project maintains an active release cadence with frequent updates focused on performance, security, and Node.js compatibility. Key differentiators include its "zero friction" philosophy, highly customizable routing, and optimized Node.js HTTP server, often benchmarked among the fastest Node.js frameworks. It ships with full TypeScript type definitions since v3.5.0 and requires Node.js v22.x or higher, ensuring it leverages the latest runtime features and performance improvements.
npm install 0httpVerified import paths — ran on the pinned version, not inferred.
Initializes a 0http server and router, handling a basic GET request and a POST request with body parsing, listening on port 3000.
Upgrade your Node.js runtime to version 22.x or later.
Review the `trouter` v4 changelog and documentation for any necessary adjustments to your routing logic.
Upgrade to `0http@4.3.0` or higher to benefit from improved async middleware error fixes.
Upgrade to `0http@4.4.0` or higher to utilize the enhanced error handler security features.
Change `const cero = require('0http');` to `import cero from '0http';` and ensure your `package.json` has `"type": "module"` or your file uses the `.mjs` extension.Change `import cero from '0http';` to `const cero = require('0http');` or configure your project for ESM by adding `"type": "module"` to `package.json` or using `.mjs` file extensions.Ensure `cero` is called as a function: `const { router, server } = cero();`.Verify that `const { router, server } = cero();` is correctly executed and that `router` is in scope before attempting to define routes.No dependency data recorded yet.