Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
orator-http-proxy
✓ const libOratorHTTPProxy = require('orator-http-proxy');
✗ import libOratorHTTPProxy from 'orator-http-proxy';
Package is CommonJS only. ESM import is not supported.
connectProxyRoutes
✓ Fable.OratorHTTPProxy.connectProxyRoutes();
✗ import { connectProxyRoutes } from 'orator-http-proxy';
Method is available on the instantiated service provider, not directly exported.
service provider registration
✓ Fable.serviceManager.addServiceType('OratorHTTPProxy', require('orator-http-proxy'));
✗ Fable.addService('OratorHTTPProxy', ...)
Must use addServiceType before instantiateServiceProvider.
Sets up Orator with Restify and configures HTTP proxy to forward requests matching /api/v1/* to backend API.
const libFable = require('fable');
const libOrator = require('orator');
const libOratorServiceServerRestify = require('orator-serviceserver-restify');
const libOratorHTTPProxy = require('orator-http-proxy');
const _Fable = new libFable({
Product: 'MyProxyServer',
ServicePort: 8080
});
_Fable.serviceManager.addServiceType('Orator', libOrator);
_Fable.serviceManager.addServiceType('OratorServiceServer', libOratorServiceServerRestify);
_Fable.serviceManager.instantiateServiceProvider('Orator');
_Fable.serviceManager.instantiateServiceProvider('OratorServiceServer');
_Fable.serviceManager.addServiceType('OratorHTTPProxy', libOratorHTTPProxy);
_Fable.serviceManager.instantiateServiceProvider('OratorHTTPProxy', {
DestinationURL: 'http://backend-api:3000/',
RequestPrefixList: ['/api/v1/*']
});
_Fable.Orator.initialize(() => {
_Fable.OratorHTTPProxy.connectProxyRoutes();
_Fable.Orator.startService();
});
Errors
Common errors & fixes
TypeError: _Fable.OratorHTTPProxy is undefined
addServiceType or instantiateServiceProvider not called correctly.
fixEnsure you call addServiceType('OratorHTTPProxy', libOratorHTTPProxy) before instantiateServiceProvider. Error: Cannot find module 'fable'
Missing peer dependency 'fable'.
fixInstall fable: npm install fable
Error: Must call initialize before connecting proxy routes
connectProxyRoutes called outside initialize callback.
fixMove connectProxyRoutes into the initialize callback function provided to _Fable.Orator.initialize().
Audit
Dependencies
http-proxyrequiredUnderlying proxy library used to forward requests.
oratoroptionalPeer dependency; the proxy integrates with Orator's service server.