Orator is a thin abstraction layer over HTTP server implementations (like Restify) for building REST and IPC services. It provides a consistent interface for spinning up web servers with configuration managed through JSON. At version 6.1.2, it supports lifecycle hooks (before/after), static file serving with subdomain-based routing, and integrates with the Fable ecosystem. Unlike Express or Koa, Orator focuses on being unopinionated and composable for microservices. It is released as needed with a moderate cadence.
npm install oratorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows minimal setup: create Fable instance, add Orator and Restify service server, define a route, start server.
Install and configure a service server package like orator-serviceserver-restify.
Run 'npm install fable' alongside Orator.
Use 'ServicePort' instead of 'APIServerPort'.
Familiarize yourself with Restify's API, e.g., use pRequest.params for URL parameters, not pRequest.query.
Install the missing module: npm install orator-serviceserver-restify
Ensure you call _Fable.serviceManager.instantiateServiceProvider('Orator') after adding the service type.Change 'ServicePort' to an available port, or kill the process using that port.