mysql-factory2

JSON →
library 2.1.4 ·javascript maintenance
verified Jun 5, 2026

mysql-factory2 is a simple ORM for MySQL, ported from an internal project to open-source. Version 2.1.4 is the latest stable release, with maintenance updates since 2022. It provides a model-based approach to CRUD operations on MySQL tables, offering an alternative to heavier ORMs like Sequelize. The package is ESM-only for Node.js environments (>=10) and is available on npm as mysql-factory2 due to login issues with the original mysql-factory package. It wraps all field definitions with backticks to prevent reserved word collisions and includes basic query filtering options.