Third-party plugins for SQL tooling in Draw.io. Contributions are welcome!
This project provides plugins that extend Draw.io with SQL and NoSQL capabilities, allowing you to:
- Import/export SQL DDLs
- Import/export OpenAPI JSONs
- Generate TypeScript interfaces
- Work with various database schemas
Download the plugin files directly from the releases page or use the direct links below:
- sql.js - Import/export SQL DDLs
- nosql.js - Import/export OpenAPI JSONs
- Alternative: nosql.min.js (minified version)
 
- nosql-ts.js - Import/export TypeScript interfaces and OpenAPI JSONs
- Alternative: nosql-ts.min.js (minified version)
- ⚠️ Note: Not VSCode compatible
 
git clone --branch main [email protected]:funktechno/sqltooling-drawio.gitThen use the files from the dist folder.
For VSCode users with the Draw.io Integration extension:
- Download the plugin files from the Download section above
- Add to your settings.json:
{
  "hediet.vscode-drawio.plugins": [
    {
      "file": "path\\to\\sqltooling-drawio\\dist\\sql.js"
    },
    {
      "file": "path\\to\\sqltooling-drawio\\dist\\nosql.js"
    }
  ]
}It's easiest to setup in the Draw.io Desktop to use the plugin. Follow these steps:
- Download and install Node.js
- 
Clone or Download Draw.io Desktop - Option A (Git Clone): git clone --recursive https://github.com/jgraph/drawio-desktop.git(1 GB clone)
- Option B (Download ZIP): Download from dev.zip and unzip
- ⚠️ Note: Don't download precompiled from Releases as you can't modify the plugins
 
- Option A (Git Clone): 
- 
Install Dependencies - Open command line (PowerShell, Command Prompt, Bash, Terminal)
- Navigate to the drawio-desktop folder: cd <path>/drawio-desktop
- Run: npm install
 
- 
Update SQL Plugin - Update drawio/src/main/webapp/plugins/sql.jswith changes from this branch
 
- Update 
- 
Run Application - Execute: npm start
 
- Execute: 
- 
Add Plugin - In the running application, go to Extras → Plugins → Add
- Select sqlplugin
- Close application and reopen
- Plugin is now installed and ready to use
 
- Import SQL DDLs into Draw.io diagrams
- Export diagrams as SQL DDLs
- Database schema visualization
- Import/export OpenAPI JSON specifications
- Generate classes/interfaces in your preferred language using OpenAPI specs
- API documentation visualization
- Import/export TypeScript interfaces
- Import/export OpenAPI JSONs
- Type-safe development workflows
- Node.js
- npm
npm install- npm run build:client:sql- Update- dist/sql.js
- npm run build:client:nosql- Update- dist/nosql.js
- npm run build:client:all- Update all files in- dist/*
Contributions are welcome! Please feel free to submit issues and pull requests.
See LICENSE file for details.

