Replicator is a lightweight Node.js service that captures incoming HTTP requests and replicates them to multiple target URLs defined in a local configuration file.
It is useful for:
- API integrations
- Webhook replication
- Load simulation
- Data synchronization between services
- Testing distributed systems
- The service receives an HTTP request.
- It reads the list of target URLs from
endpoints.json. - It forwards (replicates) the same request to all configured endpoints.
git clone <your-repository-url>
cd replicator
npm installnpm startOr:
node index.jsThe server will start and begin listening for incoming requests.
All target URLs must be added to the endpoints.json file.
Example:
[
"https://api1.example.com/webhook",
"https://api2.example.com/webhook",
"http://localhost:4000/test"
]Just add or remove URLs from this file and restart the service if necessary.
- Node.js 18+ (recommended)
GNU General Public License v3.0