serverless-mysql-rw

JSON →
library 1.0.12 ·javascript
verified Jun 5, 2026

A lightweight MySQL wrapper for serverless environments (AWS Lambda, Cloud Functions) that automatically detects read vs. write queries and routes them to appropriate read replicas or the primary database. Version 1.0.12 is the latest stable release, updated sporadically. Key differentiators: zero-config read/write splitting using SQL parsing, connection pooling optimized for serverless cold starts, and promise-based API. Simpler than typeorm or knex for basic MySQL access, with built-in replica routing.