Skip to content

r48n34/db-erd-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’พ db-erd-gen

โœ๏ธ Free DrawSQL like website but free forever

https://db-erd-gen.vercel.app/

URL: https://db-erd-gen.vercel.app/

๐Ÿ’ก Features

  1. Free forever and open sources.
  2. Save SQL in various DB format.
  3. Easy to use / store GUI website.
  4. Low learning curve UI.
  5. No server involved, all in local.

๐Ÿ”Š Current supported output

  • Postgres raw
  • MySQL / MariaDB raw
  • SQLite raw
  • knex.js
  • kysely ts types
  • kysely Postgres
  • kysely sqlite
  • Typescript types
  • Zod scheme types
  • Yup scheme types
  • Valibot scheme types
  • Prisma Postgres
  • Prisma MySQL
  • mikro-orm (Todo)
  • Mongoose Scheme (TBC)

๐Ÿ—บ๏ธ Roadmap

  • โœ… With Zod type checking
  • โœ… Update Maininte to v7
  • โฌœ๏ธ i18n adapts
  • โฌœ๏ธ mikro-orm & Mongoose Scheme adapts

๐Ÿ“ Todo

  • โœ… Support kysely db migrate types output
  • โœ… Support kysely ts types output
  • โœ… Support SQLite types output
  • โœ… Support MySQL / MariaDB types output
  • โœ… Support typescript normal types
  • โœ… Support zod types generate
  • โœ… Support Tables CRUD code for several frameworks
  • โฌœ๏ธ Add enums options and input for enums
  • โฌœ๏ธ Support defaultTo string in general
  • โฌœ๏ธ Support defaultTo string in kysely
  • โœ… Support Prisma types output
  • โœ… Add UNIQUE types
  • โœ… Support sqlite types output
  • โฌœ๏ธ More features
  • โœ… Update UI
  • โฌœ๏ธ Testing vitest

๐Ÿ  Self hosting (Nodejs base)

  1. Clone the project to your environment.
git clone https://github.com/r48n34/db-erd-gen.git
  1. Install packages with npm / yarn.
# Install with yarn for samples
yarn
  1. Start the project with dev mode.
# Start with dev
yarn dev
  1. Build the project.
# Build to production
yarn build
  1. Preview the build project.
yarn preview

๐Ÿณ Self hosting (Docker)

  1. Build the docker container with the following command.
docker build . -t db-erd-gen
  1. After builded, run the container.
docker run -d -p 5174:5174 db-erd-gen:latest

License

Distributed under the MIT License.