Webframe Base is a Node.js framework designed for building RESTful APIs and systems. It provides a minimalistic structure for routing, middleware, and request handling. The current stable version is 0.7.23, released with an unspecified cadence. It focuses on simplicity and extensibility, differing from larger frameworks like Express by offering a more lightweight core with fewer built-in features, suitable for microservices and small to medium projects. The framework supports both CommonJS and ESM modules, and includes basic error handling and logging capabilities.
npm install webframe-baseNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This example sets up a basic REST server with a single GET endpoint that returns a JSON response.
Use the built-in parseBody option when creating the server: new Server({ parseBody: true })Add error handling middleware using router.use((err, req, res, next) => { ... })npm install --save-dev @types/webframe-base
Replace createServer() with new Server()
Place specific routes before wildcard routes.
Use import { Server } from 'webframe-base' instead of import Server from 'webframe-base'Use a different port or kill the existing process: lsof -i :3000, then kill -9 <PID>
Run npm install webframe-base and optionally npm install --save-dev @types/webframe-base
No dependency data recorded yet.