wf-mysql-ddd is a lightweight Node.js library that bridges MySQL stored procedures with a RESTful API, following a Domain-Driven Design (DDD) pattern. Current version: 1.0.21. It allows developers to expose MySQL stored procedures as API endpoints with automatic routing and user authentication via Redis-backed token cookies. Key differentiators include minimal setup, direct mapping of stored procedures to HTTP endpoints, and built-in session management. Release cadence is irregular; no updates since initial releases.
npm install wf-mysql-dddNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the library with MySQL and Redis config, then mounts the auto-generated API router at /api.
Prefix the stored procedure name with 'ddd_' if it should be accessible from the API.
Set ddd.redis to a valid Redis client object with host and port.
Set your login system to use 'token' cookie.
Run 'npm install wf-mysql-ddd' in your project directory.
Ensure Redis is installed and configured in ddd.redis.
Verify the host, user, password, and database in your config file.