{"id":26641642,"url":"https://github.com/omar-dulaimi/prisma-query-inspector","last_synced_at":"2025-08-23T20:04:48.280Z","repository":{"id":45661386,"uuid":"469349927","full_name":"omar-dulaimi/prisma-query-inspector","owner":"omar-dulaimi","description":"Prisma +2 tool to inspect all queries going to the database, formatted and with all params if any","archived":false,"fork":false,"pushed_at":"2024-04-11T17:47:23.000Z","size":255,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T19:08:02.764Z","etag":null,"topics":["databse","inspector","prisma","query"],"latest_commit_sha":null,"homepage":"","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/omar-dulaimi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":"omar-dulaimi","custom":["https://www.buymeacoffee.com/omardulaimi"]}},"created_at":"2022-03-13T11:23:02.000Z","updated_at":"2022-09-28T02:04:18.000Z","dependencies_parsed_at":"2024-09-18T17:11:37.362Z","dependency_job_id":null,"html_url":"https://github.com/omar-dulaimi/prisma-query-inspector","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":"0.21621621621621623","last_synced_commit":"7a4e48e69704e2b74d12d43d24ef8108e3e20dca"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/omar-dulaimi/prisma-query-inspector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omar-dulaimi%2Fprisma-query-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omar-dulaimi%2Fprisma-query-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omar-dulaimi%2Fprisma-query-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omar-dulaimi%2Fprisma-query-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omar-dulaimi","download_url":"https://codeload.github.com/omar-dulaimi/prisma-query-inspector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omar-dulaimi%2Fprisma-query-inspector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271767965,"owners_count":24817589,"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":["databse","inspector","prisma","query"],"created_at":"2025-03-24T18:34:40.597Z","updated_at":"2025-08-23T20:04:48.202Z","avatar_url":"https://github.com/omar-dulaimi.png","language":"TypeScript","funding_links":["https://github.com/sponsors/omar-dulaimi","https://www.buymeacoffee.com/omardulaimi"],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/prisma-query-inspector.svg)](https://badge.fury.io/js/prisma-query-inspector)\n[![npm](https://img.shields.io/npm/dt/prisma-query-inspector.svg)](https://www.npmjs.com/package/prisma-query-inspector)\n[![HitCount](https://hits.dwyl.com/omar-dulaimi/prisma-query-inspector.svg?style=flat)](http://hits.dwyl.com/omar-dulaimi/prisma-query-inspector)\n[![npm](https://img.shields.io/npm/l/prisma-query-inspector.svg)](LICENSE)\n\n# Prisma Query Inspector\n\nPrisma 2 tool to inspect all queries going to the database, formatted and with all params if any\n\u003cbr /\u003e\n\u003cbr /\u003e\n![prisma-query-inspector](https://user-images.githubusercontent.com/11743389/158146058-ce4f103c-4a27-470d-82f6-d8d94f9a5133.png)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.buymeacoffee.com/omardulaimi\"\u003e\n    \u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-black.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# Todo List\n\n- [x] MySQL support\n- [x] PostgreSQL support\n- [x] MariaDB support\n- [x] SQLite support\n- [x] Standard SQL support\n- [x] Make UI responsive\n\n## Table of Contents\n\n- [Installation](#installing)\n- [Usage](#usage)\n\n## Installation\n\nUsing npm:\n\n```bash\n$ npm install prisma-query-inspector --save-dev\n```\n\nUsing yarn:\n\n```bash\n$ yarn add prisma-query-inspector --dev\n```\n\n# Usage\n\n### 1- Enable Prisma query logs\n\n```js\nconst prisma = new PrismaClient({\n  log: [\n    {\n      emit: \"event\",\n      level: \"query\",\n    },\n  ],\n});\n```\n\u003cbr\u003e\n\n### 2- Register the query handler\n\n```js\nimport { queryHandler } from \"prisma-query-inspector\";\nprisma.$on(\"query\", queryHandler);\n```\n\u003cbr\u003e\n\n### 3- Add a new npm script in `package.json`\n\n```js\n\"inspect-queries\": \"prisma-query-inspector start\"\n```\n\n\u003cbr\u003e\n\n### 4- Now run it, then run your project afterwards\n\n```bash\nnpm run inspect-queries\n```\n\n\u003cbr\u003e\n\n### You're done!\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n# Available Options\n\n- port: number - inspector server port\n\n  - alias: `p`\n  - default: `7001`\n\n- language: string - database language used to format the queries\n  - alias: `l`\n  - default: `sql`\n  - possible values: `sql` | `mysql` | `mariadb` | `postgresql`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomar-dulaimi%2Fprisma-query-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomar-dulaimi%2Fprisma-query-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomar-dulaimi%2Fprisma-query-inspector/lists"}