monSQLize
The MongoDB Powerhouse for Node.js

Full TypeScript · 56+ Enhanced Methods · Multi-Pool · Saga · Caching · 100% v1 Compatible

monSQLize logomonSQLize logo

⚡ Smart Two-Level Cache

L1 in-memory (LRU) + L2 Redis with zero code changes. Query performance boost 10~100×. Pattern-based invalidation, distributed cache sync built-in.

🔎 56+ Enhanced Query Methods

findPage (cursor/offset pagination), findOneById, findByIds, findAndCount, stream, explain and more — the most complete MongoDB query extension set.

🏢 Enterprise-Grade Distributed

Distributed locks, SSH tunnels, Saga distributed transactions, Change Stream sync, slow-query logging — all zero-config out of the box.

🌐 Multi-Pool & Read/Write Split

Load balancing, automatic failover, and pool().use().scopedCollection() chain access for advanced multi-database architectures.

🧩 Optional Model Layer

Schema validation, lifecycle hooks, and Populate associations (6 methods). Progressive adoption — drop in without touching existing code.

🔷 Full TypeScript

Complete type declarations, 100% v1 API compatible, 2284/2284 assertions pass in the current release preflight. Works side-by-side with Mongoose or native driver projects.

🔄 Saga Transactions

Distributed saga orchestration with automatic compensation. Define multi-step workflows with rollback semantics across services.

📊 Slow-Query Logging

Automatic slow-query detection and logging with configurable thresholds. MongoDB and in-memory storage adapters included.

🔗 Chain Query API

Fluent builder API — find().where().select().sort().skip().limit().lean() — composes complex queries with full TypeScript inference.