A super fast and minimalist Node.js web framework for building REST micro-services, version 6.0.0. Inspired by Express, it provides a simple and intuitive API for routing, request/response handling, and middleware management with high performance. It ships TypeScript definitions and requires Node.js >=24.x. Key differentiators: ultra-lightweight (no dependencies), built-in security defaults (secure error handling, stream safety, immutable config), and native support for HTTPS and HTTP/2. Released regularly on npm with active maintenance. Ideal for micro-services and performance-critical APIs.
npm install restanaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a bare-bones HTTP server with restana, defines a GET route, and starts listening on port 3000.
Replace require('restana') with import restana from 'restana' and ensure your project is configured for ESM (e.g., type: 'module' in package.json).Upgrade Node.js to 24.x or later.
No action needed for security; to customize error responses, provide a custom errorHandler in the options.
Do not attempt to modify the returned object; configure options at service creation.
Create an HTTP/2 server using http2.createSecureServer() and pass it to restana({ server: ... }).Use import restana from 'restana' and set type: 'module' in package.json, or use dynamic import().
Use import restana from 'restana' (default import).
Ensure you pass a valid http.Server, https.Server, or http2.Http2Server instance.
No dependency data recorded yet.