A lightweight API building framework for NodeJS that does not depend on Express or other frameworks. Current version 1.1.12. Key features: automatic route discovery from directory, built-in parameter validation and type coercing, authentication hooks, file upload support, auto-generated API docs. It offers a minimalistic alternative to Express-based frameworks like Restify or Fastify, focusing on simplicity and zero external web dependencies.
npm install the-frameworkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to start the server with auth and create a simple GET route with parameter validation.
Restart the server after adding/modifying route files.
Use disableRouteListing: true and disableRouteDocs: true instead.
Upgrade to v1.1.0+ or use async/await signature.
Move files from params.param.path to your desired location inside the route handler.
Always throw an object with 'status' and 'message' properties for custom error codes.
Use const theFramework = require('the-framework'); and then call theFramework.startServer(...)Ensure the apiDirectory folder exists and contains .js route files.
Check that parameter array is correctly defined with 'id' and 'type' properties.
Ensure request payload matches parameter type definitions.
No dependency data recorded yet.