Rest-mysql is a minimal REST server that auto-generates CRUD endpoints from MySQL database schema. Current stable version 1.0.19, low release cadence. Differentiators: zero-config REST API from any MySQL database, TypeScript types included, simple router pattern. Limited flexibility compared to ORM-based solutions.
npm install rest-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a REST server from MySQL database config, listening on port 3000.
Ensure MySQL server is accessible with provided credentials.
Use a separate database user with limited table access.
Upgrade to config object format {'host': '...', 'user': '...', ...}npm install rest-mysql and ensure project uses ES modules (type: module in package.json) or import with .js extension.
Use 'import RestMysql from 'rest-mysql'' instead of 'require()'.
Verify MYSQL_HOST, MYSQL_PORT, user, password, and database name.