{"id":13847391,"url":"https://github.com/nebrius/request-inspector","last_synced_at":"2025-09-20T22:32:43.993Z","repository":{"id":29251102,"uuid":"119862761","full_name":"nebrius/request-inspector","owner":"nebrius","description":"A request timing diagnostic tool for Web and Node.js applications","archived":false,"fork":false,"pushed_at":"2023-03-04T02:34:27.000Z","size":658,"stargazers_count":53,"open_issues_count":17,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-03T00:55:10.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nebrius.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}},"created_at":"2018-02-01T16:33:07.000Z","updated_at":"2025-01-21T20:48:20.000Z","dependencies_parsed_at":"2024-01-15T20:49:56.621Z","dependency_job_id":"249bf2aa-43ed-4149-a910-2682ec11eb2b","html_url":"https://github.com/nebrius/request-inspector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nebrius/request-inspector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebrius%2Frequest-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebrius%2Frequest-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebrius%2Frequest-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebrius%2Frequest-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nebrius","download_url":"https://codeload.github.com/nebrius/request-inspector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebrius%2Frequest-inspector/sbom","scorecard":{"id":678203,"data":{"date":"2025-08-11","repo":{"name":"github.com/nebrius/request-inspector","commit":"d145292f88e53a992ca5c342c400ae2d1db659f7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 16 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"54 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-rq8g-5pc5-wrhr","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T22:13:38.643Z","repository_id":29251102,"created_at":"2025-08-21T22:13:38.643Z","updated_at":"2025-08-21T22:13:38.643Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276033097,"owners_count":25573478,"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-09-20T02:00:10.207Z","response_time":63,"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":[],"created_at":"2024-08-04T18:01:18.803Z","updated_at":"2025-09-20T22:32:43.667Z","avatar_url":"https://github.com/nebrius.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Request Inspector\n\n***WARNING:*** _This software is still in beta. It is highly likely that you will encounter bugs. If you do, please file an issue on GitHub and let me know!_\n\nRequest Inspector is an HTTP(S) request diagnostic tool for Node.js servers.\n\nWhen a web or mobile client makes an HTTP call to a backend, it can be tricky\nto find out why that particular request took X amount of time. This is especially\ntrue in the days of microservices, where servers make calls to servers which make\ncalls to other servers. How does one correlate timing information across all of\nthese microservices? Enter Request Inspector.\n\nRequest inspector works by adding a header to all HTTP requests that is then used\nto track the request through multiple systems. Request inspector also uses continuation\nlocal storage in Node.js to track that request through asynchronous calls locally.\nThis data is then sent to a special Request Inspector server which aggregates and\ncorrelates all of this data.\n\nHere is a screenshot showing the timeline working across three separate servers:\n\n![UI Screenshot](https://user-images.githubusercontent.com/1141386/35941779-46e0bc46-0c08-11e8-9b4b-b8e65600d2ec.png)\n\nBe sure to [check out the example](./example).\n\n## Installation\n\nRequest Inspector is currently split into three packages: a brwoser instrumenter, a Node.js instrumenter,\nand a server. The instrumenters run inside of your web app and Node.js server, which collect\ndata and sends it to the server.\n\nStart by installing the server globally:\n\n```bash\nnpm install -g @request-inspector/server\n```\n\nThen install the Node.js instrumenter in your server project:\n\n```bash\nnpm install @request-inspector/node-instrumenter\n```\n\nFinally, install the browser instrumenter in your client project and use [webpack](webpack.js.org),\n[browserfiy](http://browserify.org/) or similar to bundle it into your application:\n\n```bash\nnpm install @request-inspector/browser-instrumenter\n```\n\nAlternatively, you can [download the browser instrumenter as a single file](https://raw.githubusercontent.com/nebrius/request-inspector/master/browser-instrumenter/dist/bundle.js)\nand add it with a script tag, e.g. `\u003cscript src=\"/lib/request_inspector.js\"\u003e\u003c/script\u003e`.\n\n## Usage\n\nStart by instrumenting your Node.js application by requiring/importing the module and initializing it:\n\n```JavaScript\nconst instrumenter = require('@request-inspector/node-instrumenter');\ninstrumenter.init({\n  serverHostname: 'localhost',\n  serverPort: 7176,\n  serviceName: 'template'\n}, (initErr) =\u003e {\n\n  // Your app code here\n\n});\n```\n\nThen instrument your browser application by initializing the module:\n\n```JavaScript\nconst instrumenter = require('@request-inspector/browser-instrumenter');\ninstrumenter.init({\n  serverHostname: 'localhost',\n  serverPort: 7176,\n  serviceName: 'browser',\n}, () =\u003e {\n\n  // Your app code here\n\n});\n```\n\nAlternatively, if you are not using a build system, you can do:\n\n```JavaScript\nwindow.requestInspector.init({\n  serverHostname: 'localhost',\n  serverPort: 7176,\n  serviceName: 'browser',\n}, () =\u003e {\n\n  // Your app code here\n\n});\n```\n\nThen, start the server:\n\n```bash\nrequest-inspector [-p PORT]\n```\n\nNote: it is recommended that you run this initialization code _before_ you require/import\nany other code.\n\nRequest Instrumenter will _automatically_ instrument all inbound HTTP requests for\nyou. You can also add more data points in your Node.js server to get a more\nfine-grained look at what your application is doing (browser support pending):\n\n```JavaScript\nconst templateReadEvent = instrumenter.begin('file-read');\nfs.readFile('./my-file', (err, data) =\u003e {\n  instrumenter.end(templateReadEvent);\n});\n```\n\nEach begin and end call is automatically correlated with an HTTP request that Node.js\nreceived. Note that you _cannot_ `begin` an event that is not associated with an HTTP\nrequest. You can use the `instrumenter.isInRequestContext()` check to see if you are\nin a request context or not.\n\nYou can also add extra data associated with your event:\n\n```JavaScript\nconst templateReadEvent = instrumenter.begin('file-read', {\n  filename: './my-file'\n});\nfs.readFile('./my-file', (err, data) =\u003e {\n  instrumenter.end(templateReadEvent, {\n    error: err \u0026\u0026 err.toString()\n  });\n});\n```\n\nThis information can be in any format that can be passed to `JSON.stringify`, and it\nis sent to the server and shown in the UI.\n\nTo view the results, point your browser to the request-inspector server URL that you\nentered in the `init` method above, e.g. `http://localhost:7176/`.\n\n# License\n\nMIT License\n\nCopyright (c) 2018 Bryan Hughes \u003cbryan@nebri.us\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebrius%2Frequest-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnebrius%2Frequest-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebrius%2Frequest-inspector/lists"}