Slim Node MySQL

JSON →
library 4.0.3 ·javascript
verified Jun 5, 2026

A lightweight MySQL database abstraction layer for Node.js that simplifies pooling and prepared statements. Version 4.0.3 is the current stable release, with semi-regular updates from a single maintainer. It wraps the popular mysql2 driver, providing an async/await interface with named parameter support (using @param syntax) and TypeScript type definitions built-in. Key differentiators: no external dependencies beyond mysql2, minimal API surface with methods like query(), execute(), getOne(), getValue(), and exists(), and automatic connection pooling via a single class instance. Suitable for small-to-medium projects wanting a thin wrapper without ORM overhead.