{"id":27498332,"url":"https://github.com/bhanu-code/db-drawer","last_synced_at":"2025-08-23T05:32:55.069Z","repository":{"id":238256997,"uuid":"785138245","full_name":"Bhanu-code/db-drawer","owner":"Bhanu-code","description":"database schema visualization cli tool on localhost for node.js environment","archived":false,"fork":false,"pushed_at":"2024-10-03T08:21:10.000Z","size":200,"stargazers_count":9,"open_issues_count":21,"forks_count":18,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-23T05:32:09.931Z","etag":null,"topics":["cli","css","db-drawer","ejs","expressjs","girlscriptsummerofcode","gssoc24","hacktoberfest","javascript","mongoose","nodejs","npm-package","open-source","prisma-orm","process-manager","sequelize","typeorm","visualization","vscode"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/db-drawer","language":"EJS","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/Bhanu-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-04-11T09:18:15.000Z","updated_at":"2024-10-05T09:10:25.000Z","dependencies_parsed_at":"2024-11-15T10:57:12.621Z","dependency_job_id":"e1c2924b-6540-4d7b-bd5e-6d572811f217","html_url":"https://github.com/Bhanu-code/db-drawer","commit_stats":null,"previous_names":["bhanu-code/db-drawer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bhanu-code/db-drawer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhanu-code%2Fdb-drawer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhanu-code%2Fdb-drawer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhanu-code%2Fdb-drawer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhanu-code%2Fdb-drawer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bhanu-code","download_url":"https://codeload.github.com/Bhanu-code/db-drawer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhanu-code%2Fdb-drawer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745600,"owners_count":24813509,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":["cli","css","db-drawer","ejs","expressjs","girlscriptsummerofcode","gssoc24","hacktoberfest","javascript","mongoose","nodejs","npm-package","open-source","prisma-orm","process-manager","sequelize","typeorm","visualization","vscode"],"created_at":"2025-04-17T08:32:22.701Z","updated_at":"2025-08-23T05:32:55.014Z","avatar_url":"https://github.com/Bhanu-code.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# db-drawer\n![db-drawer](db-drawer-logo.png)\n\nA cli tool for visualising your database schemas. db-drawer checks the data model schemas of your project (\"./models\") folder and visualises by running on localhost in node environment. it attaches to your project as an npm package.\n\nCurrently, we have support for Sequelize, Mongoose, TypeORM, and Prisma.\n\nRefer to Learn.md for building the project: \u003ca href=\"https://github.com/Bhanu-code/db-drawer/blob/main/Learn.md\"\u003eLearn.md\u003c/a\u003e\n\nVideo demonstration of the project: \u003ca href=\"https://youtu.be/bcp6hE_R75U?si=Rd8dj-SLtZwtVjwH\"\u003eDemonstration video\u003c/a\u003e\n\nJoin Our Discord channel: \u003ca href=\"https://discord.gg/bgnvc7Wc\"\u003eDiscord\u003c/a\u003e\n\n\n## Installation\n\nInstall db-drawer with npm\n\n### Local installation\n\n```javascript\n//Install as dev dependency in your project\nnpm install db-drawer --save-dev\n\n//For sequelize\nnpx db-draw s\n\n//For mongoose\nnpx db-draw m\n\n//For TypeORM\nnpx db-draw t\n\n//For Prisma\nnpx db-draw p\n```\n\n### Global installation\n\n```javascript\nnpm install -g db-drawer\n\ncd /path/to/your/project\n\n//For sequelize\ndb-draw s\n\n//For mongoose\ndb-draw m\n\n//For TypeORM\ndb-draw t\n\n//For Prisma\ndb-draw p\n```\nAfter executing the command, it will run localhost where you can see your schema, relationship and constraints in a tablular format\n    \n## Screenshots\n\n![db-draw with mongoDB](mongo2.png)\n![db-draw with SQL](sql.png)\n\n## Local Setup\n\nNote: [ Don't commit to main branch, always create a seprate branch before raising PR ]\n\n```javascript\n// You will need a demo project that has \"/models\" folder to see your models visualised.\n//To setup the project locally, for the repository and copy the forked copy the https url\n\n//In the terminal write\ngit clone [repo-url]\n\ncd db-drawer\n\nnpm install\n\n// Have a project that has \"models\" folder\n//Install dbdrawer-mongo to the project globally\nnpm install -g \n\n// Open the demo project\ncd /path/to/your/project\n\n//Run the command for sequelize\ndb-draw s\n\n//Run the command for mongoose\ndb-draw m\n\n//Run the command for TypeORM\ndb-draw t\n\n//Run the command for Prisma\ndb-draw p\n```\n\nHit enter and it will run localhost where you can see your schema, relationship and constraints in a tablular format\n\nCreate a branch, make changes and raise PR\n\n\n## Contributing\n\nContributions are always welcome!\n\nSee `contributing.md` for ways to get started.\n\nPlease adhere to this project's `code of conduct`.\n\n\n## License\n\n[MIT License](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhanu-code%2Fdb-drawer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhanu-code%2Fdb-drawer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhanu-code%2Fdb-drawer/lists"}