Monasticx is a TypeScript-based sync service designed to maintain perfect sync between MongoDB and Elasticsearch.
npm install monasticxbash
Clone the repository
git clone https://github.com/chiefdfo/monasticx.git
cd monasticx
or Install through npm
npm install -g monasticx
Configure your environment variables
cp .env.example .env
Run the service
npx monasticx
`
---
πͺΆ Philosophy
> In monasteries, monks preserve knowledge through quiet devotion.
> Monasticx follows the same principle β preserving data integrity and order between systems.
> No noise. No chaos. Just disciplined synchronization.
---
π The API Scriptorium (Endpoints)
Once running, monasticx exposes a small API (defaulting to http://localhost:3000):
$3
Provides a real-time JSON object detailing the syncer's health, including total documents processed, error counts, and whether the change stream is running.
$3
Triggers a full re-sync of the entire collection. This is a "fire and forget" background taskβthe API will return a 202 Accepted` message immediately while the sync begins.