{"library":"mongoose-profiling-middleware","type":"library","category":null,"description":"mongoose-profiling-middleware is a utility package for Node.js applications that integrates with Mongoose to leverage MongoDB's native profiling capabilities. It automatically injects the current source file and line number as a `$comment` into every Mongoose query executed against a MongoDB instance. This feature allows developers to easily identify the exact code location responsible for slow or frequent database operations when analyzing the MongoDB `system.profile` collection. The current stable version, 1.0.2, offers a straightforward, side-effect-based integration. This middleware simplifies the process of identifying performance bottlenecks by automating query annotation, distinguishing it from manual comment insertion. Its primary function is to provide immediate context for database query performance, thereby aiding optimization efforts without requiring significant application code changes.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","mongoose","middleware","profiler"],"install":[{"cmd":"npm install mongoose-profiling-middleware","imports":["require('mongoose-profiling-middleware');","import 'mongoose-profiling-middleware';"]},{"cmd":"yarn add mongoose-profiling-middleware","imports":[]},{"cmd":"pnpm add mongoose-profiling-middleware","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mongoose-profiling-middleware","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mongoose-profiling-middleware/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Wed Jul 22","install_tag":null}}