{"id":21505446,"url":"https://github.com/funktechno/sqltooling-drawio","last_synced_at":"2026-02-07T03:03:19.282Z","repository":{"id":245614524,"uuid":"818724448","full_name":"funktechno/sqltooling-drawio","owner":"funktechno","description":"3rd plugins for sql tooling in drawio","archived":false,"fork":false,"pushed_at":"2025-10-24T19:55:21.000Z","size":4925,"stargazers_count":19,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-10-24T21:24:46.189Z","etag":null,"topics":["code-generation","codeparser","contributions-welcome","drawio","er-diagram","hacktoberfest","jest","sql-ddl","sql-generator","sqltools","typescript","uml-diagram"],"latest_commit_sha":null,"homepage":"https://github.com/funktechno/sqltooling-drawio/blob/main/README.md","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funktechno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-22T17:13:12.000Z","updated_at":"2025-10-24T19:57:46.000Z","dependencies_parsed_at":"2024-07-05T19:49:51.274Z","dependency_job_id":"27e58397-e2d0-47cf-b4ac-4ce7d83acb8d","html_url":"https://github.com/funktechno/sqltooling-drawio","commit_stats":null,"previous_names":["lastlink/sqltooling-drawio","funktechno/sqltooling-drawio"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/funktechno/sqltooling-drawio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funktechno%2Fsqltooling-drawio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funktechno%2Fsqltooling-drawio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funktechno%2Fsqltooling-drawio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funktechno%2Fsqltooling-drawio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funktechno","download_url":"https://codeload.github.com/funktechno/sqltooling-drawio/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funktechno%2Fsqltooling-drawio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29185116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"online","status_checked_at":"2026-02-07T02:00:07.217Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generation","codeparser","contributions-welcome","drawio","er-diagram","hacktoberfest","jest","sql-ddl","sql-generator","sqltools","typescript","uml-diagram"],"created_at":"2024-11-23T19:03:24.329Z","updated_at":"2026-02-07T03:03:19.274Z","avatar_url":"https://github.com/funktechno.png","language":"TypeScript","readme":"# SQL Tooling for Draw.io\n\nThird-party plugins that add SQL and NoSQL tooling to Draw.io. Contributions welcome!\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Download](#download)\n  - [Option 1: Direct Download](#option-1-direct-download)\n  - [Option 2: Clone Repository](#option-2-clone-repository)\n- [Installation](#installation)\n  - [VSCode Integration](#vscode-integration)\n  - [Desktop App Integration](#desktop-app-integration)\n- [Features](#features)\n  - [SQL Plugin (`sql.js`)](#sql-plugin-sqljs)\n  - [NoSQL Plugin (`nosql.js`)](#nosql-plugin-nosqljs)\n  - [TypeScript Plugin (`nosql-ts.js`)](#typescript-plugin-nosql-tsjs)\n- [Examples](#examples)\n- [Development](#development)\n  - [Prerequisites](#prerequisites)\n  - [Setup](#setup)\n  - [Build Commands](#build-commands)\n- [Contributing](#contributing)\n- [License](#license)\n\n---\n\n## Overview\n\nThis project provides Draw.io plugins for working with SQL and NoSQL artifacts:\n\n- Import and export SQL DDLs\n- Import and export OpenAPI (OpenAPI 3) JSON\n- Generate TypeScript interfaces\n- Visualize and edit database schemas in Draw.io\n\n## Download\n\n### Option 1: Direct Download\n\nGet the built plugin files from the releases page or use the raw links:\n\n- [Releases](https://github.com/funktechno/sqltooling-drawio/releases)\n- `dist/sql.js` — SQL import/export: https://raw.githubusercontent.com/funktechno/sqltooling-drawio/main/dist/sql.js\n- `dist/nosql.js` — OpenAPI import/export: https://raw.githubusercontent.com/funktechno/sqltooling-drawio/main/dist/nosql.js\n- `dist/nosql-ts.js` — TypeScript \u0026 OpenAPI: https://raw.githubusercontent.com/funktechno/sqltooling-drawio/main/dist/nosql-ts.js\n  - ⚠️ **Note**: Not VSCode compatible\n\n\u003e Note: Minified variants (e.g., `nosql.min.js`) are available for production use.\n\n### Option 2: Clone Repository\n\nClone the repo and use the files from `dist/`:\n\n```bash\ngit clone --branch main https://github.com/funktechno/sqltooling-drawio.git\ncd sqltooling-drawio\n```\n\n\n## Installation\n\n### VSCode Integration\n\nIf you use the Draw.io extension for VSCode (hediet.vscode-drawio), add the plugin files to your settings:\n* windows\n```json\n{\n  \"hediet.vscode-drawio.plugins\": [\n    {\n      \"file\": \"path\\\\to\\\\sqltooling-drawio\\\\dist\\\\sql.js\"\n    },\n    {\n      \"file\": \"path\\\\to\\\\sqltooling-drawio\\\\dist\\\\nosql.js\"\n    }\n  ]\n}\n```\n* mac\n```json\n{\n  \"hediet.vscode-drawio.plugins\": [\n    { \"file\": \"path/to/sqltooling-drawio/dist/sql.js\" },\n    { \"file\": \"path/to/sqltooling-drawio/dist/nosql.js\" }\n  ]\n}\n```\n\n### Desktop App Integration\n\nTo run the plugin in the Draw.io Desktop app:\n\n-\n1. **Clone or Download Draw.io Desktop**\n   - **Option A (Git Clone)**: `git clone --recursive https://github.com/jgraph/drawio-desktop.git` (1 GB clone)\n   - **Option B (Download ZIP)**: Download from [dev.zip](https://github.com/jgraph/drawio-desktop/archive/refs/heads/dev.zip) and unzip\n   - ⚠️ **Note**: Don't download precompiled from Releases as you can't modify the plugins\n2. Install dependencies: `npm install` in the `drawio-desktop` directory.\n3. Replace `drawio/src/main/webapp/plugins/sql.js` with the built `dist/sql.js` from this repo.\n4. Start the app: `npm start`.\n5. Add the plugin via Extras → Plugins → Add, then restart Draw.io.\n\n## Features\n\n### SQL Plugin (`sql.js`)\n- Import SQL DDL into Draw.io diagrams\n- Export diagrams to SQL DDL\n- Visualize database schema relationships\n\n### NoSQL Plugin (`nosql.js`)\n- Import and export OpenAPI (OpenAPI 3) JSON\n- Generate language bindings using OpenAPI\n- Visualize API models and relationships\n\n### TypeScript Plugin (`nosql-ts.js`)\n- Import/export TypeScript interfaces\n- Interoperate with OpenAPI generation\n\n## Examples\n\n### SQL Import/Export\n\n![SQL Import Menu](./assets/menu_from_sql.png)\n\n### Export Options\n\n![Export Menu](./assets/menu_export_as_to_sql.png)\n\n### Usage\n\nShapes: More Shapes → Entity Relation\n\n![Entity Relation Shapes](./assets/entity_relation_shapes.png)\n\n## Development\n\n### Prerequisites\n- Node.js 22\n- npm\n\n### Setup\n\n```bash\nnpm install\n```\n\n### Build Commands\n\n- `npm run build:client:sql` — build `dist/sql.js`\n- `npm run build:client:nosql` — build `dist/nosql.js`\n- `npm run build:client:all` — build all files under `dist/`\n\n## Contributing\n\nContributions are welcome. Please open issues or submit PRs following standard contribution guidelines.\n\n## License\n\nSee the -[LICENSE](LICENSE) file for license details.","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunktechno%2Fsqltooling-drawio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunktechno%2Fsqltooling-drawio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunktechno%2Fsqltooling-drawio/lists"}