Registry / http-networking / orator-http-proxy

orator-http-proxy

JSON →
library1.0.5jsnpmunverified

HTTP proxy pass-through module for Orator service servers. It forwards incoming requests matching configured route prefixes to a backend destination URL. Works with Fable and Orator frameworks. Supports GET, PUT, POST, DELETE. Handles HTTP-to-HTTPS proxying. Version 1.0.5 is stable but low activity. Similar to http-proxy-middleware but specifically integrated with the Orator ecosystem.

npm install orator-http-proxy
INSTALL
IMPORT
SIG · ORATOR-HTTP-PROXY
O
orator-http-proxy
http-networkingjavascriptv1.0.5
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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
musl
node 18226 runs
build_error
glibc
node 18226 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(); });
Debug
Known issues
gotchaPackage is CommonJS only. Using ES import syntax will result in an error.
fix
Use require() instead of import.
affects: *
gotchaOrator, fable, and orator-serviceserver-restify are required as peer dependencies but not listed in package.json.
fix
Install them manually: npm install fable orator orator-serviceserver-restify
affects: *
gotchaProxy routes must be connected after Orator is initialized and before startService.
fix
Call connectProxyRoutes inside the initialize callback.
affects: *
deprecatedFable version compatibility unknown; may break if Fable major version bumps.
fix
Check the Fable version used; ensure it's compatible with existing tests.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: _Fable.OratorHTTPProxy is undefined
addServiceType or instantiateServiceProvider not called correctly.
fix
Ensure you call addServiceType('OratorHTTPProxy', libOratorHTTPProxy) before instantiateServiceProvider.
Error: Cannot find module 'fable'
Missing peer dependency 'fable'.
fix
Install fable: npm install fable
Error: Must call initialize before connecting proxy routes
connectProxyRoutes called outside initialize callback.
fix
Move connectProxyRoutes into the initialize callback function provided to _Fable.Orator.initialize().
Upgrade
Version history
1.0.5latest on npm
Audit
Dependencies
http-proxyrequiredUnderlying proxy library used to forward requests.
oratoroptionalPeer dependency; the proxy integrates with Orator's service server.
Agent activity
2 hits · last 30 days
node
2
Resources
orator-http-proxy — npm install orator-http-proxy · libregistry