{"id":50445729,"url":"https://github.com/devsimsek/dds","last_synced_at":"2026-05-31T21:30:41.814Z","repository":{"id":339870019,"uuid":"1163657710","full_name":"devsimsek/dds","owner":"devsimsek","description":"Database Diagram Studio","archived":false,"fork":false,"pushed_at":"2026-02-22T19:19:58.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-21T00:02:06.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devsimsek.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":"2026-02-22T00:11:18.000Z","updated_at":"2026-02-22T19:19:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/devsimsek/dds","commit_stats":null,"previous_names":["devsimsek/dds"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devsimsek/dds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsimsek%2Fdds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsimsek%2Fdds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsimsek%2Fdds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsimsek%2Fdds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devsimsek","download_url":"https://codeload.github.com/devsimsek/dds/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsimsek%2Fdds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33750474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":[],"created_at":"2026-05-31T21:30:41.121Z","updated_at":"2026-05-31T21:30:41.809Z","avatar_url":"https://github.com/devsimsek.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Database Diagram Studio (DDS)\n\nA lightweight, browser-based database diagram tool that lets you visually design and document database schemas — no installation required.\n\n**Live Demo:** [https://devsimsek.github.io/dds](https://devsimsek.github.io/dds)\n\n## Features\n\n- Create and manage database tables visually\n- Define columns with types and constraints\n- Draw relationships between tables\n- Export diagrams as PNG, PDF, DBML, MySQL SQL, or PostgreSQL SQL\n- **Auto-save to localStorage** — your work is automatically saved in the browser and restored on next visit\n- **Open files** — import existing `.dbml` files or `.sql` files (MySQL / PostgreSQL `CREATE TABLE` statements) directly into the editor\n- Runs entirely in the browser — no backend needed\n\n## Usage\n\nOpen the live demo or clone the repository and open `index.html` in your browser.\n\n```bash\ngit clone https://github.com/devsimsek/dds.git\ncd dds\nopen index.html\n```\n\n## Toolbar Reference\n\n| Button | Action |\n|--------|--------|\n| ☐ New | Clear the current diagram (prompts for confirmation) |\n| 📄 Load Example | Load the built-in e-commerce example schema |\n| 📂 Open File | Open a `.dbml` or `.sql` file from your computer |\n| PNG / PDF | Export the diagram as an image or document |\n| DBML | Download the current schema as a `.dbml` file |\n| MySQL / PostgreSQL | Generate and download SQL DDL |\n| ⊞ Auto Layout | Automatically arrange table cards |\n| ⤢ Fit | Zoom to fit all tables on screen |\n| ☀ Theme | Cycle between Auto / Dark / Light themes |\n| ⊹ Grid | Toggle grid snapping (also `G` key) |\n\n## SQL File Import\n\nDDS can parse `.sql` files containing `CREATE TABLE` statements and convert them to DBML automatically. Supported dialects:\n\n- **MySQL** — handles `AUTO_INCREMENT`, backtick-quoted identifiers, `ENGINE=InnoDB`, etc.\n- **PostgreSQL** — handles `SERIAL`/`BIGSERIAL`, double-quoted identifiers, `BYTEA`, `JSONB`, `TIMESTAMPTZ`, etc.\n\nForeign keys defined inline (`REFERENCES`) or via `ALTER TABLE … ADD FOREIGN KEY` are imported as `ref:` attributes.\n\n## Auto-Save\n\nThe editor content is automatically saved to `localStorage` under the key `dds-workspace` after every change (with an 800 ms debounce). A **● Saved** indicator appears briefly in the bottom-right status bar after each save. On next page load the saved schema is restored automatically. Clicking **New** clears the saved workspace.\n\n## Development\n\nThis project was developed with the assistance of **Claude Sonnet 4.6** by Anthropic.\n\n## License\n\nMIT License — see [LICENSE](LICENSE) or [devsimsek.mit-license.org](https://devsimsek.mit-license.org) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsimsek%2Fdds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevsimsek%2Fdds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsimsek%2Fdds/lists"}