Love this! I actually created something similar for MongoDB… albeit not nearly as feature-rich. you can check it out here: https://mongodb-erd.com, or by installing via npm.
npm install mongodb-erd-cli
and setting your MONGODB_URI environment variable:
export MONGODB_URI=mongodb+srv://mike:<pass>%21@yourcluster.zbcul.mongodb.net/yourdb
then running:
npx mongodb-erd --format png
Select your database, then your collections and I’ll create a diagram of the collections… the challenge as I’m sure you’re seeing is establishing relationships as there is no external definition of the relationships for MongoDB like there is with an RDBMS.
I’d love to collab / contribute… I’ll have a look at the repo.