An HTTP proxy with multi-backend failover support and GET caching for Node.js (v0.1.2, compatible with Node >=0.10.5). It proxies incoming requests to a list of backends, automatically failing over to the next available backend if one is down, and can serve cached responses from a configurable cache driver (default fs). Useful for building resilient proxy layers. Supports both URL and object-based backend definitions, configurable timeouts, and backend health monitoring via periodic HTTP tests.
npm install failoverproxyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a failoverProxy instance with two server backends and a cache backend, then starts the proxy.
Use a compatible Node.js version (0.10.x or 0.12.x) or check for updates.
Consider alternatives like http-proxy-agent, http-proxy, or custom solutions.
Always specify a path for cache backends: { type: 'cache', driver: 'fs', path: './cache' }.Provide a backendSelector function if different behavior is needed.
Run `npm install failoverproxy` in your project directory.
Use `const { createProxy } = require('failoverproxy');`Change the local port in config or kill the process using that port.
No dependency data recorded yet.