mysql-json-schema

JSON →
library 1.2.0 ·javascript
verified Jun 5, 2026

Export MySQL database schemas to JSON format, including table relationships. Version 1.2.0. This library extracts table structure, fields, and foreign key relations from a MySQL database and outputs them as JSON. It also supports heuristic discovery of relationships by field naming conventions (prefix/suffix aliases). It provides both synchronous and asynchronous connection methods, as well as granular functions for fetching schemas, table lists, fields, and relations. Suitable for documentation generation or migration tasks.