{"id":22971270,"url":"https://github.com/r48n34/db-erd-gen","last_synced_at":"2025-09-23T20:56:18.299Z","repository":{"id":110045106,"uuid":"584423548","full_name":"r48n34/db-erd-gen","owner":"r48n34","description":"🗃️ Free DrawSQL like website","archived":false,"fork":false,"pushed_at":"2024-11-23T16:13:46.000Z","size":877,"stargazers_count":24,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-23T17:20:28.330Z","etag":null,"topics":["knex","kysely","postgresql","sql","website"],"latest_commit_sha":null,"homepage":"https://db-erd-gen.vercel.app/home","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/r48n34.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}},"created_at":"2023-01-02T14:26:35.000Z","updated_at":"2024-11-15T09:27:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e580198-ca1c-4ed0-96b4-8a4ede4f9ac5","html_url":"https://github.com/r48n34/db-erd-gen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r48n34%2Fdb-erd-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r48n34%2Fdb-erd-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r48n34%2Fdb-erd-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r48n34%2Fdb-erd-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r48n34","download_url":"https://codeload.github.com/r48n34/db-erd-gen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229759795,"owners_count":18119874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["knex","kysely","postgresql","sql","website"],"created_at":"2024-12-14T22:16:46.186Z","updated_at":"2025-09-23T20:56:13.250Z","avatar_url":"https://github.com/r48n34.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💾 db-erd-gen\n\u003ca href=\"https://github.com/r48n34/db-erd-gen\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/r48n34/db-erd-gen/test.yml\" /\u003e\u003c/a\u003e\n\n✏️ Free DrawSQL like website but free forever  \n\n![https://db-erd-gen.vercel.app/](/assert/banners.jpg)\n\nURL:\nhttps://db-erd-gen.vercel.app/\n\n## 💡 Features  \n1. Free forever and open sources. \n2. Save SQL in various DB format.   \n3. Easy to use / store GUI website.  \n4. Low learning curve UI.   \n5. No server involved, all in local.   \n\n## 🔊 Current supported output  \n- Postgres raw  \n- MySQL / MariaDB raw \n- SQLite raw\n- knex.js  \n- kysely ts types\n- kysely Postgres\n- kysely sqlite\n- Typescript types\n- Zod scheme types\n- Yup scheme types\n- Valibot scheme types\n- Prisma Postgres\n- Prisma MySQL\n- Drizzle ORM (Postgres)\n- Drizzle ORM (MySQL)\n- Drizzle ORM (sqlite)\n- Sequelize (Postgres, MySQL, sqlite) (Thanks [roshangautam07](https://github.com/roshangautam07))\n- Mongoose Scheme (TBC)\n\n## 🗺️ Roadmap\n- ✅ With Zod type checking\n- ✅ Update Maininte to v7\n- ✅ Drizzle ORM Support\n- ⬜️ i18n adapts\n- ⬜️ Allow to dup table\n\n## 📝 Todo\n- ✅ Support kysely db migrate types output  \n- ✅ Support kysely ts types output  \n- ✅ Support SQLite types output  \n- ✅ Support MySQL / MariaDB types output  \n- ✅ Support typescript normal types\n- ✅ Support zod types generate\n- ✅ Support Tables CRUD code for several frameworks\n- ✅ Support Drizzle ORM types output \n- ⬜️ Add enums options and input for enums\n- ⬜️ Support defaultTo string in general\n- ⬜️ Support defaultTo string in kysely\n- ✅ Support Prisma types output  \n- ✅ Add UNIQUE types  \n- ✅ Support sqlite types output    \n- ⬜️ More features  \n- ✅ Update UI  \n- ⬜️ Testing vitest  \n\n## 🏠 Self hosting (Nodejs base)\n1. Clone the project to your environment.\n```bash\ngit clone https://github.com/r48n34/db-erd-gen.git\n```\n\n2. Install packages with npm / yarn.\n```bash\n# Install with yarn for samples\nyarn\n```\n\n3. Start the project with dev mode.\n```bash\n# Start with dev\nyarn dev\n```\n\n4. Build the project.\n```bash\n# Build to production\nyarn build\n```\n\n5. Preview the build project.\n```bash\nyarn preview\n```\n\n## 🐳 Self hosting (Docker)\n1. Build the docker container with the following command.\n```bash\ndocker build . -t db-erd-gen\n```\n\n2. After builded, run the container.\n```bash\ndocker run -d -p 5174:5174 db-erd-gen:latest\n```\n\n## 🚗 License\nDistributed under the `MIT License`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr48n34%2Fdb-erd-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr48n34%2Fdb-erd-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr48n34%2Fdb-erd-gen/lists"}