Skip to content

MrHoss/Replicator

Repository files navigation

Replicator

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

🚀 How It Works

  1. The service receives an HTTP request.
  2. It reads the list of target URLs from endpoints.json.
  3. It forwards (replicates) the same request to all configured endpoints.

📦 Installation

git clone <your-repository-url>
cd replicator
npm install

▶️ Running the Project

npm start

Or:

node index.js

The server will start and begin listening for incoming requests.


⚙️ Configuration

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.


🛠 Requirements

  • Node.js 18+ (recommended)

📄 License

GNU General Public License v3.0

About

A Node.js service that captures incoming requests and automatically forwards them to multiple URLs defined in a JSON file, making it easier to handle integrations, testing, and data synchronization across APIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors